代码问题调整

This commit is contained in:
2023-04-21 15:26:40 +08:00
parent 1a8f874f9e
commit 3396829401

View File

@@ -1153,7 +1153,7 @@ public class LimitRateService extends MppServiceImpl<LimitRatePOMapper, LimitRa
List<DataVPO> maxList = devMap.get("MAX");
List<DataVPO> minList = devMap.get("MIN");
List<DataVPO> l1 = maxList.stream().filter(s->s.getVuDev()>overlimit.getVoltageDev()).collect(Collectors.toList());
List<DataVPO> l2 = minList.stream().filter(s->s.getVlDev()>overlimit.getUvoltageDev()).collect(Collectors.toList());
List<DataVPO> l2 = minList.stream().filter(s->s.getVlDev()<overlimit.getUvoltageDev()).collect(Collectors.toList());
if (!CollectionUtils.isEmpty(l1) || !CollectionUtils.isEmpty(l2)){
uDev++;
}