From 3cfd300df0515cc5a253320a03198cefc9582485 Mon Sep 17 00:00:00 2001 From: zhaoyu Date: Tue, 6 Feb 2024 14:32:47 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=B2=A7=E5=B7=9E=E7=9F=BF?= =?UTF-8?q?=E7=9F=B3=E5=9C=B0=E5=9B=BE=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../czksmap/ApiCzksMapController.java | 185 ------ .../controller/czksmap/CzksMapController.java | 556 ------------------ .../czksmap/CzksMapEightController.java | 191 ------ .../CzksMapPlatFormElectronicController.java | 85 --- .../CzksObtainDisplayDataController.java | 39 -- .../czksmap/CzksUserPositionController.java | 56 -- 6 files changed, 1112 deletions(-) delete mode 100644 src/main/java/com/zcloud/controller/czksmap/ApiCzksMapController.java delete mode 100644 src/main/java/com/zcloud/controller/czksmap/CzksMapController.java delete mode 100644 src/main/java/com/zcloud/controller/czksmap/CzksMapEightController.java delete mode 100644 src/main/java/com/zcloud/controller/czksmap/CzksMapPlatFormElectronicController.java delete mode 100644 src/main/java/com/zcloud/controller/czksmap/CzksObtainDisplayDataController.java delete mode 100644 src/main/java/com/zcloud/controller/czksmap/CzksUserPositionController.java diff --git a/src/main/java/com/zcloud/controller/czksmap/ApiCzksMapController.java b/src/main/java/com/zcloud/controller/czksmap/ApiCzksMapController.java deleted file mode 100644 index de091519..00000000 --- a/src/main/java/com/zcloud/controller/czksmap/ApiCzksMapController.java +++ /dev/null @@ -1,185 +0,0 @@ -package com.zcloud.controller.czksmap; - -import com.alibaba.fastjson.JSON; -import com.alibaba.fastjson.JSONObject; -import com.zcloud.controller.base.BaseController; -import com.zcloud.entity.PageData; -import com.zcloud.service.system.DepartmentService; -import com.zcloud.service.system.UsersService; -import com.zcloud.util.HttpRequestUtil; -import com.zcloud.util.ReturnMap; -import com.zcloud.util.examUntil.ErrorOperation; -import com.zcloud.util.hk.HKUtil; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.stereotype.Controller; -import org.springframework.util.ObjectUtils; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.ResponseBody; - -import java.util.HashMap; -import java.util.Map; - -/** - * 说明:沧州矿石地图,摄像头同步数据 - * 作者:wangxuan - * 官网:www.zcloudchina.com - */ -@Controller -@RequestMapping("/api/czks/map") -@ErrorOperation -public class ApiCzksMapController extends BaseController { - @Autowired - private UsersService usersService; - @Autowired - private DepartmentService departmentService; - - - /** - * @Description: 今日进出港数据 - * @Author: dearLin - * @Date: 2024/1/15/015 17:22 - * @Param: [] [] - * @Return: com.zcloud.util.ReturnMap - */ - @RequestMapping(value = "carInOutToday") - @ResponseBody - public ReturnMap carInOutToday() throws Exception { - ReturnMap returnMap = new ReturnMap(); - HashMap hashMap = new HashMap<>(); - hashMap.put("oreIn", "3252"); - hashMap.put("oreOut", "2356"); - hashMap.put("groceryIn", "200"); - hashMap.put("groceryOut", "125"); - hashMap.put("oreInAll", "33252"); - hashMap.put("oreOutAll", "32356"); - hashMap.put("groceryInAll", "2200"); - hashMap.put("groceryOutAll", "1125"); - returnMap.put("czksCarToday", hashMap); - return returnMap; - } - - /** - * @Description: 定位在线人员数 - * @Author: dearLin - * @Date: 2024/1/15/015 17:22 - * @Param: [] [] - * @Return: com.zcloud.util.ReturnMap - */ - @RequestMapping(value = "allPersonList") - @ResponseBody - public ReturnMap getOlinePersonCount() throws Exception { - PageData pageData = this.getPageData(); - JSONObject request = new JSONObject(); - request.put("pageNum", 1); - request.put("pageSize", 10); - request.put("online", "true"); - // 人员定位在线 - ReturnMap online = HttpRequestUtil.getPeopleApi("/person/allPerson/listPage", request.toString()); - pageData.put("CORPINFO_ID", "f8da1790b1034058ae2efefd69af3284"); - // 系统人员数 - int userCount = usersService.getUserCount(pageData); - // 系统部门数 - int departCount = departmentService.getDepartmentCount(pageData); - online.put("userCount", userCount); - online.put("departCount", departCount); - return online; - } - - /** - * @Description: 定位基础信息 - * @Author: dearLin - * @Date: 2024/1/15/015 17:22 - * @Param: [] [] - * @Return: com.zcloud.util.ReturnMap - */ - @RequestMapping(value = "/getCzksBasicLocationInfoData") - @ResponseBody - public ReturnMap getCzksBasicLocationInfoData() { - return HttpRequestUtil.getPeopleApi("/statistics/personStatistics/todayPerson", ""); - } - - /** - * @Description: 定位标签状态 - * @Author: dearLin - * @Date: 2024/1/15/015 17:28 - * @Param: [] [] - * @Return: com.zcloud.util.ReturnMap - */ - @RequestMapping(value = "/personStaffList") - @ResponseBody - public ReturnMap getCzksPersonStaffListPage() { - PageData pageData = this.getPageData(); - JSONObject request = new JSONObject(); - request.put("pageNum", pageData.getString("pageNum")); - request.put("pageSize", pageData.getString("pageSize")); - // 普通员工 - if ("1".equals(pageData.getString("type"))) { - return HttpRequestUtil.getPeopleApi("/person/staff/listPage", request.toString()); - } else { - // 相关方 员工 - return HttpRequestUtil.getPeopleApi("/person/allPerson/listPage", request.toString()); - } - } - - /** - * @Description: 人员定位告警数据 - * @Author: dearLin - * @Date: 2024/1/15/015 17:22 - * @Param: [] [] - * @Return: com.zcloud.util.ReturnMap - */ - @RequestMapping(value = "/getAlarmData") - @ResponseBody - public Object getAlarmData() { - return HttpRequestUtil.getPeopleApi("/statistics/alarmStatistics/todayAlarm", ""); - } - - /** - * @Description: 摄像头列表 - * @Author: dearLin - * @Date: 2024/1/17/017 13:44 - * @Param: [] [] - * @Return: java.lang.Object - */ - @RequestMapping(value="/platformList") - @ResponseBody - public Object platformList() throws Exception{ - Map map = new HashMap(); - PageData pd =this.getPageData(); - map = HKUtil.cameraSearch(pd); - if(ObjectUtils.isEmpty(map)){ - map = new HashMap(); - } - map.put("result", "success"); - return map; - } - - - /** - * @Description: 解析摄像头播放地址 - * @Author: dearLin - * @Date: 2024/1/15/015 17:22 - * @Param: [] [] - * @Return: com.zcloud.util.ReturnMap - */ - @RequestMapping(value = "/getCameraHlsPath") - @ResponseBody - public ReturnMap getCameraHlsPath() { - PageData pageData = this.getPageData(); - JSONObject request = new JSONObject(); - request.put("INDEXCODE", pageData.getString("INDEXCODE")); - return HttpRequestUtil.getCameraHlsPathApi("/platformvideomanagement/getHlsPath", request.toString()); - } - @RequestMapping(value="/getHlsPath") - @ResponseBody - public Object getHlsPath() throws Exception{ - Map map = new HashMap(); - PageData pd =this.getPageData(); - map = HKUtil.camerasPreviewURLs(pd.getString("INDEXCODE"),"hls"); - if(ObjectUtils.isEmpty(map)){ - map = new HashMap(); - } - map.put("result", "success"); - return map; - } -} diff --git a/src/main/java/com/zcloud/controller/czksmap/CzksMapController.java b/src/main/java/com/zcloud/controller/czksmap/CzksMapController.java deleted file mode 100644 index 34e323f9..00000000 --- a/src/main/java/com/zcloud/controller/czksmap/CzksMapController.java +++ /dev/null @@ -1,556 +0,0 @@ -package com.zcloud.controller.czksmap; - -import com.alibaba.fastjson.JSONObject; -import com.zcloud.controller.base.BaseController; -import com.zcloud.entity.Page; -import com.zcloud.entity.PageData; -import com.zcloud.service.czksbimap.CzksBiMapService; -import com.zcloud.service.bus.CorpInfoService; -import com.zcloud.service.fireresources.CzksFireResourcesService; -import com.zcloud.service.gatemachine.GateMachineService; -//import com.zcloud.service.keyProjects.MeteorologicalService; -//import com.zcloud.service.keyProjects.MeteorologicalinfoService; -import com.zcloud.service.keyProjects.PlatformvideomanagementService; -import com.zcloud.service.keyProjects.VideoManagerService; -import com.zcloud.service.system.DepartmentService; -import com.zcloud.service.system.UsersService; -import com.zcloud.util.HttpRequestUtil; -import com.zcloud.util.Jurisdiction; -import com.zcloud.util.ReturnMap; -import com.zcloud.util.Tools; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.stereotype.Controller; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.ResponseBody; -import org.springframework.web.client.RestTemplate; - -import javax.annotation.Resource; -import java.util.HashMap; -import java.util.LinkedList; -import java.util.List; -import java.util.Map; - -/** - * 说明:实时地图 - * 官网:www.zcloudchina.com - */ -@Controller -@RequestMapping("/czks/map") -public class CzksMapController extends BaseController { - - @Resource - private CzksBiMapService biMapService; - - @Autowired - private VideoManagerService videomanagerService; - @Autowired - private CorpInfoService corpInfoService; - - @Autowired - private PlatformvideomanagementService platformvideomanagementService; - @Autowired - private UsersService usersService; - -// @Autowired -// private MeteorologicalinfoService meteorologicalinfoService; - - @Autowired - private RestTemplate restTemplate; - - @Autowired - private CzksFireResourcesService fireResourcesService; - - @Autowired - private DepartmentService departmentService; - - @Autowired - private GateMachineService gateMachineService; - - - @RequestMapping("/getPointInfoADeviceByPid") - @ResponseBody - public Object getPointInfoADeviceByPid() { - PageData pd = this.getPageData(); - PageData map = fireResourcesService.getPointInfoADeviceByPid(pd); - map.put("result", "success"); - return map; - } - - @RequestMapping("/getPointQualifiedPhotos") - @ResponseBody - public Object getPointQualifiedPhotos() { - Map map = new HashMap(); - PageData pd = this.getPageData(); - map.put("result", "success"); - map.put("varList", fireResourcesService.getPointQualifiedPhotos(pd)); - return map; - } - - - /** - * @Description: 消防管控 - * @Author: dearLin - * @Date: 2023/9/20/020 15:30 - * @Param: [] [] - * @Return: java.lang.Object - */ - @RequestMapping("/getFireControl") - @ResponseBody - public Object getFireControl() throws Exception { - Map map = new HashMap(); - PageData pageData = this.getPageData(); - LinkedList value = biMapService.getFireControl(pageData); - for (PageData data : value) { - data.put("MAP_POINT_NAME", data.getString("NAME")); - } - map.put("result", "success"); - map.put("varList", value); - return map; - } - - /** - * @Description: 消防资源 - * @Author: dearLin - * @Date: 2023/9/26/026 17:36 - * @Param: [] [] - * @Return: java.lang.Object - */ - @RequestMapping("/getFireResourceById") - @ResponseBody - public Object getFireResourceById() throws Exception { - Map map = new HashMap(); - String errInfo = "success"; - PageData pddata = this.getPageData(); - //获取当前人的公司id - PageData pd = fireResourcesService.getDataById(pddata); - map.put("pd", pd); - map.put("result", errInfo); - return map; - } - - /** - * @Description: 消防救援队 - * @Author: dearLin - * @Date: 2023/9/20/020 15:30 - * @Param: [] [] - * @Return: java.lang.Object - */ - @RequestMapping("/getFireRescueTeam") - @ResponseBody - public Object getFireRescueTeam() throws Exception { - Map map = new HashMap(); - PageData pageData = this.getPageData(); - LinkedList data = biMapService.getFireRescueTeam(pageData); - map.put("result", "success"); - map.put("varList", data); - return map; - } - - - /** - * 气象信息对接接口 - * - * @return - * @throws Exception - */ -// @RequestMapping(value = "/tongMeteorologicalinfoList") -// @ResponseBody -// public ReturnMap tongMeteorologicalinfoList(@RequestBody List list) throws Exception { -// ReturnMap r = new ReturnMap(); -// r = meteorologicalinfoService.tongbuMeteorologicalinfo(list); -// return r; -// } - - - /** - * @Description: 闸机设备在线情况 只有人车闸机 - * @Author: dearLin - * @Date: 2023/9/23/023 9:04 - * @Param: - * @Return: - */ - @RequestMapping("/getOnlineGateEquipment") - @ResponseBody - public ReturnMap getOnlineGateEquipment() { - ReturnMap returnMap = new ReturnMap(); - PageData pageData = this.getPageData(); - PageData value = gateMachineService.getOnlineGateMachine(pageData); - returnMap.put("pd", value); - return returnMap; - } - - /** - * @Description: 闸机位置 - * @Author: dearLin - * @Date: 2023/9/23/023 9:04 - * @Param: - * @Return: - */ -// @RequestMapping("/getGatePosition") -// @ResponseBody -// public ReturnMap getGatePosition() { -// ReturnMap returnMap = new ReturnMap(); -// PageData pageData = this.getPageData(); -// // -// List value = gateMachineService.getGatePosition(pageData); -// // 添加标点上的统一的title -// for (PageData data : value) { -// if (Tools.notEmpty(data.getString("GATE_AREA_NAME"))) { -// data.put("MAP_POINT_NAME", data.getString("GATE_AREA_NAME")); -// } else { -// data.put("MAP_POINT_NAME", data.getString("NAME")); -// } -// } -// returnMap.put("varList", value); -// return returnMap; -// } - - - /** - * @Description: 口门进出记录列表 - * @Author: dearLin - * @Date: 2023/9/23/023 9:04 - * @Param: - * @Return: - */ - @RequestMapping("/getDoorWayRecords") - @ResponseBody - public ReturnMap getDoorWayRecords(Page page) { - ReturnMap returnMap = new ReturnMap(); - PageData pageData = this.getPageData(); - page.setPd(pageData); - if ("0".equals(pageData.getString("INDEX"))) { - // 人 - List value = biMapService.getDoorWayPeopleRecords(page); - returnMap.put("varList", value); - return returnMap; - } else { - // 车 - List value = biMapService.getDoorWayCarRecords(page); - returnMap.put("varList", value); - return returnMap; - } - } - - - /** - * @Description: 闸机进出车、人的数量 - * @Author: dearLin - * @Date: 2023/9/23/023 9:04 - * @Param: - * @Return: - */ - @RequestMapping("/getGatesInAndOutNumById") - @ResponseBody - public ReturnMap getGatesInAndOutNumById() { - ReturnMap returnMap = new ReturnMap(); - PageData pageData = this.getPageData(); - Map data = biMapService.getGatesInAndOutNumById(pageData); - returnMap.put("pd", data); - return returnMap; - } - - /** - * 人员进出记录列表 - * - * @return - */ - @RequestMapping("/getGatesInAndOutListById") - @ResponseBody - public ReturnMap getGatesInAndOutListById(Page page) { - ReturnMap returnMap = new ReturnMap(); - PageData pd = this.getPageData(); - page.setPd(pd); - List recordAllList = gateMachineService.getPersonRecordListAllByEId(page); - returnMap.put("recordAllList", recordAllList); - return returnMap; - } - - - @RequestMapping(value = "/fireResource/list") - @ResponseBody - public Object page(Page page) { - Map map = new HashMap(); - String errInfo = "success"; - PageData pd = this.getPageData(); - //获取当前人的公司id - page.setPd(pd); - - List varList = fireResourcesService.datalistPage(page); - map.put("varList", varList); - map.put("page", page); - map.put("result", errInfo); - return map; - } - - @RequestMapping(value = "/fireDevice/listByMap") - @ResponseBody - public Object devicelistByMap(Page page) { - Map map = new HashMap(); - String errInfo = "success"; - PageData pd = this.getPageData(); - String corpinfoId = Jurisdiction.getCORPINFO_ID(); - pd.put("CORPINFO_ID", corpinfoId); - - //获取当前人的公司id - page.setPd(pd); - List varList = fireResourcesService.devicelistPage(page); - map.put("varList", varList); - map.put("page", page); - map.put("result", errInfo); - return map; - } - - /** - * 获取人员、车辆进出记录 - * - * @param - * @return - */ - @RequestMapping(value = "/getPerpleCarGateMachineCount") - @ResponseBody - public Object getPerpleCarGateMachineCount() { - Map map = new HashMap(); - String errInfo = "success"; - PageData pd = this.getPageData(); - map.put("result", errInfo); - return map; - } - - @RequestMapping(value = "/getMachineTodayInOutCount") - @ResponseBody - public Object getMachineTodayInOutCount() { - Map map = new HashMap(); - String errInfo = "success"; - PageData pd = this.getPageData(); - List value = gateMachineService.getTodayInOutCount(pd); - map.put("varList", value); - map.put("result", errInfo); - return map; - } - - /** - * 沧州矿石人员定位,告警数据 Alarm data - */ - @RequestMapping(value = "/getAlarmData") - @ResponseBody - public Object getAlarmData() { - return HttpRequestUtil.getPeopleApi("/statistics/alarmStatistics/todayAlarm", ""); - } - - /** - * @Description: 定位基础信息 - * @Author: dearLin - * @Date: 2024/1/6/006 11:15 - * @Param: [] [] - * @Return: java.lang.Object - */ - @RequestMapping(value = "/getCzksBasicLocationInfoData") - @ResponseBody - public Object getCzksBasicLocationInfoData() { - return HttpRequestUtil.getPeopleApi("/statistics/personStatistics/todayPerson", ""); - } - - @RequestMapping("/getGatePosition") - @ResponseBody - public ReturnMap getCzksGatePosition() { - ReturnMap returnMap = new ReturnMap(); - PageData pageData = this.getPageData(); - // - pageData.put("CORPINFO_ID", Jurisdiction.getCORPINFO_ID()); - List value = gateMachineService.getGatePosition(pageData); - // 添加标点上的统一的title - for (PageData data : value) { - if (Tools.notEmpty(data.getString("GATE_AREA_NAME"))) { - data.put("MAP_POINT_NAME", data.getString("GATE_AREA_NAME")); - } else { - data.put("MAP_POINT_NAME", data.getString("NAME")); - } - } - returnMap.put("varList", value); - return returnMap; - } - - /** - * @Description: 人员定位信息 - * @Author: dearLin - * @Date: 2024/1/6/006 17:33 - * @Param: [] [] - * @Return: java.lang.Object - */ - @RequestMapping(value = "person/allPerson/listPage") - @ResponseBody - public Object getCzksOnlinePersion() throws Exception { - PageData pageData = this.getPageData(); - JSONObject request = new JSONObject(); - request.put("pageNum", 1); - request.put("pageSize", 10); - request.put("online", "true"); - // 人员定位在线 - ReturnMap online = HttpRequestUtil.getPeopleApi("/person/allPerson/listPage", request.toString()); - pageData.put("CORPINFO_ID", Jurisdiction.getCORPINFO_ID()); - // 系统人员数 - int userCount = usersService.getUserCount(pageData); - // 系统部门数 - int departCount = departmentService.getDepartmentCount(pageData); - online.put("userCount",userCount); - online.put("departCount",departCount); - return online; - } - /** - * @Description: 电子围栏报警 Electronic fence - * @Author: dearLin - * @Date: 2024/1/6/006 11:15 - * @Param: [] [] - * @Return: java.lang.Object - */ - @RequestMapping(value = "/getFenceAlarmList") - @ResponseBody - public Object getFenceAlarmList() { - PageData pageData = this.getPageData(); - JSONObject request = new JSONObject(); - request.put("pageNum", pageData.getString("currentPage")); - request.put("pageSize", pageData.getString("showCount")); - request.put("beginTime", pageData.getString("beginTime")); - request.put("endTime", pageData.getString("endTime")); - request.put("alarmType", pageData.getString("alarmType")); - request.put("alarmStatus", pageData.getString("alarmStatus")); - request.put("realName", pageData.getString("realName")); - // 标签卡 - return HttpRequestUtil.getPeopleApi("/system/alarm/person/listPage", request.toString()); - } - /** - * @Description: 电子围栏报警 Electronic fence - * @Author: dearLin - * @Date: 2024/1/6/006 11:15 - * @Param: [] [] - * @Return: java.lang.Object - */ - @RequestMapping(value = "/getElectronicFenceList") - @ResponseBody - public Object getElectronicFenceList() { - PageData pageData = this.getPageData(); - JSONObject request = new JSONObject(); - request.put("pageNum", pageData.getString("currentPage")); - request.put("pageSize", pageData.getString("showCount")); - request.put("railName", pageData.getString("railName")); - // 标签卡 - return HttpRequestUtil.getPeopleApi("/system/rail/listPage", request.toString()); - } - - /** - * @Description: 获取摄像头定位 - * @Author: dearLin - * @Date: 2024/1/6/006 11:15 - * @Param: [] [] - * @Return: java.lang.Object - */ - @RequestMapping(value = "/getCameraPositioning") - @ResponseBody - public Object getCameraPositioning() { - ReturnMap returnMap = new ReturnMap(); - PageData pageData = new PageData(); - pageData.put("CORPINFO_ID",Jurisdiction.getCORPINFO_ID()); - List dataList = platformvideomanagementService.listAllForMap(pageData); - returnMap.put("varList",dataList); - return returnMap; - } - /** - * @Description: 设备在线情况 - * @Author: dearLin - * @Date: 2024/1/6/006 11:15 - * @Param: [] [] - * @Return: java.lang.Object - */ - @RequestMapping(value = "/getListMapSluiceCount") - @ResponseBody - public Object getListMapSluiceCount() { - ReturnMap returnMap = new ReturnMap(); - PageData pageData = new PageData(); - pageData.put("CORPINFO_ID",Jurisdiction.getCORPINFO_ID()); - List dataList = platformvideomanagementService.getListMapSluiceCount(pageData); - returnMap.put("varList",dataList); - return returnMap; - } - @RequestMapping(value = "/person/staff/listPage") - @ResponseBody - public Object getCzksPersonStaffListPage() { - PageData pageData = this.getPageData(); - JSONObject request = new JSONObject(); - request.put("pageNum", pageData.getString("pageNum")); - request.put("pageSize", pageData.getString("pageSize")); - // 普通员工 - if ("1".equals(pageData.getString("type"))) { - return HttpRequestUtil.getPeopleApi("/person/staff/listPage", request.toString()); - } else { - // 相关方 员工 - return HttpRequestUtil.getPeopleApi("/person/allPerson/listPage", request.toString()); - } - } - /** - * 沧州矿石人员定位结束 定位基础信息 - */ - /** - * 获取人员、车辆进出记录 - * - * @param - * @return - */ - @RequestMapping(value = "/getCurrentLocationOnline") - @ResponseBody - public Object getCurrentLocationOnline() { - Map map = new HashMap(); - String errInfo = "success"; - map.put("result", errInfo); - return map; - } - - // 获取人员定位信息 根据定位卡(身份证)编码 - @RequestMapping(value = "/getPersonByCardNo") - @ResponseBody - public Object getPersonByCardNo() throws Exception { - Map map = new HashMap(); - PageData pd = this.getPageData(); - PageData value = usersService.getPersonByCardNo(pd); - map.put("result", "success"); - map.put("pd", value); - return map; - } - - /** - * 获取摄像头播放路径(曹妃甸使用) - * - * @throws Exception - */ - @RequestMapping(value = "/getHlsPath") - @ResponseBody - public Object getHlsPath() throws Exception { - Map map = new HashMap(); - - return map; - } - - /** - * 查询人员在线及统计数据(曹妃甸使用) - * - * @throws Exception - */ - @RequestMapping(value = "/getCurrentPersonnelData") - @ResponseBody - public Object getCurrentPersonnelData() throws Exception { - Map map = new HashMap(); - PageData pd = this.getPageData(); - return map; - } - - @RequestMapping("/getUserMapInfo") - @ResponseBody - public ReturnMap getUserMapInfo() throws Exception { - PageData pd = this.getPageData(); - pd = usersService.findByCardNo(pd); //列出HotWorkApplicationDelayed列表 - ReturnMap r = ReturnMap.ok(); - r.put("pd", pd); - return r; - } - -} diff --git a/src/main/java/com/zcloud/controller/czksmap/CzksMapEightController.java b/src/main/java/com/zcloud/controller/czksmap/CzksMapEightController.java deleted file mode 100644 index 7b42cd69..00000000 --- a/src/main/java/com/zcloud/controller/czksmap/CzksMapEightController.java +++ /dev/null @@ -1,191 +0,0 @@ -package com.zcloud.controller.czksmap; - -import com.zcloud.controller.base.BaseController; -import com.zcloud.entity.Page; -import com.zcloud.entity.PageData; -import com.zcloud.service.czksbimap.CzksMapEightService; -import com.zcloud.util.Jurisdiction; -import org.apache.commons.lang.StringUtils; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.stereotype.Controller; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestParam; -import org.springframework.web.bind.annotation.ResponseBody; - -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -/** - * 说明:实时地图八项工作内容 - * 官网:www.zcloudchina.com - */ -@Controller -@RequestMapping("/czks/map/Eight") -public class CzksMapEightController extends BaseController { - - @Autowired - private CzksMapEightService mapEightService; - - /** - * @return - * @throws Exception - */ - @RequestMapping(value = "/getEcharts") - @ResponseBody - public Object getEcharts() throws Exception { - PageData pd = this.getPageData(); - pd.put("CORPINFO_ID", Jurisdiction.getCORPINFO_ID()); // 企业 - - return mapEightService.getEchartsOrder(pd); - } - - /** - * 可视化首页统计数据 - * - * @param - * @throws Exception - */ - @RequestMapping(value = "/findFormCount") - @ResponseBody - public Object findFormCount() throws Exception { - Map map = new HashMap(); - String errInfo = "success"; - PageData pd = this.getPageData(); - pd.put("CORPINFO_ID", Jurisdiction.getCORPINFO_ID()); // 企业 - - PageData data = mapEightService.statisticsHighRiskWorkByStateOrder(pd); - map.put("pd", data); - map.put("result", errInfo); - return map; - } - - /** - * 作业实时情况展示(最新18条) - * - * @param - * @throws Exception - */ - @RequestMapping(value = "/listHighRiskWork") - @ResponseBody - public Object listHighRiskWork(Page page) throws Exception { - Map map = new HashMap(); - String errInfo = "success"; - PageData pd = this.getPageData(); - pd.put("CORPINFO_ID", Jurisdiction.getCORPINFO_ID()); // 企业 - page.setPd(pd); - List varList = mapEightService.listHighRiskWorkOrder(page); - map.put("varList", varList); - map.put("result", errInfo); - return map; - } - - /** - * 获取所有高危作业的位置坐标(有坐标数据) - * - * @param - * @throws Exception - */ - @RequestMapping(value = "/listAllHighRiskWorkLocation") - @ResponseBody - public Object listAllHighRiskWorkLocation() throws Exception { - Map map = new HashMap(); - String errInfo = "success"; - PageData pd = this.getPageData(); - pd.put("CORPINFO_ID", Jurisdiction.getCORPINFO_ID()); // 企业 - List varList; - if (StringUtils.equals("035958e685cf4850bc40151c5e0617a6", pd.getString("CORPINFO_ID"))) { //一公司 - varList = mapEightService.listAllHighRiskWorkLocation(pd); - } else { - varList = mapEightService.listAllHighRiskWorkLocationOrder(pd); - } - // 处理一下 name 的问题 - if (varList != null) { - varList.forEach(item -> { - item.put("MAP_POINT_NAME", item.getString("NAME")); - }); - } - map.put("varList", varList); - map.put("result", errInfo); - return map; - } - - /** - * 根据id以及类型获取数据 一公司 - * - * @param id 数据id - * @param type 数据类型 动火 等等 - * @return - */ - @RequestMapping(value = "/getById") - @ResponseBody - public Object getById(@RequestParam(value = "id") String id, @RequestParam("TYPE") String type) throws Exception { - PageData pd = this.getPageData(); - pd.put("CORPINFO_ID", Jurisdiction.getCORPINFO_ID()); // 企业 - - return mapEightService.getById(pd); - - } - - /** - * 根据id以及类型获取数据 其他公司 - * - * @param id 数据id - * @param type 数据类型 动火 等等 - * @return - */ - @RequestMapping(value = "/getByIdOrder") - @ResponseBody - public Object getByIdOrder(@RequestParam(value = "id") String id, @RequestParam("TYPE") String type) throws Exception { - PageData pd = new PageData(); - pd = this.getPageData(); - pd.put("CORPINFO_ID", Jurisdiction.getCORPINFO_ID()); // 企业 - - return mapEightService.getByIdOrder(pd); - - } - - /** - * 列表 - * - * @param page - * @throws Exception - */ - @RequestMapping(value = "/list") - @ResponseBody - public Object list(Page page) throws Exception { - Map map = new HashMap(); - String errInfo = "success"; - PageData pd = new PageData(); - pd = this.getPageData(); - pd.put("CORPINFO_ID", Jurisdiction.getCORPINFO_ID()); // 企业 - - List varList = mapEightService.listAll(pd); //列出HotWorkApplicationDelayed列表 - map.put("varList", varList); - map.put("page", page); - map.put("result", errInfo); - return map; - } - - /** - * 获取动火防护措施 - * - * @param - * @throws Exception - */ - @RequestMapping(value = "/listAllMeasures") - @ResponseBody - public Object listAllMeasures() throws Exception { - Map map = new HashMap(); - String errInfo = "success"; - PageData pd = new PageData(); - pd = this.getPageData(); - pd.put("CORPINFO_ID", Jurisdiction.getCORPINFO_ID()); // 企业 - - List varList = mapEightService.listAllMeasures(pd); //根据ID读取 - map.put("varList", varList); - map.put("result", errInfo); - return map; - } - -} diff --git a/src/main/java/com/zcloud/controller/czksmap/CzksMapPlatFormElectronicController.java b/src/main/java/com/zcloud/controller/czksmap/CzksMapPlatFormElectronicController.java deleted file mode 100644 index 8088ff7c..00000000 --- a/src/main/java/com/zcloud/controller/czksmap/CzksMapPlatFormElectronicController.java +++ /dev/null @@ -1,85 +0,0 @@ -package com.zcloud.controller.czksmap; - -import com.zcloud.controller.base.BaseController; -//import com.zcloud.service.keyProjects.PlatformelectronicService; -//import com.zcloud.util.hk.HKPostUtil; -import org.springframework.stereotype.Controller; -import org.springframework.web.bind.annotation.RequestMapping; - -@Controller -@RequestMapping("/czks/map/mapPlatformelectronic") -public class CzksMapPlatFormElectronicController extends BaseController { -// @Autowired -// private PlatformelectronicService platformelectronicService; - - /**总摄像头数 - * @throws Exception - */ -// @RequestMapping(value="/listAll") -// @ResponseBody -// public Object listAll() throws Exception{ -// Map map = new HashMap(); -// String errInfo = "success"; -// PageData pd = new PageData(); -// pd = this.getPageData(); -// Integer allForMap = platformelectronicService.countAllForMap(pd); //列出Platformelectronic列表 -// map.put("allForMap", allForMap); -// map.put("result", errInfo); -// return map; -// } - - - /**根据区域统计摄像头总数 - * @throws Exception - */ -// @RequestMapping(value="/listAllByArea") -// @ResponseBody -// public Object listAllByArea() throws Exception{ -// Map map = new HashMap(); -// String errInfo = "success"; -// PageData pd = new PageData(); -// pd = this.getPageData(); -// List countAllByArea = platformelectronicService.countAllByArea(pd); //列出Platformelectronic列表 -// map.put("varList", countAllByArea); -// map.put("result", errInfo); -// return map; -// } - - - /**地图插点 - * @throws Exception - */ -// @RequestMapping(value="/listAllLocation") -// @ResponseBody -// public Object listAllLocation() throws Exception{ -// Map map = new HashMap(); -// String errInfo = "success"; -// PageData pd = new PageData(); -// pd = this.getPageData(); -// pd.put("forMap","1"); -// List varList = platformelectronicService.listAll(pd); //列出Platformelectronic列表 -// for (PageData data : varList) { -// data.put("MAP_POINT_NAME", data.getString("NAME")); -// } -// map.put("varList", varList); -// map.put("result", errInfo); -// return map; -// } - - /**列表 - * @throws Exception - */ -// @RequestMapping(value="/getHlsPathById") -// @ResponseBody -// public Object getHlsPath() throws Exception{ -// Map map = new HashMap(); -// PageData pd =this.getPageData(); -// pd = platformelectronicService.findById(pd); -// map = HKPostUtil.camerasPreviewURLs(pd.getString("INDEXCODE"),"hls"); -// map.put("pd",pd); -// map.put("result", "success"); -// return map; -// } - - -} diff --git a/src/main/java/com/zcloud/controller/czksmap/CzksObtainDisplayDataController.java b/src/main/java/com/zcloud/controller/czksmap/CzksObtainDisplayDataController.java deleted file mode 100644 index 7f9b4cdd..00000000 --- a/src/main/java/com/zcloud/controller/czksmap/CzksObtainDisplayDataController.java +++ /dev/null @@ -1,39 +0,0 @@ -package com.zcloud.controller.czksmap; - -import com.zcloud.controller.base.BaseController; -import com.zcloud.entity.PageData; -import com.zcloud.service.bus.RiskUnitService; -import com.zcloud.service.keyProjects.PlatformvideomanagementService; -import com.zcloud.util.ReturnMap; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.stereotype.Controller; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.ResponseBody; - -@Controller -@RequestMapping("/czks/ObtainDisplayData") -public class CzksObtainDisplayDataController extends BaseController { - - @Autowired - private RiskUnitService riskUnitService; - @Autowired - private PlatformvideomanagementService platformvideomanagementService; - - @RequestMapping(value="/getRiskList") - @ResponseBody - public Object getRiskList() throws Exception{ - PageData pd = this.getPageData(); - return riskUnitService.listAllForMap(pd); - } - - @RequestMapping(value="/listAllCameraForMap") - @ResponseBody - public Object listAllCameraForMap() throws Exception{ - PageData pd = this.getPageData(); - ReturnMap returnMap = new ReturnMap(); - returnMap.put("data", platformvideomanagementService.listAllForMap(pd)); - return returnMap; - } - - -} diff --git a/src/main/java/com/zcloud/controller/czksmap/CzksUserPositionController.java b/src/main/java/com/zcloud/controller/czksmap/CzksUserPositionController.java deleted file mode 100644 index f686fa8d..00000000 --- a/src/main/java/com/zcloud/controller/czksmap/CzksUserPositionController.java +++ /dev/null @@ -1,56 +0,0 @@ -package com.zcloud.controller.czksmap; - -import com.zcloud.controller.base.BaseController; -import com.zcloud.entity.PageData; -import com.zcloud.service.system.UsersService; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.stereotype.Controller; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.ResponseBody; - -@Controller -@RequestMapping("/czks/UserPosition") -public class CzksUserPositionController extends BaseController { - @Autowired - private UsersService usersService; - - @RequestMapping(value="/getCurrentLocationOnline") - @ResponseBody - public Object getCurrentLocationOnline() throws Exception{ - PageData pd = this.getPageData(); - return usersService.getCurrentLocation(pd); - } - - /** - * 查询人员在线及统计数据 - * @return - * @throws Exception - */ - @RequestMapping(value = "/getCurrentPersonnelData") - @ResponseBody - public Object getCurrentPersonnelData() throws Exception{ - PageData pd = this.getPageData(); - return usersService.getCurrentPersonnelData(pd); - } - - /** - * 获取人员定位统计列表 - * @return - * @throws Exception - */ - @RequestMapping(value = "/personPositioningStatistics") - @ResponseBody - public Object getPersonPositioningStatistics() throws Exception{ - PageData pd = new PageData(); - pd = this.getPageData(); - return usersService.getPersonPositioningStatistics(pd); - } - - @RequestMapping(value="/getCurrentLocationOnlineCount") - @ResponseBody - public Object getCurrentLocationOnlineCount() throws Exception{ - PageData pd = new PageData(); - pd = this.getPageData(); - return usersService.getCurrentLocationCount(pd); - } -}