Authored by chenchao

fix refund money

... ... @@ -138,7 +138,9 @@ public class AppraiseOrderPaymentService extends AbstractOrderPaymentService {
}
return false;
}
private static final List<Integer> canRefundStatusListOfPaidAppraiseOrder = Lists.newArrayList(
AppraiseOrderStatus.PLATFORM_APPRAISE_UNSURE.getCode()
);
private static final List<Integer> canRefundStatusListOfDepositOrder = Lists.newArrayList(
... ... @@ -154,6 +156,9 @@ public class AppraiseOrderPaymentService extends AbstractOrderPaymentService {
OrderAttributes oa = OrderAttributes.getOrderAttributes(orderInfo.getAttributes());
switch (oa){
case APPRAISE:
if (canRefundStatusListOfPaidAppraiseOrder.contains(orderInfo.getStatus())){
return true;
}
throw new UfoServiceException(400, "鉴定订单暂不支持退款");
case DEPOSITE:
if (orderInfo.getStatus() != null && canRefundStatusListOfDepositOrder.contains(orderInfo.getStatus().intValue())){
... ...