移动端退出时同步库里的设备状态

This commit is contained in:
fenghp
2026-05-12 18:58:11 +08:00
parent e78e4dd336
commit f4fce5a363
5 changed files with 73 additions and 0 deletions
@@ -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