Browse Source

中间库事件信息

develop
lau572 5 months ago
parent
commit
037024a94b
  1. 20
      zc-business/src/main/java/com/zc/business/controller/DcEventProcessController.java
  2. 2
      zc-business/src/main/resources/mapper/business/MiddleDatabaseMapper.xml

20
zc-business/src/main/java/com/zc/business/controller/DcEventProcessController.java

@ -111,12 +111,20 @@ public class DcEventProcessController extends BaseController
return AjaxResult.error(UniversalEnum.THE_FRONT_NODE_IS_NOT_LIT.getValue());
}
}
if ((dcEvent.getEventType() == 1 || dcEvent.getEventType() == 2) && dcEventProcess.getProcessId() == 3){
//中间库 更新清障到达时间
MdEvent mdEvent = new MdEvent();
mdEvent.setFusionId(dcEventProcess.getEventId());
mdEvent.setClearArriveTime(new Date());
middleDatabaseService.updateMiddleDatabaseEvent(mdEvent);
if (dcEvent.getEventType() == 1 || dcEvent.getEventType() == 2 || dcEvent.getEventType() == 6){
if (dcEventProcess.getProcessId() == 3) {
//中间库 更新清障到达时间
MdEvent mdEvent = new MdEvent();
mdEvent.setFusionId(dcEventProcess.getEventId());
mdEvent.setClearArriveTime(new Date());
middleDatabaseService.updateMiddleDatabaseEvent(mdEvent);
} else if (dcEventProcess.getProcessId() == 6){
//中间库 更新清障结束时间
MdEvent mdEvent = new MdEvent();
mdEvent.setFusionId(dcEventProcess.getEventId());
mdEvent.setClearEndTime(new Date());
middleDatabaseService.updateMiddleDatabaseEvent(mdEvent);
}
}
return toAjax(dcEventProcessService.insertDcEventProcess(dcEventProcess));
}

2
zc-business/src/main/resources/mapper/business/MiddleDatabaseMapper.xml

@ -443,7 +443,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="deleterUserId != null">DeleterUserId = #{deleterUserId},</if>
<if test="deletionTime != null">DeletionTime = #{deletionTime},</if>
<if test="startTime != null">start_time = #{startTime},</if>
<if test="clearArriveTime != null">clear_arriveTime = #{clearArriveTime},</if>
<if test="clearArriveTime != null">clear_arrive_time = #{clearArriveTime},</if>
<if test="clearEndTime != null">clear_end_time = #{clearEndTime},</if>
<if test="car != null">car = #{car},</if>
<if test="bus != null">bus = #{bus},</if>

Loading…
Cancel
Save