|
@ -160,6 +160,10 @@ public class DcEventServiceImpl extends ServiceImpl<DcEventMapper, DcEvent> impl |
|
|
|
|
|
|
|
|
dcEvent.setCreateTime(DateUtils.getNowDate()); |
|
|
dcEvent.setCreateTime(DateUtils.getNowDate()); |
|
|
|
|
|
|
|
|
|
|
|
if (eventType != 1 && eventType != 2){ |
|
|
|
|
|
dcEvent.setOccurrenceTime(DateUtils.getNowDate());//默认发生时间
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
//处理无桩号事件
|
|
|
//处理无桩号事件
|
|
|
//交通事故
|
|
|
//交通事故
|
|
|
if (eventType == 1 && dcEvent.getDcEventAccident().getFacilityId() != null) { |
|
|
if (eventType == 1 && dcEvent.getDcEventAccident().getFacilityId() != null) { |
|
@ -384,6 +388,7 @@ public class DcEventServiceImpl extends ServiceImpl<DcEventMapper, DcEvent> impl |
|
|
String facilityId = String.valueOf(dcEvent.getDcEventTrafficControl().getFacilityIds()[i]); |
|
|
String facilityId = String.valueOf(dcEvent.getDcEventTrafficControl().getFacilityIds()[i]); |
|
|
dcEvent.setStakeMark(extracted(facilityId)); |
|
|
dcEvent.setStakeMark(extracted(facilityId)); |
|
|
} |
|
|
} |
|
|
|
|
|
dcEvent.setOccurrenceTime(DateUtils.getNowDate());//默认发生时间
|
|
|
dcEventMapper.insertDcEvent(dcEvent); |
|
|
dcEventMapper.insertDcEvent(dcEvent); |
|
|
//首页事件 交通管制事件 添加 状态默认为 1 处置中
|
|
|
//首页事件 交通管制事件 添加 状态默认为 1 处置中
|
|
|
updateDcEventState(map.get("facilityId" + i), 1); |
|
|
updateDcEventState(map.get("facilityId" + i), 1); |
|
@ -439,7 +444,7 @@ public class DcEventServiceImpl extends ServiceImpl<DcEventMapper, DcEvent> impl |
|
|
dcEvent.setStakeMark(extracted(facilityId)); |
|
|
dcEvent.setStakeMark(extracted(facilityId)); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
dcEvent.setOccurrenceTime(DateUtils.getNowDate());//默认发生时间
|
|
|
dcEventMapper.insertDcEvent(dcEvent); |
|
|
dcEventMapper.insertDcEvent(dcEvent); |
|
|
extracted(dcEvent); |
|
|
extracted(dcEvent); |
|
|
int i6 = dcEventTrafficControlMapper.insertDcEventTrafficControl(dcEvent.getDcEventTrafficControl()); |
|
|
int i6 = dcEventTrafficControlMapper.insertDcEventTrafficControl(dcEvent.getDcEventTrafficControl()); |
|
|