forked from integrated_whb/integrated_whb
人员定位中相关对接操作
parent
acb1c9a5a2
commit
af92ca1ba7
|
@ -148,7 +148,7 @@ public class AppEightWorkController extends BaseController {
|
||||||
ReturnMap returnMap = new ReturnMap();
|
ReturnMap returnMap = new ReturnMap();
|
||||||
PageData pd = new PageData();
|
PageData pd = new PageData();
|
||||||
pd = this.getPageData();
|
pd = this.getPageData();
|
||||||
JSONObject body = PLSUtil.getRyRegionList(pd.getString("CORPINFO_ID"),"",1,99999);
|
JSONObject body = PLSUtil.getRyRegionList(pd.getString("CORPINFO_ID"),"",1,99999,0);
|
||||||
|
|
||||||
if (body != null) {
|
if (body != null) {
|
||||||
List<JSONObject> list = body.getJSONArray("rows").toJavaList(JSONObject.class);
|
List<JSONObject> list = body.getJSONArray("rows").toJavaList(JSONObject.class);
|
||||||
|
|
|
@ -129,7 +129,7 @@ public class MapController extends BaseController {
|
||||||
@RequestMapping(value = "/getFenceList")
|
@RequestMapping(value = "/getFenceList")
|
||||||
@ResponseBody
|
@ResponseBody
|
||||||
public ReturnMap getFenceList() throws Exception {
|
public ReturnMap getFenceList() throws Exception {
|
||||||
return ReturnMap.ok().put("data", PLSUtil.getRyRegionList(Jurisdiction.getCORPINFO_ID(),"",1,999999));
|
return ReturnMap.ok().put("data", PLSUtil.getRyRegionList(Jurisdiction.getCORPINFO_ID(),"",1,999999,0));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -35,7 +35,7 @@ public class MapSettingController extends BaseController {
|
||||||
PageData pageData = this.getPageData();
|
PageData pageData = this.getPageData();
|
||||||
ReturnMap returnMap = new ReturnMap();
|
ReturnMap returnMap = new ReturnMap();
|
||||||
JSONObject body = PLSUtil.getLayerList(
|
JSONObject body = PLSUtil.getLayerList(
|
||||||
Jurisdiction.getCORPINFO_ID(), Integer.parseInt(pageData.getString("currentPage")), Integer.parseInt(pageData.getString("showCount")), pageData.getString("KEYWORDS"));
|
Jurisdiction.getCORPINFO_ID(), Integer.parseInt(pageData.getString("currentPage")), Integer.parseInt(pageData.getString("showCount")), pageData.getString("str"));
|
||||||
if (body != null) {
|
if (body != null) {
|
||||||
List<JSONObject> list = body.getJSONArray("rows").toJavaList(JSONObject.class);
|
List<JSONObject> list = body.getJSONArray("rows").toJavaList(JSONObject.class);
|
||||||
returnMap.put("varList", list);
|
returnMap.put("varList", list);
|
||||||
|
@ -130,7 +130,9 @@ public class MapSettingController extends BaseController {
|
||||||
@ResponseBody
|
@ResponseBody
|
||||||
public ReturnMap getFenceList() throws Exception {
|
public ReturnMap getFenceList() throws Exception {
|
||||||
PageData pageData = this.getPageData();
|
PageData pageData = this.getPageData();
|
||||||
return ReturnMap.ok().put("data", PLSUtil.getRyRegionList(Jurisdiction.getCORPINFO_ID(), pageData.getString("KEYWORDS"), Integer.parseInt(pageData.getString("currentPage")), Integer.parseInt(pageData.getString("showCount"))));
|
return ReturnMap.ok().put("data", PLSUtil.getRyRegionList(Jurisdiction.getCORPINFO_ID(), pageData.getString("str"),
|
||||||
|
Integer.parseInt(pageData.getString("currentPage")), Integer.parseInt(pageData.getString("showCount")),
|
||||||
|
Integer.parseInt(pageData.getString("type"))));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -97,12 +97,14 @@ public class PositAlarmController extends BaseController {
|
||||||
*/
|
*/
|
||||||
@RequestMapping(value = "/otherRegion/list")
|
@RequestMapping(value = "/otherRegion/list")
|
||||||
@ResponseBody
|
@ResponseBody
|
||||||
public ReturnMap otherRegionList() throws Exception {
|
public ReturnMap otherRegionList(Page page) throws Exception {
|
||||||
PageData pageData = this.getPageData();
|
PageData pageData = this.getPageData();
|
||||||
ReturnMap returnMap = new ReturnMap();
|
ReturnMap returnMap = new ReturnMap();
|
||||||
JSONObject body = PLSUtil.getRyRegionList(Jurisdiction.getCORPINFO_ID(), pageData.getString("KEYWORDS"), Integer.parseInt(pageData.getString("currentPage")), Integer.parseInt(pageData.getString("showCount")));
|
JSONObject body = PLSUtil.getRyRegionList(Jurisdiction.getCORPINFO_ID(), pageData.getString("str"), Integer.parseInt(pageData.getString("currentPage")), Integer.parseInt(pageData.getString("showCount")),Integer.parseInt(pageData.getString("type")));
|
||||||
if (body != null) {
|
if (body != null) {
|
||||||
returnMap.putAll(body);
|
returnMap.putAll(body);
|
||||||
|
page.setTotalResult(body.getIntValue("total"));
|
||||||
|
returnMap.put("page", page);
|
||||||
}
|
}
|
||||||
return returnMap;
|
return returnMap;
|
||||||
}
|
}
|
||||||
|
@ -253,12 +255,14 @@ public class PositAlarmController extends BaseController {
|
||||||
*/
|
*/
|
||||||
@RequestMapping(value = "/electronicFence/list")
|
@RequestMapping(value = "/electronicFence/list")
|
||||||
@ResponseBody
|
@ResponseBody
|
||||||
public ReturnMap electronicFenceList() throws Exception {
|
public ReturnMap electronicFenceList(Page page) throws Exception {
|
||||||
PageData pageData = this.getPageData();
|
PageData pageData = this.getPageData();
|
||||||
ReturnMap returnMap = new ReturnMap();
|
ReturnMap returnMap = new ReturnMap();
|
||||||
JSONObject body = PLSUtil.GeneralList("/region/electronicFence/list", pageData);
|
JSONObject body = PLSUtil.GeneralList("/region/electronicFence/list", pageData);
|
||||||
if (body != null) {
|
if (body != null) {
|
||||||
returnMap.putAll(body);
|
returnMap.putAll(body);
|
||||||
|
page.setTotalResult(body.getIntValue("total"));
|
||||||
|
returnMap.put("page", page);
|
||||||
}
|
}
|
||||||
return returnMap;
|
return returnMap;
|
||||||
}
|
}
|
||||||
|
@ -337,6 +341,7 @@ public class PositAlarmController extends BaseController {
|
||||||
JSONArray regions = JSONObject.parseArray(pageData.getString("regions"));
|
JSONArray regions = JSONObject.parseArray(pageData.getString("regions"));
|
||||||
JSONArray regId1 = JSONObject.parseArray(pageData.getString("regId1"));
|
JSONArray regId1 = JSONObject.parseArray(pageData.getString("regId1"));
|
||||||
JSONArray doubles = JSONObject.parseArray(pageData.getString("doubles"));
|
JSONArray doubles = JSONObject.parseArray(pageData.getString("doubles"));
|
||||||
|
JSONArray regGatherId = JSONObject.parseArray(pageData.getString("regGatherId"));
|
||||||
pageData.put("eleType", list);
|
pageData.put("eleType", list);
|
||||||
pageData.put("eleDept", eleDept);
|
pageData.put("eleDept", eleDept);
|
||||||
pageData.put("eleCrossed", eleCrossed);
|
pageData.put("eleCrossed", eleCrossed);
|
||||||
|
@ -344,6 +349,7 @@ public class PositAlarmController extends BaseController {
|
||||||
pageData.put("regId", regId);
|
pageData.put("regId", regId);
|
||||||
pageData.put("regId1", regId1);
|
pageData.put("regId1", regId1);
|
||||||
pageData.put("doubles", doubles);
|
pageData.put("doubles", doubles);
|
||||||
|
pageData.put("regGatherId", regGatherId);
|
||||||
|
|
||||||
ReturnMap returnMap = new ReturnMap();
|
ReturnMap returnMap = new ReturnMap();
|
||||||
JSONObject body = PLSUtil.GeneralPost("/region/electronicFence/", pageData, Jurisdiction.getCORPINFO_ID());
|
JSONObject body = PLSUtil.GeneralPost("/region/electronicFence/", pageData, Jurisdiction.getCORPINFO_ID());
|
||||||
|
@ -390,4 +396,82 @@ public class PositAlarmController extends BaseController {
|
||||||
}
|
}
|
||||||
return returnMap;
|
return returnMap;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/*
|
||||||
|
* 聚集告警记录
|
||||||
|
* */
|
||||||
|
|
||||||
|
@RequestMapping(value = "/getAlarmRecordList")
|
||||||
|
@ResponseBody
|
||||||
|
public ReturnMap getAlarmRecordList(Page page) throws Exception {
|
||||||
|
PageData pageData = this.getPageData();
|
||||||
|
ReturnMap returnMap = new ReturnMap();
|
||||||
|
// /old/gatherAlarms/regAlarmGatherList?pageNum=1&pageSize=10&status=1
|
||||||
|
JSONObject body = PLSUtil.GeneralList("/old/gatherAlarms/regAlarmGatherList", pageData);
|
||||||
|
if (body != null) {
|
||||||
|
returnMap.putAll(body);
|
||||||
|
page.setTotalResult(body.getIntValue("total"));
|
||||||
|
returnMap.put("page", page);
|
||||||
|
}
|
||||||
|
return returnMap;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* 聚集概览 */
|
||||||
|
/**
|
||||||
|
* @Description: 聚集告警趋势统计
|
||||||
|
* @Author: dearLin
|
||||||
|
* @Date: 2024/2/26/026 9:20
|
||||||
|
* @Param: [com.zcloud.entity.Page] [page]
|
||||||
|
* @Return: com.zcloud.util.ReturnMap
|
||||||
|
*/
|
||||||
|
@RequestMapping(value = "/aggregateAlarmTrends")
|
||||||
|
@ResponseBody
|
||||||
|
public ReturnMap aggregateAlarmTrends() throws Exception {
|
||||||
|
PageData pageData = this.getPageData();
|
||||||
|
ReturnMap returnMap = new ReturnMap();
|
||||||
|
// /old/gatherAlarms/aggregateAlarmTrends?type=2&time=2023-12-18
|
||||||
|
JSONObject body = PLSUtil.GeneralList("/old/gatherAlarms/aggregateAlarmTrends", pageData);
|
||||||
|
if (body != null) {
|
||||||
|
returnMap.putAll(body);
|
||||||
|
}
|
||||||
|
return returnMap;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* @Description: 根据告警区域进行聚集数据统计
|
||||||
|
* @Author: dearLin
|
||||||
|
* @Date: 2024/2/26/026 9:20
|
||||||
|
* @Param: [com.zcloud.entity.Page] [page]
|
||||||
|
* @Return: com.zcloud.util.ReturnMap
|
||||||
|
*/
|
||||||
|
@RequestMapping(value = "/aggregateDataStatisticsByGroup")
|
||||||
|
@ResponseBody
|
||||||
|
public ReturnMap aggregateDataStatisticsByGroup() throws Exception {
|
||||||
|
PageData pageData = this.getPageData();
|
||||||
|
ReturnMap returnMap = new ReturnMap();
|
||||||
|
JSONObject body = PLSUtil.GeneralList("/old/gatherAlarms/aggregateDataStatisticsByGroup", pageData);
|
||||||
|
if (body != null) {
|
||||||
|
returnMap.putAll(body);
|
||||||
|
}
|
||||||
|
return returnMap;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @Description: 根据告警等级进行聚集数据统计
|
||||||
|
* @Author: dearLin
|
||||||
|
* @Date: 2024/2/26/026 9:20
|
||||||
|
* @Param: [com.zcloud.entity.Page] [page]
|
||||||
|
* @Return: com.zcloud.util.ReturnMap
|
||||||
|
*/
|
||||||
|
@RequestMapping(value = "/aggregateDataStatistics")
|
||||||
|
@ResponseBody
|
||||||
|
public ReturnMap aggregateDataStatistics() throws Exception {
|
||||||
|
PageData pageData = this.getPageData();
|
||||||
|
ReturnMap returnMap = new ReturnMap();
|
||||||
|
JSONObject body = PLSUtil.GeneralList("/old/gatherAlarms/aggregateDataStatistics", pageData);
|
||||||
|
if (body != null) {
|
||||||
|
returnMap.putAll(body);
|
||||||
|
}
|
||||||
|
return returnMap;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -36,7 +36,7 @@ public class UserCardController extends BaseController {
|
||||||
ReturnMap returnMap = new ReturnMap();
|
ReturnMap returnMap = new ReturnMap();
|
||||||
page.setPd(pageData);
|
page.setPd(pageData);
|
||||||
JSONObject body = PLSUtil.getUserCardDataList(
|
JSONObject body = PLSUtil.getUserCardDataList(
|
||||||
Jurisdiction.getCORPINFO_ID(), Integer.parseInt(pageData.getString("currentPage")), Integer.parseInt(pageData.getString("showCount")), pageData.getString("KEYWORDS"));
|
Jurisdiction.getCORPINFO_ID(), Integer.parseInt(pageData.getString("currentPage")), Integer.parseInt(pageData.getString("showCount")), pageData.getString("str"));
|
||||||
if (body != null) {
|
if (body != null) {
|
||||||
List<JSONObject> list = body.getJSONArray("rows").toJavaList(JSONObject.class);
|
List<JSONObject> list = body.getJSONArray("rows").toJavaList(JSONObject.class);
|
||||||
returnMap.put("varList", list);
|
returnMap.put("varList", list);
|
||||||
|
|
|
@ -237,7 +237,7 @@ public class IdentificationPartsController extends BaseController {
|
||||||
PageData pageData = this.getPageData();
|
PageData pageData = this.getPageData();
|
||||||
String KEYWORDS = (String) pageData.getOrDefault("KEYWORDS", "");
|
String KEYWORDS = (String) pageData.getOrDefault("KEYWORDS", "");
|
||||||
|
|
||||||
JSONObject body = PLSUtil.getRyRegionList(Jurisdiction.getCORPINFO_ID(),KEYWORDS,Integer.parseInt(pageData.getString("currentPage")),Integer.parseInt(pageData.getString("showCount")));
|
JSONObject body = PLSUtil.getRyRegionList(Jurisdiction.getCORPINFO_ID(),KEYWORDS,Integer.parseInt(pageData.getString("currentPage")),Integer.parseInt(pageData.getString("showCount")),0);
|
||||||
|
|
||||||
if (body != null) {
|
if (body != null) {
|
||||||
List<JSONObject> list = body.getJSONArray("rows").toJavaList(JSONObject.class);
|
List<JSONObject> list = body.getJSONArray("rows").toJavaList(JSONObject.class);
|
||||||
|
|
|
@ -302,11 +302,11 @@ public class PLSUtil {
|
||||||
* @Param: [java.lang.String, java.lang.Integer, java.lang.Integer] [keywords, currentPage, showCount]
|
* @Param: [java.lang.String, java.lang.Integer, java.lang.Integer] [keywords, currentPage, showCount]
|
||||||
* @Return: com.alibaba.fastjson.JSONObject
|
* @Return: com.alibaba.fastjson.JSONObject
|
||||||
*/
|
*/
|
||||||
public static JSONObject getRyRegionList(String CORPINFO_ID, String keywords, Integer currentPage, Integer showCount) throws Exception {
|
public static JSONObject getRyRegionList(String CORPINFO_ID, String keywords, Integer currentPage, Integer showCount,Integer type) throws Exception {
|
||||||
HttpHeaders headers = new HttpHeaders();
|
HttpHeaders headers = new HttpHeaders();
|
||||||
String url = "/region/region/list?pageNum=" +
|
String url = "/region/region/list?pageNum=" +
|
||||||
currentPage +
|
currentPage +
|
||||||
"&pageSize=" + showCount + "&type=0" +
|
"&pageSize=" + showCount + "&type=" +type+
|
||||||
"&str=";
|
"&str=";
|
||||||
if (Tools.notEmpty(keywords)) url += keywords;
|
if (Tools.notEmpty(keywords)) url += keywords;
|
||||||
headers.set("Authorization", getToken(CORPINFO_ID));
|
headers.set("Authorization", getToken(CORPINFO_ID));
|
||||||
|
|
Loading…
Reference in New Issue