Browse Source

事件状态修改接口增加 事件开始时间

develop
王兴琳 7 months ago
parent
commit
8a995becd0
  1. 6
      zc-business/src/main/java/com/zc/business/service/impl/DcEventServiceImpl.java
  2. 1
      zc-business/src/main/resources/mapper/business/DcEventMapper.xml

6
zc-business/src/main/java/com/zc/business/service/impl/DcEventServiceImpl.java

@ -210,7 +210,6 @@ public class DcEventServiceImpl extends ServiceImpl<DcEventMapper, DcEvent> impl
int i1 = dcEventAccidentMapper.insertDcEventAccident(dcEvent.getDcEventAccident());
}
break;
//车辆事故
case 2:
@ -218,7 +217,6 @@ public class DcEventServiceImpl extends ServiceImpl<DcEventMapper, DcEvent> impl
dcEvent.getDcEventVehicleAccident().setId(uuid);
int i5 = dcEventVehicleAccidentMapper.insertDcEventVehicleAccident(dcEvent.getDcEventVehicleAccident());
}
break;
//交通管制
case 3:
@ -959,9 +957,11 @@ public class DcEventServiceImpl extends ServiceImpl<DcEventMapper, DcEvent> 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);

1
zc-business/src/main/resources/mapper/business/DcEventMapper.xml

@ -771,6 +771,7 @@
update dc_event
<trim prefix="SET" suffixOverrides=",">
<if test="state != null">event_state = #{state},</if>
start_time = NOW(),
</trim>
where id = #{id}
</update>

Loading…
Cancel
Save