修改治理bug
This commit is contained in:
@@ -148,20 +148,22 @@ public class PqTypicalSourceCreatePOServiceImpl extends ServiceImpl<PqTypicalSou
|
|||||||
}else if(temp.equals(DicDataEnum.OTHER_INTERFERENCESOURCE_USERS.getCode())) {
|
}else if(temp.equals(DicDataEnum.OTHER_INTERFERENCESOURCE_USERS.getCode())) {
|
||||||
List<String> idList = other_interferencesource_users_dict.stream().map(SysDicTreePO::getId).collect(Collectors.toList());
|
List<String> idList = other_interferencesource_users_dict.stream().map(SysDicTreePO::getId).collect(Collectors.toList());
|
||||||
tempList = monitorList.stream().filter(tempmonitor -> idList.contains(tempmonitor.getObjType())).collect(Collectors.toList());
|
tempList = monitorList.stream().filter(tempmonitor -> idList.contains(tempmonitor.getObjType())).collect(Collectors.toList());
|
||||||
|
pqTypicalSourceCreatePO.setIndustryType("05");
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if(CollectionUtils.isEmpty(tempList)){
|
if(CollectionUtils.isEmpty(tempList)){
|
||||||
return;
|
return;
|
||||||
}else {
|
}
|
||||||
//不需要赋值电站等级
|
// else {
|
||||||
if (mapVoltage.containsKey(tempList.get(0).getVoltageLevel())) {
|
// //不需要赋值电站等级
|
||||||
|
// if (mapVoltage.containsKey(tempList.get(0).getVoltageLevel())) {
|
||||||
// pqTypicalSourceCreatePO.setVoltageLevel(String.format("%02d", mapVoltage.get(tempList.get(0).getVoltageLevel()).getAlgoDescribe()));
|
// pqTypicalSourceCreatePO.setVoltageLevel(String.format("%02d", mapVoltage.get(tempList.get(0).getVoltageLevel()).getAlgoDescribe()));
|
||||||
//默认给05
|
// //默认给05
|
||||||
pqTypicalSourceCreatePO.setIndustryType("05");
|
// pqTypicalSourceCreatePO.setIndustryType("05");
|
||||||
}
|
// }
|
||||||
|
//
|
||||||
}
|
// }
|
||||||
List<String> monitorIds = tempList.stream().map(Monitor::getId).collect(Collectors.toList());
|
List<String> monitorIds = tempList.stream().map(Monitor::getId).collect(Collectors.toList());
|
||||||
//站内有效监测点数量
|
//站内有效监测点数量
|
||||||
Integer effectiveMonitorNum;
|
Integer effectiveMonitorNum;
|
||||||
|
|||||||
Reference in New Issue
Block a user