移动端退出时同步库里的设备状态
This commit is contained in:
@@ -198,6 +198,15 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
and device_code = #{deviceCode}
|
||||
</update>
|
||||
|
||||
<update id="offlineDeviceByUserNameAndDeviceCode">
|
||||
update af_device
|
||||
set online_status = 'OFFLINE',
|
||||
update_by = #{updateBy},
|
||||
update_time = sysdate()
|
||||
where user_name = #{userName}
|
||||
and device_code = #{deviceCode}
|
||||
</update>
|
||||
|
||||
<select id="countActiveTaskByDeviceId" resultType="int">
|
||||
select count(1)
|
||||
from af_dispatch_task
|
||||
|
||||
Reference in New Issue
Block a user