|
|
|
@ -77,7 +77,7 @@ public class BasedataMontQueryController extends BaseController { |
|
|
|
} |
|
|
|
|
|
|
|
@GetMapping({"/getMsgToWrz/{deviceCode}/{type}"}) |
|
|
|
public AjaxResult getMsgToWrz(@PathVariable("deviceCode") String deviceCode, @PathVariable("type") String type) { |
|
|
|
public JSONObject getMsgToWrz(@PathVariable("deviceCode") String deviceCode, @PathVariable("type") String type) { |
|
|
|
JSONObject json; |
|
|
|
HashMap map; |
|
|
|
if ("2".equals(type)) { |
|
|
|
@ -91,7 +91,7 @@ public class BasedataMontQueryController extends BaseController { |
|
|
|
} |
|
|
|
|
|
|
|
logger.info("DEVICE-RUNNING-DATA: {}, result: {}", new Date(), json); |
|
|
|
return AjaxResult.success(json); |
|
|
|
return json; |
|
|
|
} else if ("21".equals(type)) { |
|
|
|
json = this.basedataMontQueryService.getMontEvnData(deviceCode); |
|
|
|
if (null == json) { |
|
|
|
@ -103,7 +103,7 @@ public class BasedataMontQueryController extends BaseController { |
|
|
|
|
|
|
|
logger.info("ENVIRONMENT-DATA: {}, key: {}, type: {}", new Date(), deviceCode, type); |
|
|
|
logger.info("ENVIRONMENT-DATA: {}, result: {} ", new Date(), json); |
|
|
|
return AjaxResult.success(json); |
|
|
|
return json; |
|
|
|
} else if ("1".equals(type)) { |
|
|
|
json = this.basedataMontQueryService.getMontPatrolDeviceStaData(deviceCode); |
|
|
|
if (null == json) { |
|
|
|
@ -115,7 +115,7 @@ public class BasedataMontQueryController extends BaseController { |
|
|
|
|
|
|
|
logger.info("DEVICE-STATE-DATA: {}, key: {}, type: {}", new Date(), deviceCode, type); |
|
|
|
logger.info("DEVICE-STATE-DATA: {}, result: {}", new Date(), json); |
|
|
|
return AjaxResult.success(json); |
|
|
|
return json; |
|
|
|
} else if ("4".equals(type)) { |
|
|
|
json = this.basedataMontQueryService.getMontPatDevCoord(deviceCode); |
|
|
|
if (null == json) { |
|
|
|
@ -127,9 +127,12 @@ public class BasedataMontQueryController extends BaseController { |
|
|
|
|
|
|
|
logger.info("DEVICE-POS-DATA: {}, key: {}, type: {}", new Date(), deviceCode, type); |
|
|
|
logger.info("DEVICE-POS-DATA: {}, result: {}", new Date(), json); |
|
|
|
return AjaxResult.success(json); |
|
|
|
return json; |
|
|
|
} else { |
|
|
|
return AjaxResult.success("无此类型!"); |
|
|
|
JSONObject resultJson = new JSONObject(); |
|
|
|
resultJson.put("code", 200); |
|
|
|
resultJson.put("msg", "无此类型!"); |
|
|
|
return resultJson; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|