fix charge status

This commit is contained in:
ZZ 2021-11-16 15:52:50 +08:00
parent 6ecbf97939
commit 6418326483

View File

@ -114,7 +114,7 @@ public class QueryEquipChargeStatusController {
CacheRealtimeData orderLord = REDIS.getCacheObject("order:" + internalOrderNum + ".lord");
Double chargingDegree = Double.valueOf(orderLord.getChargingDegree());
equipChargeStatus.setTotalPower(chargingDegree / 10000);
final Long rateModelId = REDIS.getCacheMapValue("gun:".concat(connectorId.substring(0, 14)), "rateModelId");
final Long rateModelId = REDIS.getCacheMapValue("pile:".concat(connectorId.substring(0, 14)), "rateModelId");
final CacheRateModel cacheRateModel = REDIS.getCacheObject("rateModel:" + rateModelId);
calculateEm(equipChargeStatus, cacheRateModel);
CommonResponse response = new CommonResponse();