提交代码

dev-discount
胡锐 2 years ago
parent 49f43a0cf6
commit b7279e50fa
  1. 2
      hai-service/src/main/java/com/hai/order/utils/OrderUtil.java

@ -31,7 +31,7 @@ public class OrderUtil {
for (HighChildOrder childOrder : childOrderList) {
// 不是赠品才会计算金额
if (!childOrder.getGiveawayType()) {
if (childOrder.getTotalPrice() == null || childOrder.getGoodsActualPrice() == null || childOrder.getTotalDeductionPrice() == null) {
if (childOrder.getTotalPrice() == null || childOrder.getTotalActualPrice() == null || childOrder.getTotalDeductionPrice() == null) {
throw ErrorHelp.genException(SysCode.System, ErrorCode.COMMON_ERROR, "缺少计算金额");
}
totalPrice = totalPrice.add(childOrder.getTotalPrice());

Loading…
Cancel
Save