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 5a5579a0..79dc17d4 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 @@ -210,7 +210,6 @@ public class DcEventServiceImpl extends ServiceImpl impl int i1 = dcEventAccidentMapper.insertDcEventAccident(dcEvent.getDcEventAccident()); } - break; //车辆事故 case 2: @@ -218,7 +217,6 @@ public class DcEventServiceImpl extends ServiceImpl impl dcEvent.getDcEventVehicleAccident().setId(uuid); int i5 = dcEventVehicleAccidentMapper.insertDcEventVehicleAccident(dcEvent.getDcEventVehicleAccident()); } - break; //交通管制 case 3: @@ -959,9 +957,11 @@ public class DcEventServiceImpl extends ServiceImpl impl @Override public int updateDcEventState(String id, int state) { + + int i = dcEventMapper.updateDcEventState(id,state); if (i > 0){ - DcEvent dcEvent = dcEventMapper.selectDcEventById(id); + DcEvent dcEvent = dcEventMapper.selectDcEventMainById(id); //中间库 MdEvent mdEvent = new MdEvent(dcEvent); diff --git a/zc-business/src/main/resources/mapper/business/DcEventMapper.xml b/zc-business/src/main/resources/mapper/business/DcEventMapper.xml index 5b4267f5..05c738ed 100644 --- a/zc-business/src/main/resources/mapper/business/DcEventMapper.xml +++ b/zc-business/src/main/resources/mapper/business/DcEventMapper.xml @@ -771,6 +771,7 @@ update dc_event event_state = #{state}, + start_time = NOW(), where id = #{id}