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 d2c50612..f0b72f28 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 @@ -232,9 +232,10 @@ public class DcEventServiceImpl extends ServiceImpl impl case 1: if (dcEvent.getDcEventAccident() != null) { dcEvent.getDcEventAccident().setId(uuid); - int i1 = dcEventAccidentMapper.insertDcEventAccident(dcEvent.getDcEventAccident()); - + if (dcEvent.getEventState() == 1) { + updateDcEventState(uuid,1);//直接确认 + } } break; //车辆事故 @@ -242,6 +243,9 @@ public class DcEventServiceImpl extends ServiceImpl impl if (dcEvent.getDcEventVehicleAccident() != null) { dcEvent.getDcEventVehicleAccident().setId(uuid); int i5 = dcEventVehicleAccidentMapper.insertDcEventVehicleAccident(dcEvent.getDcEventVehicleAccident()); + if (dcEvent.getEventState() ==1) { + updateDcEventState(uuid,1);//直接确认 + } } break; //交通管制