From 8a995becd097303ba6ed5d0e87b21fff909d17dc 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, 25 Apr 2024 16:01:46 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BA=8B=E4=BB=B6=E7=8A=B6=E6=80=81=E4=BF=AE?= =?UTF-8?q?=E6=94=B9=E6=8E=A5=E5=8F=A3=E5=A2=9E=E5=8A=A0=20=E4=BA=8B?= =?UTF-8?q?=E4=BB=B6=E5=BC=80=E5=A7=8B=E6=97=B6=E9=97=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/zc/business/service/impl/DcEventServiceImpl.java | 6 +++--- .../src/main/resources/mapper/business/DcEventMapper.xml | 1 + 2 files changed, 4 insertions(+), 3 deletions(-) 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}