显示SOC

This commit is contained in:
Guoqs
2024-12-19 16:40:09 +08:00
parent a64710dbeb
commit 9b08105c5f
2 changed files with 15 additions and 1 deletions

View File

@@ -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);

View File

@@ -149,7 +149,7 @@
</el-descriptions-item>
<el-descriptions-item label="起始SOC">{{ item.startSoc }}
</el-descriptions-item>
<el-descriptions-item label="终止SOC">{{ item.endSoc }}
<el-descriptions-item label="当前SOC">{{ item.endSoc }}
</el-descriptions-item>
<el-descriptions-item label="结束充电时间">{{ item.chargeEndTime }}
</el-descriptions-item>