Showing
1 changed file
with
6 additions
and
1 deletions
@@ -138,7 +138,9 @@ public class AppraiseOrderPaymentService extends AbstractOrderPaymentService { | @@ -138,7 +138,9 @@ public class AppraiseOrderPaymentService extends AbstractOrderPaymentService { | ||
138 | } | 138 | } |
139 | return false; | 139 | return false; |
140 | } | 140 | } |
141 | - | 141 | + private static final List<Integer> canRefundStatusListOfPaidAppraiseOrder = Lists.newArrayList( |
142 | + AppraiseOrderStatus.PLATFORM_APPRAISE_UNSURE.getCode() | ||
143 | + ); | ||
142 | 144 | ||
143 | 145 | ||
144 | private static final List<Integer> canRefundStatusListOfDepositOrder = Lists.newArrayList( | 146 | private static final List<Integer> canRefundStatusListOfDepositOrder = Lists.newArrayList( |
@@ -154,6 +156,9 @@ public class AppraiseOrderPaymentService extends AbstractOrderPaymentService { | @@ -154,6 +156,9 @@ public class AppraiseOrderPaymentService extends AbstractOrderPaymentService { | ||
154 | OrderAttributes oa = OrderAttributes.getOrderAttributes(orderInfo.getAttributes()); | 156 | OrderAttributes oa = OrderAttributes.getOrderAttributes(orderInfo.getAttributes()); |
155 | switch (oa){ | 157 | switch (oa){ |
156 | case APPRAISE: | 158 | case APPRAISE: |
159 | + if (canRefundStatusListOfPaidAppraiseOrder.contains(orderInfo.getStatus())){ | ||
160 | + return true; | ||
161 | + } | ||
157 | throw new UfoServiceException(400, "鉴定订单暂不支持退款"); | 162 | throw new UfoServiceException(400, "鉴定订单暂不支持退款"); |
158 | case DEPOSITE: | 163 | case DEPOSITE: |
159 | if (orderInfo.getStatus() != null && canRefundStatusListOfDepositOrder.contains(orderInfo.getStatus().intValue())){ | 164 | if (orderInfo.getStatus() != null && canRefundStatusListOfDepositOrder.contains(orderInfo.getStatus().intValue())){ |
-
Please register or login to post a comment