Browse Source

视频AI 标题 上传方向 修改为济南方向,菏泽方向

develop
王兴琳 8 months ago
parent
commit
a745f6ca44
  1. 18
      zc-business/src/main/java/com/zc/business/message/device/handler/DeviceMessageHandler.java

18
zc-business/src/main/java/com/zc/business/message/device/handler/DeviceMessageHandler.java

@ -174,9 +174,22 @@ public class DeviceMessageHandler {
String warningSubclass = data.getString("warningSubclass");
// 子类型
dcWarning.setWarningSubclass(warningSubclass);
//桩号,方向
String stakeMarkDescription = data.getString("stakeMarkDescription");
String title = stakeMarkDescription + WarningSubclassEnum.getDecorateInfo(warningSubclass);
String direction = "";
String[] arr = stakeMarkDescription.split(" ");
//方向
if (arr[2] != null) {
if (arr[2].equals("上行")) {
direction=arr[0]+" "+arr[1]+ " 菏泽方向 ";
}
if (arr[2].equals("下行")) {
direction=arr[0]+" "+arr[1]+ " 济南方向 ";
}
}
String title = direction + WarningSubclassEnum.getDecorateInfo(warningSubclass);
// 标题
dcWarning.setWarningTitle(title);
dcWarning.setRemark(DateUtil.formatDateTime(DateUtil.date(captureTime)) + " " + title);
@ -208,6 +221,7 @@ public class DeviceMessageHandler {
/* JSONObject combinedData = new JSONObject();
combinedData.put("address", otherConfig);*/
dcWarning.setOtherConfig(otherConfig.toString());
dcWarningService.insertDcWarning(dcWarning);
}

Loading…
Cancel
Save