diff --git a/src/main/java/com/genersoft/iot/vmp/gb28181/controller/ChannelController.java b/src/main/java/com/genersoft/iot/vmp/gb28181/controller/ChannelController.java index 04f4d84d3..83c63953d 100755 --- a/src/main/java/com/genersoft/iot/vmp/gb28181/controller/ChannelController.java +++ b/src/main/java/com/genersoft/iot/vmp/gb28181/controller/ChannelController.java @@ -104,16 +104,26 @@ public class ChannelController { @Parameter(name = "online", description = "是否在线") @Parameter(name = "hasRecordPlan", description = "是否已设置录制计划") @Parameter(name = "channelType", description = "通道类型, 0:国标设备,1:推流设备,2:拉流代理") + @Parameter(name = "civilCode", description = "行政区划") + @Parameter(name = "parentDeviceId", description = "父节点编码") @GetMapping("/list") public PageInfo queryList(int page, int count, @RequestParam(required = false) String query, @RequestParam(required = false) Boolean online, @RequestParam(required = false) Boolean hasRecordPlan, - @RequestParam(required = false) Integer channelType){ + @RequestParam(required = false) Integer channelType, + @RequestParam(required = false) String civilCode, + @RequestParam(required = false) String parentDeviceId){ if (ObjectUtils.isEmpty(query)){ query = null; } - return channelService.queryList(page, count, query, online, hasRecordPlan, channelType); + if (ObjectUtils.isEmpty(civilCode)){ + civilCode = null; + } + if (ObjectUtils.isEmpty(parentDeviceId)){ + parentDeviceId = null; + } + return channelService.queryList(page, count, query, online, hasRecordPlan, channelType, civilCode, parentDeviceId); } @Operation(summary = "获取关联行政区划通道列表", security = @SecurityRequirement(name = JwtUtils.HEADER)) @@ -481,4 +491,13 @@ public class ChannelController { public void saveLevel(@RequestBody List channels){ channelService.saveLevel(channels); } + + @Operation(summary = "为地图去除抽稀结果", security = @SecurityRequirement(name = JwtUtils.HEADER)) + @PostMapping("/map/reset-level") + public void resetLevel(){ + channelService.resetLevel(); + } + + + } diff --git a/src/main/java/com/genersoft/iot/vmp/gb28181/dao/CommonGBChannelMapper.java b/src/main/java/com/genersoft/iot/vmp/gb28181/dao/CommonGBChannelMapper.java index 63d64375c..fd7a73900 100644 --- a/src/main/java/com/genersoft/iot/vmp/gb28181/dao/CommonGBChannelMapper.java +++ b/src/main/java/com/genersoft/iot/vmp/gb28181/dao/CommonGBChannelMapper.java @@ -474,7 +474,8 @@ public interface CommonGBChannelMapper { @SelectProvider(type = ChannelProvider.class, method = "queryList") List queryList(@Param("query") String query, @Param("online") Boolean online, - @Param("hasRecordPlan") Boolean hasRecordPlan, @Param("dataType") Integer dataType); + @Param("hasRecordPlan") Boolean hasRecordPlan, @Param("dataType") Integer dataType, + @Param("civilCode") String civilCode, @Param("parentDeviceId") String parentDeviceId); @Update(value = {"