Browse Source

优化扫码报警事件上报标题

develop
zhaoxianglong 4 months ago
parent
commit
41343ad278
  1. 2
      zc-business/src/main/java/com/zc/business/controller/CodeScanningAlarmController.java

2
zc-business/src/main/java/com/zc/business/controller/CodeScanningAlarmController.java

@ -85,7 +85,7 @@ public class CodeScanningAlarmController extends BaseController {
SimpleDateFormat simpleDateFormat = new SimpleDateFormat(UniversalEnum.CHINESE_CHARACTER_TIME_FORMAT.getValue());
String warningTitle = "G35济菏高速" + dcWarning.getStakeMark() + (Objects.equals(roadCode, UniversalEnum.ONE.getValue()) ? UniversalEnum.DIRECTION_OF_JINAN.getValue() : UniversalEnum.DIRECTION_OF_HEZE.getValue()) + "发生" + (Integer.parseInt(accidentType) >= 4 ? UniversalEnum.TRAFFIC_ACCIDENT_EVENT.getValue() : UniversalEnum.VEHICLE_BREAKDOWN_EVENT.getValue());
String warningTitle = dcWarning.getStakeMark() + UniversalEnum.BLANK_SPACE.getValue() + (Objects.equals(roadCode, UniversalEnum.ONE.getValue()) ? UniversalEnum.DIRECTION_OF_JINAN.getValue() : UniversalEnum.DIRECTION_OF_HEZE.getValue()) + UniversalEnum.BLANK_SPACE.getValue() + "发生" + (Integer.parseInt(accidentType) >= 4 ? UniversalEnum.TRAFFIC_ACCIDENT_EVENT.getValue() : UniversalEnum.VEHICLE_BREAKDOWN_EVENT.getValue());
dcWarning.setWarningTitle(warningTitle);
dcWarning.setRemark(simpleDateFormat.format(dcWarning.getWarningTime()) + warningTitle);
dcWarning.setWarningSource(UniversalEnum.FIVE.getNumber());

Loading…
Cancel
Save