From f2e0039ce8d085b72c7d2203d5831b41e2966d42 Mon Sep 17 00:00:00 2001 From: dearlin <1261008090@qq.com> Date: Wed, 31 Jan 2024 09:15:43 +0800 Subject: [PATCH] =?UTF-8?q?ai=E6=8A=A5=E8=AD=A6=E4=BD=9C=E4=B8=9A=E7=A5=A8?= =?UTF-8?q?=E5=8F=B7=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/zcloud/config/ShiroConfiguration.java | 1 + .../zcloud/controller/video/AIWarningController.java | 2 ++ .../impl/ElectronicFenceServiceImpl.java | 5 +---- .../mybatis/datasource/video/AIWarningMapper.xml | 12 +++++++++--- .../mybatis/datasource/video/VideoManagerMapper.xml | 12 +++++++----- 5 files changed, 20 insertions(+), 12 deletions(-) diff --git a/src/main/java/com/zcloud/config/ShiroConfiguration.java b/src/main/java/com/zcloud/config/ShiroConfiguration.java index ef24609..6ca2cc6 100644 --- a/src/main/java/com/zcloud/config/ShiroConfiguration.java +++ b/src/main/java/com/zcloud/config/ShiroConfiguration.java @@ -66,6 +66,7 @@ public class ShiroConfiguration { filterChainMap.put("/App**/**", "anon"); filterChainMap.put("/app/**/**", "anon"); filterChainMap.put("/sync/**/**", "anon"); + filterChainMap.put("/aiwarning/**", "anon"); filterChainMap.put("/dictionaries/**", "anon"); filterChainMap.put("/corptype/listAllCorpTypeMent", "anon"); filterChainMap.put("/corpinfo/hasCorpName", "anon"); diff --git a/src/main/java/com/zcloud/controller/video/AIWarningController.java b/src/main/java/com/zcloud/controller/video/AIWarningController.java index 6bb6e10..c6e93fa 100644 --- a/src/main/java/com/zcloud/controller/video/AIWarningController.java +++ b/src/main/java/com/zcloud/controller/video/AIWarningController.java @@ -80,6 +80,8 @@ public class AIWarningController extends BaseController { pd.put("VIDEOMANAGER_ID", videoPd.get("VIDEOMANAGER_ID")); //视频ID pd.put("VIDEOMANAGER_NAME", videoPd.get("VIDEONAME")); //视频名称 pd.put("OUTSOURCED_ID", videoPd.get("OUTSOURCED_ID")); //重点工程id + pd.put("CORPINFO_ID", videoPd.get("CORPINFO_ID")); //重点工程id + pd.put("CHECK_NO", videoPd.get("CHECK_NO")); //重点工程id } pd.put("STATUS", 0); //状态0未处置 pd.put("ISTRUE", 3); //状态3未审核 diff --git a/src/main/java/com/zcloud/service/electronicFence/impl/ElectronicFenceServiceImpl.java b/src/main/java/com/zcloud/service/electronicFence/impl/ElectronicFenceServiceImpl.java index 05ffb4d..44577f5 100644 --- a/src/main/java/com/zcloud/service/electronicFence/impl/ElectronicFenceServiceImpl.java +++ b/src/main/java/com/zcloud/service/electronicFence/impl/ElectronicFenceServiceImpl.java @@ -68,17 +68,16 @@ public class ElectronicFenceServiceImpl implements ElectronicFenceService { Map> idToNodeMap = new HashMap<>(); List> rootNodes = new ArrayList<>(); - // Map IDs to their nodes for (Map data : dataList) { String id = (String) data.get("id"); idToNodeMap.put(id, data); } - // Find root nodes and attach children for (Map.Entry> entry : idToNodeMap.entrySet()) { Map node = entry.getValue(); String pId = (String) node.get("pId"); if ("0".equals(pId)) { + node.put("disabled",true); rootNodes.add(node); } else { Map parentNode = idToNodeMap.get(pId); @@ -96,13 +95,11 @@ public class ElectronicFenceServiceImpl implements ElectronicFenceService { Map> idToNodeMap = new HashMap<>(); List> rootNodes = new ArrayList<>(); - // Map IDs to their nodes for (Map data : dataList) { String id = (String) data.get("ELECTRONIC_FENCE_AREA_ID"); idToNodeMap.put(id, data); } - // Find root nodes and attach children for (Map.Entry> entry : idToNodeMap.entrySet()) { Map node = entry.getValue(); String pId = (String) node.get("pId"); diff --git a/src/main/resources/mybatis/datasource/video/AIWarningMapper.xml b/src/main/resources/mybatis/datasource/video/AIWarningMapper.xml index ffc2a10..21d6ef6 100644 --- a/src/main/resources/mybatis/datasource/video/AIWarningMapper.xml +++ b/src/main/resources/mybatis/datasource/video/AIWarningMapper.xml @@ -27,7 +27,9 @@ f.STATUS, f.ISTRUE, f.HASHIDDEN, - f.AIWARNING_ID + f.AIWARNING_ID, + f.CORPINFO_ID, + f.CHECK_NO @@ -45,7 +47,9 @@ STATUS, ISTRUE, HASHIDDEN, - AIWARNING_ID + AIWARNING_ID, + CORPINFO_ID, + CHECK_NO @@ -63,7 +67,9 @@ #{STATUS}, #{ISTRUE}, #{HASHIDDEN}, - #{AIWARNING_ID} + #{AIWARNING_ID}, + #{CORPINFO_ID}, + #{CHECK_NO} insert into diff --git a/src/main/resources/mybatis/datasource/video/VideoManagerMapper.xml b/src/main/resources/mybatis/datasource/video/VideoManagerMapper.xml index 5206e23..9d091b8 100644 --- a/src/main/resources/mybatis/datasource/video/VideoManagerMapper.xml +++ b/src/main/resources/mybatis/datasource/video/VideoManagerMapper.xml @@ -190,11 +190,13 @@