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