Authored by chenchao

use enum stand by depot type

@@ -3,6 +3,7 @@ package com.yohoufo.order.service.impl; @@ -3,6 +3,7 @@ package com.yohoufo.order.service.impl;
3 import com.google.common.collect.Lists; 3 import com.google.common.collect.Lists;
4 import com.yoho.core.cache.LocalCache; 4 import com.yoho.core.cache.LocalCache;
5 import com.yoho.core.cache.LocalCacheCallback; 5 import com.yoho.core.cache.LocalCacheCallback;
  6 +import com.yohobuy.ufo.model.order.constants.DepotType;
6 import com.yohoufo.dal.order.AppraiseAddressMapper; 7 import com.yohoufo.dal.order.AppraiseAddressMapper;
7 import com.yohoufo.dal.order.model.AppraiseAddress; 8 import com.yohoufo.dal.order.model.AppraiseAddress;
8 import com.yohoufo.order.model.response.AppraiseAddressInfo; 9 import com.yohoufo.order.model.response.AppraiseAddressInfo;
@@ -78,7 +79,7 @@ public class AppraiseAddressService { @@ -78,7 +79,7 @@ public class AppraiseAddressService {
78 if (Objects.nonNull(address)){ 79 if (Objects.nonNull(address)){
79 return do2Resp(address); 80 return do2Resp(address);
80 } 81 }
81 - AppraiseAddressResp resp = new AppraiseAddressResp.builder().setType(2) 82 + AppraiseAddressResp resp = new AppraiseAddressResp.builder().setType(DepotType.HK.getCode())
82 .setAddressName("hk").setAddress("hk appraise address").setMobile("hkm").build(); 83 .setAddressName("hk").setAddress("hk appraise address").setMobile("hkm").build();
83 return resp; 84 return resp;
84 } 85 }
@@ -9,6 +9,7 @@ import com.yoho.error.ServiceError; @@ -9,6 +9,7 @@ import com.yoho.error.ServiceError;
9 import com.yoho.error.exception.ServiceException; 9 import com.yoho.error.exception.ServiceException;
10 import com.yohobuy.ufo.model.order.bo.SellerBo; 10 import com.yohobuy.ufo.model.order.bo.SellerBo;
11 import com.yohobuy.ufo.model.order.common.*; 11 import com.yohobuy.ufo.model.order.common.*;
  12 +import com.yohobuy.ufo.model.order.constants.DepotType;
12 import com.yohobuy.ufo.model.order.resp.ExpressInfoDetail; 13 import com.yohobuy.ufo.model.order.resp.ExpressInfoDetail;
13 import com.yohobuy.ufo.model.order.resp.ExpressInfoRespBo; 14 import com.yohobuy.ufo.model.order.resp.ExpressInfoRespBo;
14 import com.yohobuy.ufo.model.order.resp.MiniFaultConfirm; 15 import com.yohobuy.ufo.model.order.resp.MiniFaultConfirm;
@@ -160,7 +161,7 @@ public class ExpressInfoServiceImpl implements IExpressInfoService { @@ -160,7 +161,7 @@ public class ExpressInfoServiceImpl implements IExpressInfoService {
160 throw new ServiceException(ServiceError.ORDER_NULL); 161 throw new ServiceException(ServiceError.ORDER_NULL);
161 } 162 }
162 if (isHKLargeSettlementSuper(sellerUid)){ 163 if (isHKLargeSettlementSuper(sellerUid)){
163 - depotNum = 2; 164 + depotNum = DepotType.HK.getCode();
164 } 165 }
165 166
166 //根据skup ,更新鉴定中心 167 //根据skup ,更新鉴定中心