结算订单逻辑优化

This commit is contained in:
2023-08-09 17:00:00 +08:00
parent 2c3ef69e7e
commit 70def00bde

View File

@@ -815,12 +815,12 @@ public class OrderBasicInfoServiceImpl implements IOrderBasicInfoService {
BigDecimal principalPay = null;
BigDecimal giftPay = null;
OrderPayRecord principalPayRecord = payRecordMap.get("1");
OrderPayRecord principalPayRecord = payRecordMap.get(Constants.ONE);
if (principalPayRecord != null) {
principalPay = principalPayRecord.getPayAmount();
}
OrderPayRecord giftPayRecord = payRecordMap.get("2");
OrderPayRecord giftPayRecord = payRecordMap.get(Constants.TWO);
if (giftPayRecord != null) {
giftPay = giftPayRecord.getPayAmount();
}