Commit c0651db2 authored by duanruiming's avatar duanruiming

[add] 绿波事件过滤畅通

parent 94985be8
...@@ -160,7 +160,9 @@ public class TrendControllerV2 { ...@@ -160,7 +160,9 @@ public class TrendControllerV2 {
log.error("态势监测-事件告警-实时列表:", e); log.error("态势监测-事件告警-实时列表:", e);
JsonViewObject.newInstance().success(list); JsonViewObject.newInstance().success(list);
} }
List<OptMonitoringVO> collect = list.stream().filter(vo -> !StringUtils.equalsIgnoreCase("700", vo.getType())).collect(Collectors.toList()); List<OptMonitoringVO> collect = list.stream().
filter(vo -> !StringUtils.equalsIgnoreCase("700", vo.getType())
&& !StringUtils.equalsIgnoreCase("708", vo.getType())).collect(Collectors.toList());
return JsonViewObject.newInstance().success(collect); return JsonViewObject.newInstance().success(collect);
} }
......
...@@ -361,16 +361,20 @@ public class TrendServiceV2Impl implements TrendServiceV2 { ...@@ -361,16 +361,20 @@ public class TrendServiceV2Impl implements TrendServiceV2 {
private String getOptGreenResult(String id, StringBuilder sb) { private String getOptGreenResult(String id, StringBuilder sb) {
String result = ""; String result = "";
List<GreenLastOptResultDTO> greenLastOptResultDTOS = strategyGreenOptHistMapper.selectLastGreenOptResultList(); List<GreenLastOptResultDTO> greenLastOptResultDTOS = strategyGreenOptHistMapper.selectLastGreenOptResultList();
if (!CollectionUtils.isEmpty(greenLastOptResultDTOS)) {
for (GreenLastOptResultDTO dto : greenLastOptResultDTOS) { for (GreenLastOptResultDTO dto : greenLastOptResultDTOS) {
if (StringUtils.endsWithIgnoreCase(id, String.valueOf(dto.getGreenId()))) { if (StringUtils.endsWithIgnoreCase(id, String.valueOf(dto.getGreenId()))) {
Integer controlMethod = dto.getControlMethod(); Integer controlMethod = dto.getControlMethod();
if (0 >= controlMethod) { if (controlMethod >= 0) {
sb.append("动态绿波").append("-").append("均衡调控").append("-").append("神思策略"); sb.append("动态绿波").append("-").append("均衡调控").append("-").append("神思策略");
} else { } else {
sb.append("均衡调控").append("-").append("专家方案"); sb.append("均衡调控").append("-").append("专家方案");
} }
} }
} }
} else {
sb.append("动态绿波-专家方案");
}
result = sb.toString(); result = sb.toString();
return result; return result;
} }
......
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