Authored by chenchao

use enum

... ... @@ -6,8 +6,8 @@ import com.yohobuy.ufo.model.order.bo.GoodsInfo;
import com.yohobuy.ufo.model.order.bo.ProductInfo;
import com.yohobuy.ufo.model.order.common.OrderCodeType;
import com.yohobuy.ufo.model.order.common.SellerOrderListType;
import com.yohobuy.ufo.model.order.common.SkupListType;
import com.yohobuy.ufo.model.order.common.SkupStatus;
import com.yohobuy.ufo.model.order.constants.SkupType;
import com.yohobuy.ufo.model.order.req.QuickDeliverOrderSubmitReq;
import com.yohobuy.ufo.model.order.resp.OrderListInfo;
import com.yohobuy.ufo.model.order.resp.PageResp;
... ... @@ -34,7 +34,6 @@ import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
... ... @@ -198,15 +197,11 @@ public class QuickDeliverGoodsService {
return respBuilder.build();
}
private static final List<Integer> SKUP_TYPE_CODES;
static {
SKUP_TYPE_CODES = new ArrayList<>(1);
SKUP_TYPE_CODES.add(SkupType.QUICK_DELIVER.getCode());
}
public List<Integer> getSkupTypeCodes(){
return SKUP_TYPE_CODES;
return SkupListType.QUICK_DELIVER.getSkupTypeCodes(false);
}
/**
... ...