Commit f4be92a7 authored by 赵啸非's avatar 赵啸非

添加设备告警

parent 7b570154
......@@ -48,7 +48,7 @@ public class DeviceApiController {
*/
@PostMapping("upload")
public String upload(DeviceReq req) {
log.debug("【设备数据上报】【请求体】--> " + JSONObject.toJSONString(req));
log.info("【设备数据上报】【请求体】--> " + JSONObject.toJSONString(req));
ApiResp<DeviceResp> rsp = new ApiResp<>();
rsp.setMsg(ApiRespCodeEnum.SUCCESS.getLabel());
rsp.setCode(ApiRespCodeEnum.SUCCESS.getValue());
......@@ -67,7 +67,7 @@ public class DeviceApiController {
rsp.setData(deviceResp);
cacheService.del(KEY_DEVICE_TYPE_CACHE + req.getDevicenum());
//if(!ObjectUtils.isEmpty(type))
log.debug("响应【设备数据上报】【响应体】--> " + JSONObject.toJSONString(rsp));
log.info("响应【设备数据上报】【响应体】--> " + JSONObject.toJSONString(rsp));
return JSON.toJSONString(rsp);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment