提交导出问题修改

This commit is contained in:
15666619788
2025-08-06 14:12:12 +08:00
parent de5ac98d5a
commit 68395d7a94
7 changed files with 89 additions and 54 deletions

View File

@@ -77,13 +77,13 @@ public class AlertLogController extends BaseController
List<AlertLog> list = alertLogService.selectAlertLogList(alertLog);
//1=提醒通知2=轻微问题3=严重警告
List<AlertLog> tlist =list.stream()
.filter(log -> log.getAlertLevel() == "1")
.filter(log -> log.getAlertLevel().equals("1") )
.collect(Collectors.toList());
List<AlertLog> qlist =list.stream()
.filter(log -> log.getAlertLevel() == "2")
.filter(log -> log.getAlertLevel().equals("2") )
.collect(Collectors.toList());
List<AlertLog> ylist =list.stream()
.filter(log -> log.getAlertLevel() == "3")
.filter(log -> log.getAlertLevel().equals("3"))
.collect(Collectors.toList());
map.put("tx",tlist.size());
map.put("qw",qlist.size());