From fa9aaf3fa299e6c72222de08a72b38d1dd0556bb Mon Sep 17 00:00:00 2001 From: lin <648540858@qq.com> Date: Thu, 30 Oct 2025 15:05:50 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E6=89=B9=E9=87=8F=E4=BF=AE?= =?UTF-8?q?=E6=94=B9=E9=80=9A=E9=81=93=E7=9A=84=E4=B8=9A=E5=8A=A1=E5=88=86?= =?UTF-8?q?=E7=BB=84=E4=BB=A5=E5=8F=8A=E8=A1=8C=E6=94=BF=E5=8C=BA=E5=88=92?= =?UTF-8?q?=EF=BC=8C=E6=94=AF=E6=8C=81=E7=AD=9B=E9=80=89=E4=B8=9A=E5=8A=A1?= =?UTF-8?q?=E5=88=86=E7=BB=84=E5=92=8C=E8=A1=8C=E6=94=BF=E5=8C=BA=E5=88=92?= =?UTF-8?q?=EF=BC=8C=E6=94=AF=E6=8C=81=E6=8A=BD=E7=A8=80=E8=BF=98=E5=8E=9F?= =?UTF-8?q?=EF=BC=8C=E5=9B=BD=E6=A0=87=E9=80=9A=E9=81=93=E7=BC=96=E8=BE=91?= =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E8=A1=A8=E5=8D=95=E6=A0=A1=E9=AA=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../gb28181/controller/ChannelController.java | 23 ++- .../gb28181/dao/CommonGBChannelMapper.java | 7 +- .../gb28181/dao/provider/ChannelProvider.java | 6 + .../gb28181/service/IGbChannelService.java | 5 +- .../service/impl/GbChannelServiceImpl.java | 23 ++- .../service/impl/GroupServiceImpl.java | 2 +- .../redisMsg/RedisGroupMsgListener.java | 5 +- .../iot/vmp/web/custom/bean/CameraGroup.java | 3 + .../custom/service/CameraChannelService.java | 17 +- web/src/api/commonChannel.js | 12 +- web/src/store/modules/commonChanel.js | 12 +- web/src/views/channel/group/index.vue | 2 +- web/src/views/channel/index.vue | 166 +++++++++++++++++- web/src/views/channel/region/index.vue | 3 +- web/src/views/common/CommonChannelEdit.vue | 162 +++++++++++------ web/src/views/common/VideoTimeLine/index.vue | 2 +- web/src/views/dialog/GbDeviceSelect.vue | 4 +- web/src/views/dialog/chooseCivilCode.vue | 8 +- web/src/views/dialog/chooseGroup.vue | 7 +- web/src/views/map/index.vue | 30 +++- 20 files changed, 395 insertions(+), 104 deletions(-) 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 = {"