From b7279e50faddd7231202886ae8e8d0e086c6c02f Mon Sep 17 00:00:00 2001 From: hurui <177768073@qq.com> Date: Thu, 12 Jan 2023 14:38:33 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hai-service/src/main/java/com/hai/order/utils/OrderUtil.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hai-service/src/main/java/com/hai/order/utils/OrderUtil.java b/hai-service/src/main/java/com/hai/order/utils/OrderUtil.java index 45639435..6e8a8611 100644 --- a/hai-service/src/main/java/com/hai/order/utils/OrderUtil.java +++ b/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());