mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-21 03:25:12 +08:00
显示SOC
This commit is contained in:
@@ -312,6 +312,20 @@ public class OrderBasicInfoServiceImpl implements OrderBasicInfoService {
|
||||
String label = ThirdPlatformTypeEnum.getTypeLabelByTypeCode(thirdPartyType);
|
||||
orderListVO.setThirdPartyType(label + "启动");
|
||||
}
|
||||
|
||||
// 设置soc
|
||||
if (StringUtils.isNotBlank(orderListVO.getStartSoc()) || StringUtils.isNotBlank(orderListVO.getEndSoc())) {
|
||||
// 取redis中的soc数据
|
||||
Map<String, String> socMap = YKCUtils.getSOCMap(orderListVO.getTransactionCode());
|
||||
if (Objects.nonNull(socMap)) {
|
||||
if (StringUtils.isBlank(orderListVO.getStartSoc())) {
|
||||
orderListVO.setStartSoc(socMap.get("startSoc"));
|
||||
}
|
||||
if (StringUtils.isBlank(orderListVO.getEndSoc())) {
|
||||
orderListVO.setEndSoc(socMap.get("endSoc"));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
batchQueryFeeAmt(orderListVOS);
|
||||
|
||||
Reference in New Issue
Block a user