From d5e7638c38f4ec84783d8ce6718b1c160277a302 Mon Sep 17 00:00:00 2001 From: hurui <177768073@qq.com> Date: Tue, 30 Apr 2024 10:48:41 +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 --- .../src/main/java/com/cweb/controller/QzOrderController.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/hai-cweb/src/main/java/com/cweb/controller/QzOrderController.java b/hai-cweb/src/main/java/com/cweb/controller/QzOrderController.java index fbf18a63..8de702ed 100644 --- a/hai-cweb/src/main/java/com/cweb/controller/QzOrderController.java +++ b/hai-cweb/src/main/java/com/cweb/controller/QzOrderController.java @@ -8,6 +8,7 @@ import com.hai.dao.HighGasOrderRefundMapper; import com.hai.entity.HighChildOrder; import com.hai.entity.HighGasOrderRefund; import com.hai.entity.HighOrder; +import com.hai.enum_type.GoodsType; import com.hai.model.OrderRefundModel; import com.hai.order.type.OrderChildStatus; import com.hai.order.type.OrderStatus; @@ -50,7 +51,7 @@ public class QzOrderController { JSONObject data = dataObject.getJSONObject("data"); for (HighChildOrder childOrder : order.getHighChildOrderList()) { // 4:KFC肯德基 5:电影票 - if (childOrder.getGoodsType() == 4) { + if (childOrder.getGoodsType().equals(GoodsType.goodsType4.getType())) { // 10:已出票 -5:已取消 -3:部分取消 -10:退款 if (dataObject.getInteger("eventType") == -5) { // 微信退款 @@ -77,7 +78,7 @@ public class QzOrderController { } } - if (childOrder.getGoodsType() == 5) { + if (childOrder.getGoodsType().equals(GoodsType.goodsType5.getType())) { // 5:已支付(默认不发) 10:已出票 -5:已取消 15:交易成功 if (dataObject.getInteger("eventType") == -5) {