...
|
...
|
@@ -29,6 +29,9 @@ import org.slf4j.LoggerFactory; |
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
import java.util.Arrays;
|
|
|
import java.util.List;
|
|
|
|
|
|
@Service
|
|
|
public class BuyerOrderPaymentService extends AbstractOrderPaymentService {
|
|
|
|
...
|
...
|
@@ -117,9 +120,12 @@ public class BuyerOrderPaymentService extends AbstractOrderPaymentService { |
|
|
return false;
|
|
|
}
|
|
|
|
|
|
final static List<Integer> canRefundStatusList = Arrays.asList(OrderStatus.HAS_PAYED.getCode(),
|
|
|
OrderStatus.PLATFORM_CHECKING.getCode());
|
|
|
|
|
|
@Override
|
|
|
public boolean canRefund(OrderInfo orderInfo) {
|
|
|
if (orderInfo.getStatus() != null && orderInfo.getStatus().intValue() == OrderStatus.HAS_PAYED.getCode()){
|
|
|
if (orderInfo.getStatus() != null && canRefundStatusList.contains(orderInfo.getStatus().intValue())){
|
|
|
return true;
|
|
|
}
|
|
|
return false;
|
...
|
...
|
|