2025-06-28 15:14:03 +08:00
|
|
|
<?xml version="1.0" encoding="UTF-8" ?>
|
|
|
|
|
<!DOCTYPE mapper
|
|
|
|
|
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
|
|
|
<mapper namespace="com.bonus.business.mapper.SbdUserMapper">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<insert id="addSbdUser">
|
|
|
|
|
insert into robot_sbd_user(
|
|
|
|
|
data_source, user_name, sex, image, post,
|
2025-07-01 18:26:20 +08:00
|
|
|
work_type, mobile, create_time, update_time, del_flag,age,id_card
|
|
|
|
|
)values (0,#{userName},#{sex},#{image},#{post},#{workType},#{mobile},now(),now(),0,#{age},#{idCard})
|
2025-06-28 15:14:03 +08:00
|
|
|
|
|
|
|
|
</insert>
|
|
|
|
|
<update id="updateSbdUser">
|
|
|
|
|
update robot_sbd_user set user_name=#{userName}, sex=#{sex}, mobile=#{mobile}, work_type=#{workType}
|
|
|
|
|
,post=#{post},image=#{image}
|
|
|
|
|
where id=#{id}
|
|
|
|
|
</update>
|
2025-07-01 18:26:20 +08:00
|
|
|
<delete id="delUser">
|
|
|
|
|
update robot_sbd_user set del_flag=1 where id=#{id}
|
|
|
|
|
</delete>
|
2025-06-28 15:14:03 +08:00
|
|
|
<select id="getDetails" resultType="com.bonus.business.vo.SbdUserVo">
|
|
|
|
|
select user_name userName, sex ,post,image,work_type workType,mobile,create_time createTime,data_source dataSource
|
|
|
|
|
from robot_sbd_user
|
|
|
|
|
WHERE del_flag=0
|
|
|
|
|
|
|
|
|
|
</select>
|
|
|
|
|
<select id="getDeviceList" resultType="com.bonus.business.vo.RobotVo">
|
|
|
|
|
SELECT td.id,td.dev_name devName,td.mac_id macId,td.puid puId,td.indexs
|
|
|
|
|
FROM sbd_robot_device td
|
|
|
|
|
where td.del_flag=0
|
|
|
|
|
</select>
|
|
|
|
|
</mapper>
|