From faed220f73120adc7029678cb0f8cfd2cc9fe4c6 Mon Sep 17 00:00:00 2001 From: zhaoyu Date: Thu, 25 Jan 2024 17:40:54 +0800 Subject: [PATCH] =?UTF-8?q?=E6=90=9C=E7=B4=A2=E9=97=AE=E9=A2=98=E5=A4=84?= =?UTF-8?q?=E7=90=86=20=20=E8=A7=86=E9=A2=91=E7=9C=8B=E4=B8=8D=E4=BA=86?= =?UTF-8?q?=E9=97=AE=E9=A2=98=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../keyProjects/PlatformvideomanagementController.java | 6 +++--- .../mybatis/datasource/mkmj/MkmjAreaGateMapper.xml | 1 + .../resources/mybatis/datasource/mkmj/MkmjAreaMapper.xml | 1 + .../mybatis/datasource/mkmj/MkmjGateVideoMapper.xml | 4 +++- 4 files changed, 8 insertions(+), 4 deletions(-) diff --git a/src/main/java/com/zcloud/controller/keyProjects/PlatformvideomanagementController.java b/src/main/java/com/zcloud/controller/keyProjects/PlatformvideomanagementController.java index 9b536ed7..0f41a466 100644 --- a/src/main/java/com/zcloud/controller/keyProjects/PlatformvideomanagementController.java +++ b/src/main/java/com/zcloud/controller/keyProjects/PlatformvideomanagementController.java @@ -55,7 +55,7 @@ public class PlatformvideomanagementController extends BaseController { Map map = new HashMap(); PageData pd =this.getPageData(); map = HKUtil.camerasPreviewURLs(pd.getString("INDEXCODE"),"hls"); - if(!ObjectUtils.isEmpty(map)){ + if(ObjectUtils.isEmpty(map)){ map = new HashMap(); } map.put("result", "success"); @@ -71,7 +71,7 @@ public class PlatformvideomanagementController extends BaseController { Map map = new HashMap(); PageData pd =this.getPageData(); map = HKUtil.camerasPreviewURLs(pd.getString("INDEXCODE"),"rtsp"); - if(!ObjectUtils.isEmpty(map)){ + if(ObjectUtils.isEmpty(map)){ map = new HashMap(); } map.put("result", "success"); @@ -87,7 +87,7 @@ public class PlatformvideomanagementController extends BaseController { Map map = new HashMap(); PageData pd =this.getPageData(); map = HKUtil.cameraSearch(pd); - if(!ObjectUtils.isEmpty(map)){ + if(ObjectUtils.isEmpty(map)){ map = new HashMap(); } map.put("result", "success"); diff --git a/src/main/resources/mybatis/datasource/mkmj/MkmjAreaGateMapper.xml b/src/main/resources/mybatis/datasource/mkmj/MkmjAreaGateMapper.xml index e26e7379..0bf78803 100644 --- a/src/main/resources/mybatis/datasource/mkmj/MkmjAreaGateMapper.xml +++ b/src/main/resources/mybatis/datasource/mkmj/MkmjAreaGateMapper.xml @@ -156,6 +156,7 @@ and ( + f.GATE_NAME LIKE CONCAT(CONCAT('%', #{pd.KEYWORDS}),'%') and ( + f.AREA_NAME LIKE CONCAT(CONCAT('%', #{pd.KEYWORDS}),'%') and ( + r.NAME LIKE CONCAT(CONCAT('%', #{pd.KEYWORDS}),'%')