修复设备不能正常删除的bug
This commit is contained in:
parent
60b67c3892
commit
8b72d7db64
@ -40,13 +40,13 @@ public interface PlatformChannelMapper {
|
||||
"</script>")
|
||||
int delChannelForGB(String platformId, List<ChannelReduce> channelReducesToDel);
|
||||
|
||||
@Delete("<script> "+
|
||||
"DELETE from wvp_platform_gb_channel WHERE device_channel_id in " +
|
||||
"( select temp.device_channel_id from " +
|
||||
"(select pgc.device_channel_id from wvp_platform_gb_channel pgc " +
|
||||
"left join wvp_device_channel dc on dc.id = pgc.device_channel_id where dc.device_id =#{deviceId} " +
|
||||
") temp)" +
|
||||
"</script>")
|
||||
@Delete("DELETE pgc " +
|
||||
"FROM " +
|
||||
"wvp_platform_gb_channel pgc," +
|
||||
"wvp_device_channel dc " +
|
||||
"WHERE " +
|
||||
"dc.id = pgc.device_channel_id " +
|
||||
"AND dc.device_id = #{deviceId} ")
|
||||
int delChannelForDeviceId(String deviceId);
|
||||
|
||||
@Delete("<script> "+
|
||||
|
Loading…
Reference in New Issue
Block a user