预处理污区

This commit is contained in:
2023-04-25 14:52:23 +08:00
parent a81285874e
commit 22656bd0c9
2 changed files with 6 additions and 3 deletions

View File

@@ -320,6 +320,9 @@ public class PollutionServiceImpl implements PollutionService {
if (!CollUtil.isEmpty(processDataList)){
map.put("pollutionType",dictData.getId());
map.put("value",processDataList.stream().max(Comparator.comparing(RMpPollutionDPO::getValue)).get().getValue());
}else {
map.put("pollutionType",dictData.getId());
map.put("value",0);
}
}