优化级联平台删除

This commit is contained in:
648540858
2022-02-17 15:33:25 +08:00
parent 59c79c08e1
commit 0327d16021
3 changed files with 12 additions and 9 deletions

View File

@@ -95,6 +95,11 @@ public interface PlatformGbStreamMapper {
"</script>")
void delByGbStreams(List<GbStream> gbStreams);
@Delete("<script> "+
"DELETE FROM platform_gb_stream where " +
"<foreach collection='gbStreams' item='item' separator='or'>" +
"(app=#{item.app} and stream=#{item.stream}) and platformId=#{platformId}" +
"</foreach>" +
"</script>")
void delByAppAndStreamsByPlatformId(List<GbStream> gbStreams, String platformId);
}