31 lines
1.2 KiB
XML
31 lines
1.2 KiB
XML
|
|
<?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,
|
||
|
|
work_type, mobile, create_time, update_time, del_flag
|
||
|
|
)values (0,#{userName},#{sex},#{image},#{post},#{workType},#{mobile},now(),now(),0)
|
||
|
|
|
||
|
|
</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>
|
||
|
|
<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>
|