diff --git a/src/main/java/com/genersoft/iot/vmp/service/impl/CommonGbChannelServiceImpl.java b/src/main/java/com/genersoft/iot/vmp/service/impl/CommonGbChannelServiceImpl.java index 2b8ad3ca..1b890276 100644 --- a/src/main/java/com/genersoft/iot/vmp/service/impl/CommonGbChannelServiceImpl.java +++ b/src/main/java/com/genersoft/iot/vmp/service/impl/CommonGbChannelServiceImpl.java @@ -183,7 +183,7 @@ public class CommonGbChannelServiceImpl implements ICommonGbChannelService { ptzType = null; } List all = commonGbChannelMapper.queryChannelListInGroup(query, groupDeviceId, - regionDeviceId, inGroup, inRegion, type); + regionDeviceId, inGroup, inRegion, type, ptzType, online); return new PageInfo<>(all); } diff --git a/src/main/java/com/genersoft/iot/vmp/storager/dao/CommonChannelMapper.java b/src/main/java/com/genersoft/iot/vmp/storager/dao/CommonChannelMapper.java index df7fb884..12095141 100644 --- a/src/main/java/com/genersoft/iot/vmp/storager/dao/CommonChannelMapper.java +++ b/src/main/java/com/genersoft/iot/vmp/storager/dao/CommonChannelMapper.java @@ -398,6 +398,8 @@ public interface CommonChannelMapper { " and common_gb_civilCode is not null " + " and common_gb_civilCode is null " + " and type = #{type} " + + " and common_gb_status = #{online} " + + " and common_gb_ptz_type = #{ptzType} " + " and ( common_gb_device_id LIKE concat('%',#{query},'%') or common_gb_name LIKE concat('%',#{query},'%') ) " + "") List queryChannelListInGroup(@Param("query") String query, @@ -405,7 +407,9 @@ public interface CommonChannelMapper { @Param("regionDeviceId") String regionDeviceId, @Param("inGroup") Boolean inGroup, @Param("inRegion") Boolean inRegion, - @Param("type") String type + @Param("type") String type, + @Param("ptzType") String ptzType, + @Param("online") Boolean online );