Authored by mali

香港直邮

... ... @@ -5,6 +5,7 @@ import static java.util.stream.Collectors.toList;
import java.util.List;
import java.util.Map;
import com.yohobuy.ufo.model.order.resp.*;
import org.apache.commons.lang3.StringUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
... ... @@ -22,11 +23,6 @@ import com.yoho.ufo.order.service.IBuyerOrderService;
import com.yoho.ufo.service.model.ApiResponse;
import com.yoho.ufo.service.model.PageResponseBO;
import com.yoho.ufo.util.DateUtil;
import com.yohobuy.ufo.model.order.resp.BuyerOrderResp;
import com.yohobuy.ufo.model.order.resp.ExpressInfoResp;
import com.yohobuy.ufo.model.order.resp.OrderDetailResp;
import com.yohobuy.ufo.model.order.resp.OrderOperateRecordResp;
import com.yohobuy.ufo.model.order.resp.QcOrderDetailResp;
@RestController
@RequestMapping(value = "/buyerOrder")
... ... @@ -493,4 +489,11 @@ public class BuyerOrderController {
return new ApiResponse.ApiResponseBuilder().code(200).message("查询成功").data(result).build();
}
@RequestMapping(value = "/queryIdentifyCenter")
public ApiResponse queryIdentifyCenter() {
LOGGER.info("method queryIdentifyCenter in");
List<IdentifyCenterResp> result = buyerOrderService.queryIdentifyCenter();
return new ApiResponse.ApiResponseBuilder().code(200).message("查询成功").data(result).build();
}
}
... ...
... ... @@ -7,11 +7,7 @@ import com.alibaba.fastjson.JSONObject;
import com.yoho.core.dal.datasource.annotation.Database;
import com.yoho.order.model.*;
import com.yoho.ufo.service.model.PageResponseBO;
import com.yohobuy.ufo.model.order.resp.BuyerOrderResp;
import com.yohobuy.ufo.model.order.resp.ExpressInfoResp;
import com.yohobuy.ufo.model.order.resp.OrderDetailResp;
import com.yohobuy.ufo.model.order.resp.OrderOperateRecordResp;
import com.yohobuy.ufo.model.order.resp.QcOrderDetailResp;
import com.yohobuy.ufo.model.order.resp.*;
/**
* @author caoyan
... ... @@ -112,4 +108,7 @@ public interface IBuyerOrderService {
int getPackageCount(Integer depotNo, Integer date);
PageResponseBO<String> queryPackage(Integer depotNo, String sellerWaybillCode, Integer date);
// 查询鉴定室列表
List<IdentifyCenterResp> queryIdentifyCenter();
}
... ...
... ... @@ -15,7 +15,9 @@ import java.util.stream.Collectors;
import javax.annotation.Resource;
import com.yohobuy.ufo.model.order.constants.IdentifyCenterEnum;
import com.yohobuy.ufo.model.order.constants.RegionEnum;
import com.yohobuy.ufo.model.order.resp.*;
import org.apache.commons.collections.CollectionUtils;
import org.apache.commons.lang3.StringUtils;
import org.elasticsearch.common.collect.Lists;
... ... @@ -113,12 +115,6 @@ import com.yohobuy.ufo.model.order.common.OperateTypeEnum;
import com.yohobuy.ufo.model.order.common.OrderAttributes;
import com.yohobuy.ufo.model.order.common.OrderStatus;
import com.yohobuy.ufo.model.order.req.BuyerOrderMetaUpdateReq;
import com.yohobuy.ufo.model.order.resp.BuyerOrderResp;
import com.yohobuy.ufo.model.order.resp.ExpressInfoResp;
import com.yohobuy.ufo.model.order.resp.OrderDetailResp;
import com.yohobuy.ufo.model.order.resp.OrderOperateRecordResp;
import com.yohobuy.ufo.model.order.resp.QcOrderDetailResp;
import com.yohobuy.ufo.model.order.resp.SkupImageInfo;
import com.yohobuy.ufo.model.resp.product.SecondDetailResp;
/**
... ... @@ -2855,5 +2851,15 @@ public class BuyerOrderServiceImpl implements IBuyerOrderService {
}
}
}
// 查询鉴定室列表
public List<IdentifyCenterResp> queryIdentifyCenter() {
IdentifyCenterEnum[] values = IdentifyCenterEnum.values();
List<IdentifyCenterResp> resps = Lists.newArrayList();
for (IdentifyCenterEnum item : values) {
resps.add(new IdentifyCenterResp(item.getCode(), item.getName(), item.getDesc(), item.getText()));
}
return resps;
}
}
... ...