mirror of
https://gitee.com/pan648540858/wvp-GB28181-pro.git
synced 2026-05-23 13:37:49 +08:00
修复删除过期推流数据的SQL兼容性
This commit is contained in:
parent
4bc80d4ef8
commit
daddb4bfff
@ -158,8 +158,13 @@ public interface StreamPushMapper {
|
|||||||
"</script>"})
|
"</script>"})
|
||||||
int batchUpdate(List<StreamPush> streamPushItemForUpdate);
|
int batchUpdate(List<StreamPush> streamPushItemForUpdate);
|
||||||
|
|
||||||
@Delete(" DELETE FROM wvp_stream_push st " +
|
@Delete(" DELETE FROM wvp_stream_push" +
|
||||||
" LEFT join wvp_device_channel wdc on wdc.data_type = 2 and st.id = wdc.data_device_id " +
|
" WHERE server_id = #{serverId}" +
|
||||||
" where wdc.id is null and st.server_id = #{serverId}")
|
" AND NOT EXISTS (" +
|
||||||
|
" SELECT 1 " +
|
||||||
|
" FROM wvp_device_channel wdc " +
|
||||||
|
" WHERE wdc.data_type = 2 " +
|
||||||
|
" AND wvp_stream_push.id = wdc.data_device_id" +
|
||||||
|
" );")
|
||||||
void deleteWithoutGBId(@Param("serverId") String serverId);
|
void deleteWithoutGBId(@Param("serverId") String serverId);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user