Browse Source

添加关联管制事件记录

develop
lau572 5 months ago
parent
commit
ed3e3947dd
  1. 4
      zc-business/src/main/java/com/zc/business/service/impl/DcEventServiceImpl.java

4
zc-business/src/main/java/com/zc/business/service/impl/DcEventServiceImpl.java

@ -298,7 +298,7 @@ public class DcEventServiceImpl extends ServiceImpl<DcEventMapper, DcEvent> impl
dcEventProcess.setEventId(dcEventId);
dcEventProcess.setSource(1);
String context = "新增管制事件:";
if ("3-1".equals(dcEvent.getSubclass())){
if ("3-1".equals(dcEvent.getEventSubclass())){
context += dcEvent.getStakeMark();
if ("1".equals(dcEvent.getDirection())){
context += "菏泽方向";
@ -310,7 +310,7 @@ public class DcEventServiceImpl extends ServiceImpl<DcEventMapper, DcEvent> impl
} else {
context += "主线限行";
}
} else if ("3-3".equals(dcEvent.getSubclass()) || "3-4".equals(dcEvent.getSubclass())){
} else if ("3-3".equals(dcEvent.getEventSubclass()) || "3-4".equals(dcEvent.getEventSubclass())){
String facilityId = String.valueOf(dcEvent.getDcEventTrafficControl().getFacilityId());
DcFacility facility = dcFacilityService.getFacility(facilityId);
context += facility.getFacilityName();

Loading…
Cancel
Save