Browse Source

智能发布信息匹配代码修改

develop
Mr.Wang 6 months ago
parent
commit
2f819543eb
  1. 8
      zc-business/src/main/java/com/zc/business/service/impl/DcEmergencyPlansServiceImpl.java

8
zc-business/src/main/java/com/zc/business/service/impl/DcEmergencyPlansServiceImpl.java

@ -647,14 +647,14 @@ public class DcEmergencyPlansServiceImpl implements DcEmergencyPlansService {
// 车辆故障 // 车辆故障
DcEventVehicleAccident dcEventVehicleAccident = dcEvent.getDcEventVehicleAccident(); DcEventVehicleAccident dcEventVehicleAccident = dcEvent.getDcEventVehicleAccident();
int locationType = Integer.parseInt(dcEventVehicleAccident.getLocationType().toString()); int locationType = Integer.parseInt(dcEventVehicleAccident.getLocationType().toString());
// 路广设施id
Integer facilityId = dcEventVehicleAccident.getFacilityId();
DcFacility facility = dcFacilityService.getFacility(facilityId.toString());
String facilityName = facility.getFacilityName();
if (locationType == 1) { if (locationType == 1) {
content = "前方*高速主线发生车辆故障"; content = "前方*高速主线发生车辆故障";
} else if (locationType == 2 || locationType == 3 || locationType == 4) { } else if (locationType == 2 || locationType == 3 || locationType == 4) {
// 服务区、立交、收费站 // 服务区、立交、收费站
// 路广设施id
Integer facilityId = dcEventVehicleAccident.getFacilityId();
DcFacility facility = dcFacilityService.getFacility(facilityId.toString());
String facilityName = facility.getFacilityName();
content = "前方*"+facilityName+"发生车辆故障"; content = "前方*"+facilityName+"发生车辆故障";
} }

Loading…
Cancel
Save