Browse Source

事件非(交通事故,车辆故障) 增加默认发生时间

develop
王兴琳 6 months ago
parent
commit
7de559052d
  1. 7
      zc-business/src/main/java/com/zc/business/service/impl/DcEventServiceImpl.java

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

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

Loading…
Cancel
Save