快电新电途ing
This commit is contained in:
parent
b945104590
commit
b6694baac0
@ -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);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user