| | |
| | | "LEFT JOIN parent_platform pp ON pp.serverGBId = pgs.platformId " + |
| | | "WHERE " + |
| | | "pgs.app =#{app} " + |
| | | "AND pgs.stream =#{stream} " + |
| | | "GROUP BY pp.serverGBId") |
| | | "AND pgs.stream =#{stream} ") |
| | | List<ParentPlatform> selectByAppAndStream(String app, String stream); |
| | | |
| | | @Select("SELECT pgs.*, gs.gbId FROM platform_gb_stream pgs " + |
| | |
| | | |
| | | @Delete("DELETE FROM platform_gb_stream WHERE app=#{app} AND stream=#{stream} AND platformId=#{platformId}") |
| | | int delByAppAndStreamAndPlatform(String app, String stream, String platformId); |
| | | |
| | | @Delete("<script> "+ |
| | | "DELETE FROM platform_gb_stream where " + |
| | | "<foreach collection='gbStreams' item='item' separator='or'>" + |
| | | "(app=#{item.app} and stream=#{item.stream}) " + |
| | | "</foreach>" + |
| | | "</script>") |
| | | void delByGbStreams(List<GbStream> gbStreams); |
| | | } |