bad959b1 张雷

人员定位修改

1 个父辈 c9473d90
...@@ -119,12 +119,12 @@ public class ThirdController { ...@@ -119,12 +119,12 @@ public class ThirdController {
119 * @return 119 * @return
120 */ 120 */
121 @GetMapping("/alarmListByCount") 121 @GetMapping("/alarmListByCount")
122 public Result<JSONObject> getAlarmListByCount() { 122 public Result<Object> getAlarmListByCount() {
123 Result<JSONObject> result = new Result<JSONObject>(); 123 Result<Object> result = new Result<Object>();
124 String res = thirdService.getAlarmListByCount(); 124 String res = thirdService.getAlarmListByCount();
125 JSONObject json = JSONObject.parseObject(res); 125 JSONObject json = JSONObject.parseObject(res);
126 result.setSuccess(true); 126 result.setSuccess(true);
127 result.setResult(json); 127 result.setResult(json.get("data"));
128 return result; 128 return result;
129 } 129 }
130 130
...@@ -133,12 +133,26 @@ public class ThirdController { ...@@ -133,12 +133,26 @@ public class ThirdController {
133 * @return 133 * @return
134 */ 134 */
135 @GetMapping("/weekAlarmState") 135 @GetMapping("/weekAlarmState")
136 public Result<JSONObject> getWeekAlarmState() { 136 public Result<Object> getWeekAlarmState() {
137 Result<JSONObject> result = new Result<JSONObject>(); 137 Result<Object> result = new Result<Object>();
138 String res = thirdService.getWeekAlarmState(); 138 String res = thirdService.getWeekAlarmState();
139 JSONObject json = JSONObject.parseObject(res); 139 JSONObject json = JSONObject.parseObject(res);
140 result.setSuccess(true); 140 result.setSuccess(true);
141 result.setResult(json); 141 result.setResult(json.get("data"));
142 return result;
143 }
144
145 /**
146 * 获取最近7天的告警统计数据
147 * @return
148 */
149 @GetMapping("/safeArea")
150 public Result<Object> getSafeArea() {
151 Result<Object> result = new Result<Object>();
152 String res = thirdService.getSafeArea();
153 JSONObject json = JSONObject.parseObject(res);
154 result.setSuccess(true);
155 result.setResult(json.get("data"));
142 return result; 156 return result;
143 } 157 }
144 } 158 }
......
...@@ -18,4 +18,6 @@ public interface IThirdService { ...@@ -18,4 +18,6 @@ public interface IThirdService {
18 String getWeekAlarmState(); 18 String getWeekAlarmState();
19 19
20 ThirdPosition getRealTimeLocation(String deviceId); 20 ThirdPosition getRealTimeLocation(String deviceId);
21
22 String getSafeArea();
21 } 23 }
......
...@@ -212,5 +212,11 @@ public class IThirdServiceImpl implements IThirdService { ...@@ -212,5 +212,11 @@ public class IThirdServiceImpl implements IThirdService {
212 return thirdPosition; 212 return thirdPosition;
213 } 213 }
214 214
215 @Override
216 public String getSafeArea() {
217 String get = HttpUtil.get(CommonConstant.SAFE_AREA_URL+"?buildingId=10");
218 return get;
219 }
220
215 221
216 } 222 }
......
...@@ -33,6 +33,7 @@ public interface CommonConstant { ...@@ -33,6 +33,7 @@ public interface CommonConstant {
33 String BUILD_URL = CMCC_IP + "/api/v1/buildingAllInfo.shtml";//场景信息 33 String BUILD_URL = CMCC_IP + "/api/v1/buildingAllInfo.shtml";//场景信息
34 String HISTORY_URL = CMCC_IP + "/api/positionByDeviceId.shtml";//历史轨迹 34 String HISTORY_URL = CMCC_IP + "/api/positionByDeviceId.shtml";//历史轨迹
35 String ALARM_URL = CMCC_IP + "/api/v1/alarmListByCount.shtml";//告警信息 35 String ALARM_URL = CMCC_IP + "/api/v1/alarmListByCount.shtml";//告警信息
36 String WEEK_ALARM_URL = CMCC_IP + "/api/v1/weekAlarmState.shtml";//获取最近7天的告警统计数据* 36 String WEEK_ALARM_URL = CMCC_IP + "/api/v1/weekAlarmState.shtml";//获取最近7天的告警统计数据
37 String SAFE_AREA_URL = CMCC_IP + "/riskArea/all.shtml";//安全区域
37 38
38 } 39 }
......
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!