|
|
@ -294,7 +294,39 @@ public class DcEventServiceImpl extends ServiceImpl<DcEventMapper, DcEvent> impl |
|
|
|
dcEventMapper.updateDcEventLinkId(dcEvent1);//修改事件性质
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
DcEventProcess dcEventProcess = new DcEventProcess(); |
|
|
|
dcEventProcess.setEventId(dcEventId); |
|
|
|
dcEventProcess.setSource(1); |
|
|
|
String context = "新增管制事件:"; |
|
|
|
if ("3-1".equals(dcEvent.getSubclass())){ |
|
|
|
context += dcEvent.getStakeMark(); |
|
|
|
if ("1".equals(dcEvent.getDirection())){ |
|
|
|
context += "菏泽方向"; |
|
|
|
} else if ("3".equals(dcEvent.getDirection())){ |
|
|
|
context += "菏泽方向"; |
|
|
|
} |
|
|
|
if (dcEvent.getDcEventTrafficControl().getControlType() == 1){ |
|
|
|
context += "主线封闭"; |
|
|
|
} else { |
|
|
|
context += "主线限行"; |
|
|
|
} |
|
|
|
} else if ("3-3".equals(dcEvent.getSubclass()) || "3-4".equals(dcEvent.getSubclass())){ |
|
|
|
String facilityId = String.valueOf(dcEvent.getDcEventTrafficControl().getFacilityId()); |
|
|
|
DcFacility facility = dcFacilityService.getFacility(facilityId); |
|
|
|
context += facility.getFacilityName(); |
|
|
|
if ("1".equals(dcEvent.getDirection())){ |
|
|
|
context += "菏泽方向"; |
|
|
|
} else if ("3".equals(dcEvent.getDirection())){ |
|
|
|
context += "菏泽方向"; |
|
|
|
} |
|
|
|
if (dcEvent.getDcEventTrafficControl().getControlType() == 1){ |
|
|
|
context += "封闭"; |
|
|
|
} else { |
|
|
|
context += "限行"; |
|
|
|
} |
|
|
|
} |
|
|
|
dcEventProcess.setContext(context); |
|
|
|
dcEventProcessService.insertDcEventProcess(dcEventProcess); |
|
|
|
|
|
|
|
break; |
|
|
|
} |
|
|
@ -322,6 +354,27 @@ public class DcEventServiceImpl extends ServiceImpl<DcEventMapper, DcEvent> impl |
|
|
|
int i6 = dcEventTrafficControlMapper.insertDcEventTrafficControl(dcEvent.getDcEventTrafficControl());//
|
|
|
|
//首页事件 交通管制事件 添加 状态默认为 1 处置中
|
|
|
|
updateDcEventState(dcEvent.getId(), 1); |
|
|
|
|
|
|
|
DcEventProcess dcEventProcess = new DcEventProcess(); |
|
|
|
dcEventProcess.setEventId(dcEventId); |
|
|
|
dcEventProcess.setSource(1); |
|
|
|
String context = "新增管制事件:"; |
|
|
|
String facilityId = String.valueOf(dcEvent.getDcEventTrafficControl().getFacilityIds()[0]); |
|
|
|
DcFacility facility = dcFacilityService.getFacility(facilityId); |
|
|
|
context += facility.getFacilityName(); |
|
|
|
if ("1".equals(dcEvent.getDirection())){ |
|
|
|
context += "菏泽方向"; |
|
|
|
} else if ("3".equals(dcEvent.getDirection())){ |
|
|
|
context += "菏泽方向"; |
|
|
|
} |
|
|
|
if (dcEvent.getDcEventTrafficControl().getControlType() == 1){ |
|
|
|
context += "封闭"; |
|
|
|
} else { |
|
|
|
context += "限行"; |
|
|
|
} |
|
|
|
dcEventProcess.setContext(context); |
|
|
|
dcEventProcessService.insertDcEventProcess(dcEventProcess); |
|
|
|
|
|
|
|
} else { |
|
|
|
// extracted(dcEvent);//事件推送到 首页
|
|
|
|
|
|
|
@ -408,6 +461,28 @@ public class DcEventServiceImpl extends ServiceImpl<DcEventMapper, DcEvent> impl |
|
|
|
updateDcEventState(map.get("facilityId" + i),1);//直接确认
|
|
|
|
|
|
|
|
} |
|
|
|
DcEventProcess dcEventProcess = new DcEventProcess(); |
|
|
|
dcEventProcess.setEventId(dcEventId); |
|
|
|
dcEventProcess.setSource(1); |
|
|
|
String context = "新增管制事件:"; |
|
|
|
Long[] facilityIds = dcEvent.getDcEventTrafficControl().getFacilityIds(); |
|
|
|
for (Long facilityId : facilityIds) { |
|
|
|
DcFacility facility = dcFacilityService.getFacility(facilityId.toString()); |
|
|
|
context += facility.getFacilityName() + "、"; |
|
|
|
} |
|
|
|
context = context.substring(0,context.length() -1); |
|
|
|
if ("1".equals(dcEvent.getDirection())){ |
|
|
|
context += "菏泽方向"; |
|
|
|
} else if ("3".equals(dcEvent.getDirection())){ |
|
|
|
context += "菏泽方向"; |
|
|
|
} |
|
|
|
if (dcEvent.getDcEventTrafficControl().getControlType() == 1){ |
|
|
|
context += "封闭"; |
|
|
|
} else { |
|
|
|
context += "限行"; |
|
|
|
} |
|
|
|
dcEventProcess.setContext(context); |
|
|
|
dcEventProcessService.insertDcEventProcess(dcEventProcess); |
|
|
|
} else { |
|
|
|
|
|
|
|
dcEventMapper.deleteDcEventById(uuid);//删除添加的事件主类
|
|
|
|