空指针

This commit is contained in:
2025-12-03 09:27:01 +08:00
parent 9942a47bd3
commit 990bd5b144

View File

@@ -1445,7 +1445,11 @@ public class OrderInfoCustomServiceImpl implements OrderInfoCustomService {
} else {
orderInfo.setOrderAmount(BigDecimal.ZERO);
}
if (orderInfo.getPackFee() == null) {
orderInfo.setPackFee(param.getPackFee());
} else {
orderInfo.setPackFee(orderInfo.getPackFee().add(param.getPackFee()));
}
orderInfo.setRoundAmount(BigDecimal.ZERO);
orderInfo.setPointsNum(0);
orderInfoService.saveOrUpdate(orderInfo);