快电新电途ing

This commit is contained in:
ZZ 2021-10-26 16:12:33 +08:00
parent b945104590
commit b6694baac0

View File

@ -155,8 +155,10 @@ public class StationsInfoController extends CoreDispatcher {
}
EquipmentInfo equipmentInfo = new EquipmentInfo();
equipmentInfo.setEquipmentID(pileNo);
equipmentInfo.setEquipmentType((Integer) cachePile.get("equipmentType"));
equipmentInfo.setPower((Double) cachePile.get("power"));
Integer equipmentType = (Integer) cachePile.get("equipmentType");
equipmentInfo.setEquipmentType(equipmentType == null ? 1 : equipmentType);
Double power = (Double) cachePile.get("power");
equipmentInfo.setPower(power == null ? 120.0 : power);
equipmentInfo.setConnectorInfos(getConnectorInfos(pileNo, cachePile));
equipmentInfos.add(equipmentInfo);
}