Authored by chenchao

use enum stand by depot type

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