增加设备和平台在线状态不同的同步策略

This commit is contained in:
lin
2025-05-19 15:52:56 +08:00
parent f7f3ed4c5b
commit d524905edb
4 changed files with 22 additions and 28 deletions

View File

@@ -666,4 +666,8 @@ public interface DeviceChannelMapper {
" where data_type = 1 and data_device_id=#{dataDeviceId} and device_id = #{channelId}" +
" </script>"})
DeviceChannel getOneBySourceChannelId(@Param("dataDeviceId") int dataDeviceId, @Param("channelId") String channelId);
@Update(value = {"UPDATE wvp_device_channel SET status = 'OFF' WHERE data_type = 1 and data_device_id=#{deviceId}"})
void offlineByDeviceId(@Param("deviceId") int deviceId);
}