From aa5ed79b0f89e93883d8806574874f9a9f74089c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E5=85=B4=E7=90=B3?= <1911390090@qq.com> Date: Thu, 23 May 2024 17:27:17 +0800 Subject: [PATCH] =?UTF-8?q?=E6=84=9F=E7=9F=A5=E4=BA=8B=E4=BB=B6=20?= =?UTF-8?q?=E8=BD=AC=E4=BA=A4=E9=80=9A=E4=BA=8B=E4=BB=B6=20=E5=AD=90?= =?UTF-8?q?=E7=B1=BB=E5=AE=9E=E4=BD=93=E4=B8=BA=E7=A9=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../business/service/impl/DcEventServiceImpl.java | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/zc-business/src/main/java/com/zc/business/service/impl/DcEventServiceImpl.java b/zc-business/src/main/java/com/zc/business/service/impl/DcEventServiceImpl.java index ab74c226..f4f4ea43 100644 --- a/zc-business/src/main/java/com/zc/business/service/impl/DcEventServiceImpl.java +++ b/zc-business/src/main/java/com/zc/business/service/impl/DcEventServiceImpl.java @@ -495,6 +495,8 @@ public class DcEventServiceImpl extends ServiceImpl impl /* if (dcEvent.getDcEventAccident() != null) { }*/ + DcEventAccident dcEventAccident =new DcEventAccident(); + dcEvent.setDcEventAccident(dcEventAccident); dcEvent.getDcEventAccident().setId(uuid); dcEvent.getDcEventAccident().setReporterName("视频AI"); dcEvent.getDcEventAccident().setReporterPhoneNumber("96659"); @@ -506,7 +508,8 @@ public class DcEventServiceImpl extends ServiceImpl impl /* if (dcEvent.getDcEventVehicleAccident() != null) { }*/ - + DcEventVehicleAccident dcEventVehicleAccident =new DcEventVehicleAccident(); + dcEvent.setDcEventVehicleAccident(dcEventVehicleAccident); dcEvent.getDcEventVehicleAccident().setReporterName("视频AI"); dcEvent.getDcEventVehicleAccident().setReporterPhoneNumber("96659"); dcEvent.getDcEventVehicleAccident().setLocationType(1l);//高速主线 @@ -518,6 +521,8 @@ public class DcEventServiceImpl extends ServiceImpl impl /* if (dcEvent.getDcEventTrafficControl() != null) { } */ + DcEventTrafficControl dcEventTrafficControl =new DcEventTrafficControl(); + dcEvent.setDcEventTrafficControl(dcEventTrafficControl); dcEvent.getDcEventTrafficControl().setControlType(1L);//限行 dcEvent.getDcEventTrafficControl().setControlCause(2L);//交通事故 dcEvent.getDcEventTrafficControl().setId(uuid); @@ -528,6 +533,8 @@ public class DcEventServiceImpl extends ServiceImpl impl /* if (dcEvent.getDcEventTrafficCongestion() != null) { }*/ + DcEventTrafficCongestion dcEventTrafficCongestion =new DcEventTrafficCongestion(); + dcEvent.setDcEventTrafficCongestion(dcEventTrafficCongestion); dcEvent.getDcEventTrafficCongestion().setId(uuid); dcEvent.getDcEventTrafficCongestion().setCongestionMileage(0F);//拥堵里程(公里) dcEvent.getDcEventTrafficCongestion().setCongestionCause(5l);//拥堵原因1-车流量大 2-交通事故 3-恶劣天气 4-施工 5-其他 @@ -545,6 +552,8 @@ public class DcEventServiceImpl extends ServiceImpl impl /* if (dcEvent.getDcEventConstruction() != null) { }*/ + DcEventConstruction dcEventConstruction =new DcEventConstruction(); + dcEvent.setDcEventConstruction(dcEventConstruction); dcEvent.getDcEventConstruction().setId(uuid); dcEvent.getDcEventConstruction().setControlMode(1l);//封闭 int i2 = dcEventConstructionMapper.insertDcEventConstruction(dcEvent.getDcEventConstruction()); @@ -554,6 +563,8 @@ public class DcEventServiceImpl extends ServiceImpl impl /* if (dcEvent.getDcEventServiceArea() != null) { }*/ + DcEventServiceArea dcEventServiceArea =new DcEventServiceArea(); + dcEvent.setDcEventServiceArea(dcEventServiceArea); dcEvent.getDcEventServiceArea().setId(uuid); int i3 = dcEventServiceAreaMapper.insertDcEventServiceArea(dcEvent.getDcEventServiceArea()); break; @@ -564,6 +575,8 @@ public class DcEventServiceImpl extends ServiceImpl impl case 10: /* if (dcEvent.getDcEventAbnormalWeather() != null) { }*/ + DcEventAbnormalWeather dcEventAbnormalWeather =new DcEventAbnormalWeather(); + dcEvent.setDcEventAbnormalWeather(dcEventAbnormalWeather); dcEvent.getDcEventAbnormalWeather().setId(uuid); dcEvent.getDcEventAbnormalWeather().setWeatherSituation("1-1");//雨雾 dcEvent.getDcEventAbnormalWeather().setEmergencyLevel(1l);//等级 1一班