优化新增/修改人员下发宇泛设备
This commit is contained in:
@@ -59,9 +59,9 @@
|
||||
create_time = values(create_time);
|
||||
</insert>
|
||||
|
||||
<delete id="deleteByIds">
|
||||
delete from sys_equipment_down_record where id in
|
||||
<foreach collection="ids" item="id" index="index" open="(" close=")" separator=",">
|
||||
<delete id="deleteByPeopleIds">
|
||||
delete from sys_equipment_down_record where people_id in
|
||||
<foreach collection="peopleIds" item="id" index="index" open="(" close=")" separator=",">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
|
||||
@@ -329,4 +329,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<select id="selectAppSysPeople" resultType="java.lang.Long">
|
||||
select id from sys_people where del_flag = '0' and (phone = #{phonenumber} or phone = #{userName})
|
||||
</select>
|
||||
|
||||
<select id="selectSysPeopleListByIds" resultMap="SysPeopleResult">
|
||||
select * from sys_people where id in
|
||||
<foreach collection="list" item="item" open="(" separator="," close=")">
|
||||
#{item}
|
||||
</foreach>
|
||||
</select>
|
||||
</mapper>
|
||||
|
||||
Reference in New Issue
Block a user