mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-06-10 10:19:54 +08:00
update 结算订单
This commit is contained in:
@@ -626,6 +626,9 @@ public class TransactionRecordsRequestHandler extends AbstractHandler {
|
|||||||
|
|
||||||
orderBasicInfoService.updateOrderBasicInfo(orderBasicInfo);
|
orderBasicInfoService.updateOrderBasicInfo(orderBasicInfo);
|
||||||
|
|
||||||
|
// 重新查询订单信息
|
||||||
|
orderBasicInfo = orderBasicInfoService.getOrderInfoByTransactionCode(transactionCode);
|
||||||
|
|
||||||
// 结算订单操作
|
// 结算订单操作
|
||||||
try {
|
try {
|
||||||
// 新逻辑
|
// 新逻辑
|
||||||
|
|||||||
@@ -557,7 +557,7 @@ public class PileReservationInfoServiceImpl implements PileReservationInfoServic
|
|||||||
pileReservationInfo.setEndTime(Time.valueOf("23:00:00"));
|
pileReservationInfo.setEndTime(Time.valueOf("23:00:00"));
|
||||||
pileReservationInfo.setVerifyIdentity(Constants.ZERO);
|
pileReservationInfo.setVerifyIdentity(Constants.ZERO);
|
||||||
pileReservationInfo.setStatus(Constants.ZERO);
|
pileReservationInfo.setStatus(Constants.ZERO);
|
||||||
pileReservationInfo.setDelFlag("0");
|
pileReservationInfo.setDelFlag(DelFlagEnum.NORMAL.getValue());
|
||||||
pileReservationInfoMapper.insert(pileReservationInfo);
|
pileReservationInfoMapper.insert(pileReservationInfo);
|
||||||
log.info("未查询到个人桩预约信息, 初始化个人桩预约信息:{}", JSON.toJSONString(pileReservationInfo));
|
log.info("未查询到个人桩预约信息, 初始化个人桩预约信息:{}", JSON.toJSONString(pileReservationInfo));
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -196,6 +196,7 @@ public abstract class AbstractProgramLogic implements InitializingBean {
|
|||||||
BigDecimal orderAmount = new BigDecimal(data.getConsumptionAmount()).setScale(2, RoundingMode.HALF_UP);
|
BigDecimal orderAmount = new BigDecimal(data.getConsumptionAmount()).setScale(2, RoundingMode.HALF_UP);
|
||||||
// 付款金额 - 实际消费金额,如果有剩余,需要走退款操作 当使用余额支付时payAmount = principalPay + giftPay
|
// 付款金额 - 实际消费金额,如果有剩余,需要走退款操作 当使用余额支付时payAmount = principalPay + giftPay
|
||||||
BigDecimal payAmount = orderBasicInfo.getPayAmount();
|
BigDecimal payAmount = orderBasicInfo.getPayAmount();
|
||||||
|
logger.info("结算订单:【{}】, 支付金额:{}, 消费金额:{}", orderCode, payAmount, orderAmount);
|
||||||
|
|
||||||
// 有时候充电桩到达金额停止充电会多出一点金额,比如实际需要充50元的电,充电桩传来的消费金额为50.01元,在后台记录的时候需要舍去
|
// 有时候充电桩到达金额停止充电会多出一点金额,比如实际需要充50元的电,充电桩传来的消费金额为50.01元,在后台记录的时候需要舍去
|
||||||
if (orderAmount.compareTo(payAmount) > 0) {
|
if (orderAmount.compareTo(payAmount) > 0) {
|
||||||
|
|||||||
Reference in New Issue
Block a user