Commit ed7371d0 authored by duanruiming's avatar duanruiming

[update] 运行模式优化

parent d18ac787
...@@ -97,7 +97,7 @@ public class FeignProxyServiceImpl implements FeignProxyService { ...@@ -97,7 +97,7 @@ public class FeignProxyServiceImpl implements FeignProxyService {
@Override @Override
public JsonViewObject stepControl(StepControlVO stepControlVO) { public JsonViewObject stepControl(StepControlVO stepControlVO) {
String resultMessage = "步进控制成功"; String resultMessage = "步进控制成功";
Integer control = 7; Integer control = 5;
if (stepControlVO.getCommand() == 0) { if (stepControlVO.getCommand() == 0) {
control = 1; control = 1;
resultMessage = "步进控制恢复成功"; resultMessage = "步进控制恢复成功";
......
...@@ -655,7 +655,7 @@ public class SituationDetectionServiceImpl implements SituationDetectionService ...@@ -655,7 +655,7 @@ public class SituationDetectionServiceImpl implements SituationDetectionService
BeanListUtils.populateList(edgeOptList, signalOperationModeVOS, SignalOperationModeVO.class); BeanListUtils.populateList(edgeOptList, signalOperationModeVOS, SignalOperationModeVO.class);
} }
if (operationMode == 4) { // 特勤控制 if (operationMode == 4) { // 特勤控制
List<TCrossControlHist> specialServiceList = tCrossControlHists.stream().filter(tCrossControlHist -> tCrossControlHist.getType() == 7).collect(Collectors.toList()); List<TCrossControlHist> specialServiceList = tCrossControlHists.stream().filter(tCrossControlHist -> tCrossControlHist.getType() == 8).collect(Collectors.toList());
BeanListUtils.populateList(specialServiceList, signalOperationModeVOS, SignalOperationModeVO.class); BeanListUtils.populateList(specialServiceList, signalOperationModeVOS, SignalOperationModeVO.class);
} }
} else { } else {
......
...@@ -41,14 +41,16 @@ ...@@ -41,14 +41,16 @@
<select id="selectRecentOne" resultType="net.wanji.web.entity.TCrossControlHist"> <select id="selectRecentOne" resultType="net.wanji.web.entity.TCrossControlHist">
select select
<include refid="Base_Column_List"/> t2.cross_id, t2.type, t2.start_time, t2.gmt_create, t2.gmt_modified, t2.operation_user
from t_cross_control_hist from t_cross_control_hist t2
inner join (SELECT max(start_time) start_time, cross_id FROM t_cross_control_hist group by cross_id)
t1 on t1.cross_id = t2.cross_id and t1.start_time = t2.start_time
<where> <where>
<if test="crossId != null and crossId !=''"> <if test="crossId != null and crossId !=''">
cross_id = #{crossId} t2.cross_id = #{crossId}
</if> </if>
and start_time = (select max(start_time) from t_cross_control_hist)
</where> </where>
group by t2.cross_id
</select> </select>
<select id="selectRecentList" resultMap="tCrossControlHist"> <select id="selectRecentList" resultMap="tCrossControlHist">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment