Commit 9b8a98be authored by duanruiming's avatar duanruiming

[update] 中心优化和时间表为中心控制

parent c9d68dbc
...@@ -632,7 +632,7 @@ public class SituationDetectionServiceImpl implements SituationDetectionService ...@@ -632,7 +632,7 @@ public class SituationDetectionServiceImpl implements SituationDetectionService
if (!CollectionUtils.isEmpty(tCrossControlHists)) { if (!CollectionUtils.isEmpty(tCrossControlHists)) {
if (Objects.nonNull(operationMode)) { if (Objects.nonNull(operationMode)) {
if (operationMode == 1) { //中心优化 if (operationMode == 1) { //中心优化
List<TCrossControlHist> centerOptList = tCrossControlHists.stream().filter(tCrossControlHist -> tCrossControlHist.getType() == 5).collect(Collectors.toList()); List<TCrossControlHist> centerOptList = tCrossControlHists.stream().filter(tCrossControlHist -> tCrossControlHist.getType() == 5 || tCrossControlHist.getType() == 1).collect(Collectors.toList());
BeanListUtils.populateList(centerOptList, signalOperationModeVOS, SignalOperationModeVO.class); BeanListUtils.populateList(centerOptList, signalOperationModeVOS, SignalOperationModeVO.class);
} }
if (operationMode == 2) { // 手动控制 if (operationMode == 2) { // 手动控制
...@@ -678,7 +678,7 @@ public class SituationDetectionServiceImpl implements SituationDetectionService ...@@ -678,7 +678,7 @@ public class SituationDetectionServiceImpl implements SituationDetectionService
for (SignalOperationModeVO modeVO : signalOperationModeVOS) { for (SignalOperationModeVO modeVO : signalOperationModeVOS) {
Integer type = modeVO.getType(); Integer type = modeVO.getType();
if (Objects.nonNull(type)) { if (Objects.nonNull(type)) {
if (type == 5) { if (type == 1 || type == 5) {
centerOptCount++; centerOptCount++;
} }
if (type == 6) { // todo 提供测试数据,边缘优化还没有 if (type == 6) { // todo 提供测试数据,边缘优化还没有
......
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