This commit is contained in:
Lemon
2023-07-13 11:16:41 +08:00
3 changed files with 34 additions and 15 deletions

View File

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

View File

@@ -192,7 +192,9 @@ public class OrderBasicInfoServiceImpl implements IOrderBasicInfoService {
dto.setStationDeptIds(authorizedMap.getStationDeptIds()); dto.setStationDeptIds(authorizedMap.getStationDeptIds());
dto.setMerchantDeptIds(authorizedMap.getMerchantDeptIds()); dto.setMerchantDeptIds(authorizedMap.getMerchantDeptIds());
List<OrderListVO> orderListVOS = orderBasicInfoMapper.selectOrderBasicInfoList(dto); List<OrderListVO> orderListVOS = orderBasicInfoMapper.selectOrderBasicInfoList(dto);
if (CollectionUtils.isNotEmpty(orderListVOS)) { if (CollectionUtils.isEmpty(orderListVOS)) {
return orderListVOS;
}
for (OrderListVO orderListVO : orderListVOS) { for (OrderListVO orderListVO : orderListVOS) {
// 如果是微信支付,通过订单号查询微信支付单号 // 如果是微信支付,通过订单号查询微信支付单号
// logger.info("如果是微信支付,通过订单号查询微信支付单号 orderListVO:{}", JSON.toJSONString(orderListVO)); // logger.info("如果是微信支付,通过订单号查询微信支付单号 orderListVO:{}", JSON.toJSONString(orderListVO));
@@ -205,6 +207,13 @@ 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.setRealTimeChargingDegree(realTimeMonitorData.getChargingDegree());
} }
} }
return orderListVOS; return orderListVOS;

View File

@@ -203,4 +203,14 @@ public class OrderListVO {
* 服务费金额 * 服务费金额
*/ */
private BigDecimal totalServiceAmount; private BigDecimal totalServiceAmount;
/**
* 实时消费金额
*/
private BigDecimal realTimeAmount;
/**
* 实时充电度数
*/
private String realTimeChargingDegree;
} }