update 青海平台Service

This commit is contained in:
Lemon
2024-04-24 16:54:30 +08:00
parent 68ac106f65
commit 514ae10214
4 changed files with 42 additions and 13 deletions

View File

@@ -1109,6 +1109,9 @@ public class PileBasicInfoServiceImpl implements PileBasicInfoService {
String pileSn = pileBasicInfo.getSn();
equipmentInfo.setEquipmentId(pileSn);
PileModelInfoVO modelInfo = pileModelInfoService.getPileModelInfoByPileSn(pileSn);
if (modelInfo == null) {
continue;
}
equipmentInfo.setEquipmentType(Integer.parseInt(modelInfo.getSpeedType()));
equipmentInfo.setPower(new BigDecimal(modelInfo.getRatedPower()).setScale(1, BigDecimal.ROUND_HALF_UP));
equipmentInfo.setEquipmentClassification(Constants.one); // 1-车辆充电设备