支持通道列表云台类型和在线状态筛选

结构优化
648540858 2024-01-24 10:54:02 +08:00
parent 407828e880
commit 3821dba14d
2 changed files with 6 additions and 2 deletions

View File

@ -183,7 +183,7 @@ public class CommonGbChannelServiceImpl implements ICommonGbChannelService {
ptzType = null;
}
List<CommonGbChannel> all = commonGbChannelMapper.queryChannelListInGroup(query, groupDeviceId,
regionDeviceId, inGroup, inRegion, type);
regionDeviceId, inGroup, inRegion, type, ptzType, online);
return new PageInfo<>(all);
}

View File

@ -398,6 +398,8 @@ public interface CommonChannelMapper {
"<if test='inRegion != null &amp; inRegion'> and common_gb_civilCode is not null </if>" +
"<if test='inRegion != null &amp; !inRegion'> and common_gb_civilCode is null </if>" +
"<if test='type != null'> and type = #{type} </if>" +
"<if test='online != null'> and common_gb_status = #{online} </if>" +
"<if test='ptzType != null'> and common_gb_ptz_type = #{ptzType} </if>" +
"<if test='query != null'> and ( common_gb_device_id LIKE concat('%',#{query},'%') or common_gb_name LIKE concat('%',#{query},'%') ) </if>" +
"</script>")
List<CommonGbChannel> 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
);