临时提交

This commit is contained in:
panlinlin
2024-08-17 07:01:40 +08:00
parent aeb3cd6a22
commit 635458d19a
4 changed files with 65 additions and 21 deletions

View File

@@ -164,14 +164,19 @@ public interface GroupMapper {
@Select(" <script>" +
" SELECT " +
" device_id as gb_device_id," +
" name as gb_name," +
" business_group as gb_business_group," +
" 1 as gb_parental," +
" parent_device_id as gb_parent_id" +
" * " +
" from wvp_common_group " +
" where (device_id, business_group) in " +
" <foreach collection='channelList' item='item' open='(' separator=',' close=')' > (#{item.gbParentId}, #{item.gbBusinessGroupId})</foreach>" +
" </script>")
List<CommonGBChannel> queryInChannelList(List<CommonGBChannel> channelList);
Set<Group> queryInChannelList(List<CommonGBChannel> channelList);
@Select(" <script>" +
" SELECT " +
" * " +
" from wvp_common_group " +
" where device_id in " +
" <foreach collection='regionChannelList' item='item' open='(' separator=',' close=')' > #{item.parentDeviceId}</foreach>" +
" </script>")
Set<Group> queryParentInChannelList(Set<Group> regionChannelList);
}

View File

@@ -105,7 +105,7 @@ public interface RegionMapper {
" where device_id in " +
" <foreach collection='channelList' item='item' open='(' separator=',' close=')' > #{item.gbCivilCode}</foreach>" +
" </script>")
List<Region> queryInChannelList(List<CommonGBChannel> channelList);
Set<Region> queryInChannelList(List<CommonGBChannel> channelList);
@Select(" <script>" +
@@ -115,5 +115,5 @@ public interface RegionMapper {
" where device_id in " +
" <foreach collection='regionChannelList' item='item' open='(' separator=',' close=')' > #{item.parentDeviceId}</foreach>" +
" </script>")
List<Region> queryParentInChannelList(List<Region> regionChannelList);
Set<Region> queryParentInChannelList(Set<Region> regionChannelList);
}