删除沧州矿石地图信息

0927cmt
zhaoyu 2024-02-06 14:32:47 +08:00
parent c107ac92bb
commit 3cfd300df0
6 changed files with 0 additions and 1112 deletions

View File

@ -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<String, String> 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<String,Object> map = new HashMap<String,Object>();
PageData pd =this.getPageData();
map = HKUtil.cameraSearch(pd);
if(ObjectUtils.isEmpty(map)){
map = new HashMap<String,Object>();
}
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<String,Object> map = new HashMap<String,Object>();
PageData pd =this.getPageData();
map = HKUtil.camerasPreviewURLs(pd.getString("INDEXCODE"),"hls");
if(ObjectUtils.isEmpty(map)){
map = new HashMap<String,Object>();
}
map.put("result", "success");
return map;
}
}

View File

@ -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<String, Object> map = new HashMap<String, Object>();
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<String, Object> map = new HashMap<String, Object>();
PageData pageData = this.getPageData();
LinkedList<PageData> 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<String, Object> map = new HashMap<String, Object>();
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<String, Object> map = new HashMap<String, Object>();
PageData pageData = this.getPageData();
LinkedList<PageData> 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<PageData> 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<PageData> 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<PageData> value = biMapService.getDoorWayPeopleRecords(page);
returnMap.put("varList", value);
return returnMap;
} else {
// 车
List<PageData> 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<String, Object> 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<PageData> recordAllList = gateMachineService.getPersonRecordListAllByEId(page);
returnMap.put("recordAllList", recordAllList);
return returnMap;
}
@RequestMapping(value = "/fireResource/list")
@ResponseBody
public Object page(Page page) {
Map<String, Object> map = new HashMap<String, Object>();
String errInfo = "success";
PageData pd = this.getPageData();
//获取当前人的公司id
page.setPd(pd);
List<PageData> 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<String, Object> map = new HashMap<String, Object>();
String errInfo = "success";
PageData pd = this.getPageData();
String corpinfoId = Jurisdiction.getCORPINFO_ID();
pd.put("CORPINFO_ID", corpinfoId);
//获取当前人的公司id
page.setPd(pd);
List<PageData> 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<String, Object> map = new HashMap<String, Object>();
String errInfo = "success";
PageData pd = this.getPageData();
map.put("result", errInfo);
return map;
}
@RequestMapping(value = "/getMachineTodayInOutCount")
@ResponseBody
public Object getMachineTodayInOutCount() {
Map<String, Object> map = new HashMap<String, Object>();
String errInfo = "success";
PageData pd = this.getPageData();
List<PageData> 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<PageData> 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<PageData> 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<PageData> 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<String, Object> map = new HashMap<String, Object>();
String errInfo = "success";
map.put("result", errInfo);
return map;
}
// 获取人员定位信息 根据定位卡(身份证)编码
@RequestMapping(value = "/getPersonByCardNo")
@ResponseBody
public Object getPersonByCardNo() throws Exception {
Map<String, Object> map = new HashMap<String, Object>();
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<String, Object> map = new HashMap<String, Object>();
return map;
}
/**
* 线(使
*
* @throws Exception
*/
@RequestMapping(value = "/getCurrentPersonnelData")
@ResponseBody
public Object getCurrentPersonnelData() throws Exception {
Map<String, Object> map = new HashMap<String, Object>();
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;
}
}

View File

@ -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<String, Object> map = new HashMap<String, Object>();
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<String, Object> map = new HashMap<String, Object>();
String errInfo = "success";
PageData pd = this.getPageData();
pd.put("CORPINFO_ID", Jurisdiction.getCORPINFO_ID()); // 企业
page.setPd(pd);
List<PageData> 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<String, Object> map = new HashMap<String, Object>();
String errInfo = "success";
PageData pd = this.getPageData();
pd.put("CORPINFO_ID", Jurisdiction.getCORPINFO_ID()); // 企业
List<PageData> 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<String, Object> map = new HashMap<String, Object>();
String errInfo = "success";
PageData pd = new PageData();
pd = this.getPageData();
pd.put("CORPINFO_ID", Jurisdiction.getCORPINFO_ID()); // 企业
List<PageData> 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<String, Object> map = new HashMap<String, Object>();
String errInfo = "success";
PageData pd = new PageData();
pd = this.getPageData();
pd.put("CORPINFO_ID", Jurisdiction.getCORPINFO_ID()); // 企业
List<PageData> varList = mapEightService.listAllMeasures(pd); //根据ID读取
map.put("varList", varList);
map.put("result", errInfo);
return map;
}
}

View File

@ -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<String,Object> map = new HashMap<String,Object>();
// 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<String,Object> map = new HashMap<String,Object>();
// String errInfo = "success";
// PageData pd = new PageData();
// pd = this.getPageData();
// List<PageData> 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<String,Object> map = new HashMap<String,Object>();
// String errInfo = "success";
// PageData pd = new PageData();
// pd = this.getPageData();
// pd.put("forMap","1");
// List<PageData> 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<String,Object> map = new HashMap<String,Object>();
// 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;
// }
}

View File

@ -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;
}
}

View File

@ -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);
}
}