|
|
@ -29,7 +29,7 @@ public class PullHandler {
|
|
|
|
public void handleUpload(CommonData data, String deviceId) throws Exception {
|
|
|
|
public void handleUpload(CommonData data, String deviceId) throws Exception {
|
|
|
|
Terminals term = terminalExtService.getByCmdid(deviceId);
|
|
|
|
Terminals term = terminalExtService.getByCmdid(deviceId);
|
|
|
|
if (term == null) {
|
|
|
|
if (term == null) {
|
|
|
|
log.error("mqtt收到拉力,但是该装置" + deviceId + "不存在");
|
|
|
|
log.error("mqtt收到PullAndAngleMonitoring,但是该装置" + deviceId + "不存在");
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
PullAndAngleMonitoring dataList = data.getDataList();
|
|
|
|
PullAndAngleMonitoring dataList = data.getDataList();
|
|
|
@ -37,6 +37,7 @@ public class PullHandler {
|
|
|
|
throw new ApiException("拉力dataList内容是空的");
|
|
|
|
throw new ApiException("拉力dataList内容是空的");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
String time = dataList.getTime().replace("T", "").replace("Z", "");
|
|
|
|
String time = dataList.getTime().replace("T", "").replace("Z", "");
|
|
|
|
|
|
|
|
log.info("mqtt消息PullAndAngleMonitoring " + deviceId + " " + time);
|
|
|
|
Date dTime = DateUtil.parse(time, "yyyyMMddHHmmss");
|
|
|
|
Date dTime = DateUtil.parse(time, "yyyyMMddHHmmss");
|
|
|
|
long updateTime = dTime.getTime() / 1000;
|
|
|
|
long updateTime = dTime.getTime() / 1000;
|
|
|
|
|
|
|
|
|
|
|
|