update 优化订单详情页展示

This commit is contained in:
2023-07-12 16:50:50 +08:00
parent d62995cd53
commit 6576fbb2d2
3 changed files with 21 additions and 2 deletions

View File

@@ -68,9 +68,9 @@ public class AdapayMemberAccountServiceImpl implements IAdapayMemberAccountServi
} }
/** /**
* 修改【请填写功能名称】 * 修改
* *
* @param adapayMemberAccount 【请填写功能名称】 * @param adapayMemberAccount
* @return 结果 * @return 结果
*/ */
@Override @Override

View File

@@ -205,6 +205,14 @@ public class OrderBasicInfoServiceImpl implements IOrderBasicInfoService {
} }
orderListVO.setPileConnectorCode(orderListVO.getPileSn() + orderListVO.getConnectorCode()); orderListVO.setPileConnectorCode(orderListVO.getPileSn() + orderListVO.getConnectorCode());
orderListVO.setOrderStatusDescribe(transformOrderStatusDescribe(orderListVO.getOrderStatus(), orderListVO.getPayStatus())); orderListVO.setOrderStatusDescribe(transformOrderStatusDescribe(orderListVO.getOrderStatus(), orderListVO.getPayStatus()));
// 获取实时消费金额
List<RealTimeMonitorData> chargingRealTimeData = getChargingRealTimeData(orderListVO.getTransactionCode());
if (CollectionUtils.isNotEmpty(chargingRealTimeData)) {
RealTimeMonitorData realTimeMonitorData = chargingRealTimeData.get(0);
orderListVO.setRealTimeAmount(new BigDecimal(realTimeMonitorData.getChargingAmount()));
orderListVO.setRealTimeSoc(realTimeMonitorData.getSOC());
}
} }
} }
return orderListVOS; return orderListVOS;

View File

@@ -135,6 +135,11 @@ public class OrderListVO {
@Excel(name = "终止soc", suffix = "%") @Excel(name = "终止soc", suffix = "%")
private String endSoc; private String endSoc;
/**
* 实时SOC
*/
private String realTimeSoc;
/** /**
* 开始充电时间 * 开始充电时间
*/ */
@@ -203,4 +208,10 @@ public class OrderListVO {
* 服务费金额 * 服务费金额
*/ */
private BigDecimal totalServiceAmount; private BigDecimal totalServiceAmount;
/**
* 实时消费金额
*/
private BigDecimal realTimeAmount;
} }