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,15 +361,19 @@ public class TrendServiceV2Impl implements TrendServiceV2 { ...@@ -361,15 +361,19 @@ 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();
for (GreenLastOptResultDTO dto : greenLastOptResultDTOS) { if (!CollectionUtils.isEmpty(greenLastOptResultDTOS)) {
if (StringUtils.endsWithIgnoreCase(id, String.valueOf(dto.getGreenId()))) { for (GreenLastOptResultDTO dto : greenLastOptResultDTOS) {
Integer controlMethod = dto.getControlMethod(); if (StringUtils.endsWithIgnoreCase(id, String.valueOf(dto.getGreenId()))) {
if (0 >= controlMethod) { Integer controlMethod = dto.getControlMethod();
sb.append("动态绿波").append("-").append("均衡调控").append("-").append("神思策略"); if (controlMethod >= 0) {
} else { sb.append("动态绿波").append("-").append("均衡调控").append("-").append("神思策略");
sb.append("均衡调控").append("-").append("专家方案"); } else {
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