通过行政区划下载excel新增

master
徐杰盟 2024-05-28 13:50:58 +08:00
parent 8c0276ab82
commit e39dc5b555
1 changed files with 2 additions and 0 deletions

View File

@ -338,6 +338,8 @@ public class WarningController {
private List<WarningHistoryListVo> setAll( List<WarningHistoryListVo> vos){
if (CollectionUtils.isNotEmpty(vos)){
WarningHistoryListVo vo = new WarningHistoryListVo();
vo.setWarnSignalType("全部");
vo.setEffectArea("总计");
int oraSum = vos.stream().mapToInt(WarningHistoryListVo::getOraCount).sum();
vo.setOraCount(oraSum);
int redSum = vos.stream().mapToInt(WarningHistoryListVo::getRedCount).sum();