临时提交
This commit is contained in:
@@ -410,4 +410,19 @@ public interface PlatformChannelMapper {
|
||||
" pgc.device_channel_id = #{channelId}" +
|
||||
"</script> ")
|
||||
List<Platform> queryPlatFormListByChannelId(@Param("channelId") int channelId);
|
||||
|
||||
@Delete("<script> "+
|
||||
"DELETE from wvp_platform_channel WHERE platform_id=#{platformId}" +
|
||||
"</script>")
|
||||
void removeChannelsByPlatformId(@Param("platformId") Integer platformId);
|
||||
|
||||
@Delete("<script> "+
|
||||
"DELETE from wvp_platform_group WHERE platform_id=#{platformId}" +
|
||||
"</script>")
|
||||
void removePlatformGroupsByPlatformId(@Param("platformId") Integer platformId);
|
||||
|
||||
@Delete("<script> "+
|
||||
"DELETE from wvp_platform_region WHERE platform_id=#{platformId}" +
|
||||
"</script>")
|
||||
void removePlatformRegionByPlatformId(@Param("platformId") Integer platformId);
|
||||
}
|
||||
|
||||
@@ -59,8 +59,8 @@ public interface PlatformMapper {
|
||||
"WHERE id=#{id}")
|
||||
int update(Platform parentPlatform);
|
||||
|
||||
@Delete("DELETE FROM wvp_platform WHERE server_gb_id=#{serverGBId}")
|
||||
int delParentPlatform(Platform parentPlatform);
|
||||
@Delete("DELETE FROM wvp_platform WHERE id=#{id}")
|
||||
int delete(@Param("id") Integer id);
|
||||
|
||||
@Select(" SELECT pp.*, " +
|
||||
" (SELECT count(0) FROM wvp_platform_channel pc WHERE pc.platform_id = pp.id ) as channel_count" +
|
||||
|
||||
Reference in New Issue
Block a user