From 8dda8b9b9d465f4ce279934e1d4f63daa2394dc4 Mon Sep 17 00:00:00 2001 From: ljl Date: Fri, 1 Dec 2023 18:38:13 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/java/com/ms/biz/consts/Refund1688Const.java | 8 ++++++++ .../com/ms/biz/service/impl/DsMessageServiceImpl.java | 4 ++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/ms-biz/src/main/java/com/ms/biz/consts/Refund1688Const.java b/ms-biz/src/main/java/com/ms/biz/consts/Refund1688Const.java index d527b49..1eafaaf 100644 --- a/ms-biz/src/main/java/com/ms/biz/consts/Refund1688Const.java +++ b/ms-biz/src/main/java/com/ms/biz/consts/Refund1688Const.java @@ -188,4 +188,12 @@ public class Refund1688Const { ); return closeActions.contains(refundAction); } + + public static boolean isRejectRefundAction(String refundAction) { + List closeActions = Arrays.asList( + ACTION_SELLER_REJECT_REFUND, + ACTION_SELLER_REJECT_REFUND_PROCOTOL + ); + return closeActions.contains(refundAction); + } } diff --git a/ms-biz/src/main/java/com/ms/biz/service/impl/DsMessageServiceImpl.java b/ms-biz/src/main/java/com/ms/biz/service/impl/DsMessageServiceImpl.java index 99e8dfe..5d8e607 100644 --- a/ms-biz/src/main/java/com/ms/biz/service/impl/DsMessageServiceImpl.java +++ b/ms-biz/src/main/java/com/ms/biz/service/impl/DsMessageServiceImpl.java @@ -512,7 +512,7 @@ public class DsMessageServiceImpl implements DsMessageService { if (refundAction.equals(Refund1688Const.ACTION_SELLER_AGREE_REFUND_PROCOTOL)) { return 2; } - if (refundInfo.getGoodsStatus() == 3 && refundAction.equals(Refund1688Const.ACTION_SELLER_REJECT_REFUND)) { + if (refundInfo.getGoodsStatus() == 3 && Refund1688Const.isRejectRefundAction(refundAction)) { return 7; } if (refundInfo.getGoodsStatus() == 3 && Refund1688Const.isAgreeRefundAction(refundAction)) { @@ -524,7 +524,7 @@ public class DsMessageServiceImpl implements DsMessageService { if (Refund1688Const.isAgreeRefundAction(refundAction)) { return 1; } - if (refundAction.equals(Refund1688Const.ACTION_SELLER_REJECT_REFUND)) { + if (Refund1688Const.isRejectRefundAction(refundAction)) { return 3; } return 0;