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;