修复设备不能正常删除的bug

This commit is contained in:
zxb 2023-08-04 15:04:25 +08:00
parent 60b67c3892
commit 8b72d7db64

View File

@ -40,13 +40,13 @@ public interface PlatformChannelMapper {
"</script>") "</script>")
int delChannelForGB(String platformId, List<ChannelReduce> channelReducesToDel); int delChannelForGB(String platformId, List<ChannelReduce> channelReducesToDel);
@Delete("<script> "+ @Delete("DELETE pgc " +
"DELETE from wvp_platform_gb_channel WHERE device_channel_id in " + "FROM " +
"( select temp.device_channel_id from " + "wvp_platform_gb_channel pgc," +
"(select pgc.device_channel_id from wvp_platform_gb_channel pgc " + "wvp_device_channel dc " +
"left join wvp_device_channel dc on dc.id = pgc.device_channel_id where dc.device_id =#{deviceId} " + "WHERE " +
") temp)" + "dc.id = pgc.device_channel_id " +
"</script>") "AND dc.device_id = #{deviceId} ")
int delChannelForDeviceId(String deviceId); int delChannelForDeviceId(String deviceId);
@Delete("<script> "+ @Delete("<script> "+