支持通道列表云台类型和在线状态筛选
parent
407828e880
commit
3821dba14d
|
@ -183,7 +183,7 @@ public class CommonGbChannelServiceImpl implements ICommonGbChannelService {
|
||||||
ptzType = null;
|
ptzType = null;
|
||||||
}
|
}
|
||||||
List<CommonGbChannel> all = commonGbChannelMapper.queryChannelListInGroup(query, groupDeviceId,
|
List<CommonGbChannel> all = commonGbChannelMapper.queryChannelListInGroup(query, groupDeviceId,
|
||||||
regionDeviceId, inGroup, inRegion, type);
|
regionDeviceId, inGroup, inRegion, type, ptzType, online);
|
||||||
return new PageInfo<>(all);
|
return new PageInfo<>(all);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -398,6 +398,8 @@ public interface CommonChannelMapper {
|
||||||
"<if test='inRegion != null & inRegion'> and common_gb_civilCode is not null </if>" +
|
"<if test='inRegion != null & inRegion'> and common_gb_civilCode is not null </if>" +
|
||||||
"<if test='inRegion != null & !inRegion'> and common_gb_civilCode is null </if>" +
|
"<if test='inRegion != null & !inRegion'> and common_gb_civilCode is null </if>" +
|
||||||
"<if test='type != null'> and type = #{type} </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>" +
|
"<if test='query != null'> and ( common_gb_device_id LIKE concat('%',#{query},'%') or common_gb_name LIKE concat('%',#{query},'%') ) </if>" +
|
||||||
"</script>")
|
"</script>")
|
||||||
List<CommonGbChannel> queryChannelListInGroup(@Param("query") String query,
|
List<CommonGbChannel> queryChannelListInGroup(@Param("query") String query,
|
||||||
|
@ -405,7 +407,9 @@ public interface CommonChannelMapper {
|
||||||
@Param("regionDeviceId") String regionDeviceId,
|
@Param("regionDeviceId") String regionDeviceId,
|
||||||
@Param("inGroup") Boolean inGroup,
|
@Param("inGroup") Boolean inGroup,
|
||||||
@Param("inRegion") Boolean inRegion,
|
@Param("inRegion") Boolean inRegion,
|
||||||
@Param("type") String type
|
@Param("type") String type,
|
||||||
|
@Param("ptzType") String ptzType,
|
||||||
|
@Param("online") Boolean online
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue