Authored by chenchao

add log

package com.yohoufo.order.service;
import com.alibaba.fastjson.JSONObject;
import com.google.common.collect.Lists;
import com.yoho.error.ServiceError;
import com.yoho.error.exception.ServiceException;
import com.yohobuy.ufo.model.order.bo.OrderInfo;
... ... @@ -138,8 +139,15 @@ public class AppraiseOrderPaymentService extends AbstractOrderPaymentService {
return false;
}
final static List<Integer> canRefundStatusList = Arrays.asList(AppraiseOrderStatus.WAITING_PAY.getCode(),
AppraiseOrderStatus.HAS_PAYED.getCode());
private static final List<Integer> canRefundStatusListOfDepositOrder = Lists.newArrayList(
AppraiseOrderStatus.HAS_PAYED.getCode(),
AppraiseOrderStatus.PLATFORM_APPRAISE_UNSURE.getCode(),
AppraiseOrderStatus.JUDGE_PASS_WAIT_WAREHOUSE.getCode(),
AppraiseOrderStatus.SHAM_SEND_OUT.getCode(),
AppraiseOrderStatus.SEND_OUT_TIMEOUT.getCode()
);
@Override
public boolean canRefund(OrderInfo orderInfo) {
... ... @@ -148,7 +156,7 @@ public class AppraiseOrderPaymentService extends AbstractOrderPaymentService {
case APPRAISE:
throw new UfoServiceException(400, "鉴定订单暂不支持退款");
case DEPOSITE:
if (orderInfo.getStatus() != null && canRefundStatusList.contains(orderInfo.getStatus().intValue())){
if (orderInfo.getStatus() != null && canRefundStatusListOfDepositOrder.contains(orderInfo.getStatus().intValue())){
return true;
}
break;
... ...