|
@ -1240,6 +1240,7 @@ public class DcEventServiceImpl extends ServiceImpl<DcEventMapper, DcEvent> impl |
|
|
DcEvent dcEvent = dcEventMapper.selectDcEventMainById(id); |
|
|
DcEvent dcEvent = dcEventMapper.selectDcEventMainById(id); |
|
|
|
|
|
|
|
|
//中间库
|
|
|
//中间库
|
|
|
|
|
|
//经纬度
|
|
|
if (StringUtils.isNotEmpty(dcEvent.getStakeMark()) && StringUtils.isNotEmpty(dcEvent.getDirection())){ |
|
|
if (StringUtils.isNotEmpty(dcEvent.getStakeMark()) && StringUtils.isNotEmpty(dcEvent.getDirection())){ |
|
|
DcStakeMark dcStakeMark = dcStakeMarkMapper.selectByDirection(dcEvent.getStakeMark(),dcEvent.getDirection()); |
|
|
DcStakeMark dcStakeMark = dcStakeMarkMapper.selectByDirection(dcEvent.getStakeMark(),dcEvent.getDirection()); |
|
|
if (dcStakeMark != null){ |
|
|
if (dcStakeMark != null){ |
|
@ -1247,6 +1248,60 @@ public class DcEventServiceImpl extends ServiceImpl<DcEventMapper, DcEvent> impl |
|
|
dcEvent.setDimension(dcStakeMark.getLatitude()); |
|
|
dcEvent.setDimension(dcStakeMark.getLatitude()); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
//子类详情
|
|
|
|
|
|
int eventType = Math.toIntExact(dcEvent.getEventType()); |
|
|
|
|
|
switch (eventType) { |
|
|
|
|
|
//交通事故
|
|
|
|
|
|
case 1: |
|
|
|
|
|
DcEventAccident dcEventAccident = dcEventAccidentMapper.selectDcEventAccidentById(id); |
|
|
|
|
|
dcEvent.setDcEventAccident(dcEventAccident); |
|
|
|
|
|
break; |
|
|
|
|
|
//车辆事故
|
|
|
|
|
|
case 2: |
|
|
|
|
|
DcEventVehicleAccident dcEventVehicleAccident = dcEventVehicleAccidentMapper.selectDcEventVehicleAccidentById(id); |
|
|
|
|
|
dcEvent.setDcEventVehicleAccident(dcEventVehicleAccident); |
|
|
|
|
|
break; |
|
|
|
|
|
//交通管制
|
|
|
|
|
|
case 3: |
|
|
|
|
|
DcEventTrafficControl dcEventTrafficControl = dcEventTrafficControlMapper.selectDcEventTrafficControlById(id); |
|
|
|
|
|
dcEvent.setDcEventTrafficControl(dcEventTrafficControl); |
|
|
|
|
|
break; |
|
|
|
|
|
//交通拥堵
|
|
|
|
|
|
case 4: |
|
|
|
|
|
DcEventTrafficCongestion dcEventTrafficCongestion = dcEventTrafficCongestionMapper.selectDcEventTrafficCongestionById(id); |
|
|
|
|
|
dcEvent.setDcEventTrafficCongestion(dcEventTrafficCongestion); |
|
|
|
|
|
break; |
|
|
|
|
|
//非法上路
|
|
|
|
|
|
case 5: |
|
|
|
|
|
break; |
|
|
|
|
|
//路障清除
|
|
|
|
|
|
case 6: |
|
|
|
|
|
break; |
|
|
|
|
|
//施工建设
|
|
|
|
|
|
case 7: |
|
|
|
|
|
DcEventConstruction dcEventConstruction = dcEventConstructionMapper.selectDcEventConstructionById(id); |
|
|
|
|
|
dcEvent.setDcEventConstruction(dcEventConstruction); |
|
|
|
|
|
break; |
|
|
|
|
|
//服务区异常
|
|
|
|
|
|
case 8: |
|
|
|
|
|
DcEventServiceArea dcEventServiceArea = dcEventServiceAreaMapper.selectDcEventServiceAreaById(id); |
|
|
|
|
|
dcEvent.setDcEventServiceArea(dcEventServiceArea); |
|
|
|
|
|
break; |
|
|
|
|
|
//设施设备隐患
|
|
|
|
|
|
case 9: |
|
|
|
|
|
break; |
|
|
|
|
|
//异常天气
|
|
|
|
|
|
case 10: |
|
|
|
|
|
DcEventAbnormalWeather dcEventAbnormalWeather = dcEventAbnormalWeatherMapper.selectDcEventAbnormalWeatherById(id); |
|
|
|
|
|
dcEvent.setDcEventAbnormalWeather(dcEventAbnormalWeather); |
|
|
|
|
|
break; |
|
|
|
|
|
//其他事件
|
|
|
|
|
|
case 11: |
|
|
|
|
|
break; |
|
|
|
|
|
//
|
|
|
|
|
|
default: |
|
|
|
|
|
break; |
|
|
|
|
|
} |
|
|
MdEvent mdEvent = new MdEvent(dcEvent); |
|
|
MdEvent mdEvent = new MdEvent(dcEvent); |
|
|
middleDatabaseService.insertMiddleDatabaseEvent(mdEvent); |
|
|
middleDatabaseService.insertMiddleDatabaseEvent(mdEvent); |
|
|
|
|
|
|
|
|