From 776f133f63d3c583cd6bb0a24519c31c4497525a Mon Sep 17 00:00:00 2001 From: liujun Date: Wed, 24 Apr 2024 14:02:37 +0800 Subject: [PATCH] =?UTF-8?q?=E5=90=8C=E6=AD=A5=E6=97=B6=E6=9C=AA=E5=BC=82?= =?UTF-8?q?=E6=AD=A5bug=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../zcloud/controller/map/MapController.java | 44 +++++++++++++++++-- 1 file changed, 40 insertions(+), 4 deletions(-) diff --git a/src/main/java/com/zcloud/controller/map/MapController.java b/src/main/java/com/zcloud/controller/map/MapController.java index a7a1c064..1226a031 100644 --- a/src/main/java/com/zcloud/controller/map/MapController.java +++ b/src/main/java/com/zcloud/controller/map/MapController.java @@ -405,7 +405,7 @@ public class MapController extends BaseController { */ @RequestMapping("/getPersonPositioningCount") @ResponseBody - public Object getPersonPositioningCount() { + public Object getPersonPositioningCount() throws Exception{ Map map = new HashMap(); PageData pageData = this.getPageData(); if ("00004".equals(pageData.getString("GANGKOU"))) { @@ -427,8 +427,6 @@ public class MapController extends BaseController { return result; } - // bus_riskunit - // bus_identificationparts PageData data = biMapService.getPersonPositioningCount(pageData); map.put("result", "success"); map.put("personPositioningCount", data); @@ -841,10 +839,15 @@ public class MapController extends BaseController { */ @RequestMapping(value = "/getCurrentLocationOnline") @ResponseBody - public Object getCurrentLocationOnline() { + public Object getCurrentLocationOnline() throws Exception { Map map = new HashMap(); String errInfo = "success"; PageData pd = this.getPageData(); + // created by liu jun 一公司人员定位新增摄像头功能 + if ("platcamera".equals(pd.getString("TYPE")) && "035958e685cf4850bc40151c5e0617a6".equals(pd.getString("CORPINFO_ID"))){ + GetCameraListDto dto = new GetCameraListDto(); + return dwService.getCameraList(dto); + } if ("00004".equals(pd.getString("GANGKOU")) && pd.getString("TYPE").equals("peoplePosition")) { MultiValueMap paramMap = new LinkedMultiValueMap(); Map result = @@ -964,6 +967,39 @@ public class MapController extends BaseController { } } + @RequestMapping(value = "/getCameraList") + @ResponseBody + public Object getCameraList() throws Exception { + Map map = new HashMap(); + PageData pd = this.getPageData(); + // TODO 判断是否是公司人员定位 + if (pd.get("corpId") != null && "035958e685cf4850bc40151c5e0617a6".equals(pd.getString("corpId"))) { + GetCameraListDto dto = new GetCameraListDto(); + return dwService.getCameraList(dto); + }else { + // TODO 其他系统有待开发 + return null; + } + } + + + @RequestMapping(value = "/getCameraInfo") + @ResponseBody + public Object getCameraInfo() throws Exception { + Map map = new HashMap(); + PageData pd = this.getPageData(); + // TODO 判断是否是公司人员定位 + if (pd.get("corpId") != null && "035958e685cf4850bc40151c5e0617a6".equals(pd.getString("corpId"))) { + GetCameraInfoDto dto = new GetCameraInfoDto(); + dto.setId(pd.getString("id")); + return dwService.getCameraInfo(dto); + }else { + // TODO 其他系统有待开发 + return null; + } + } + +