...
|
...
|
@@ -20,6 +20,7 @@ import com.yohoufo.common.alarm.EventBusPublisher; |
|
|
import com.yohoufo.common.caller.UfoServiceCaller;
|
|
|
import com.yohoufo.common.constant.ExpressInfoConstant;
|
|
|
import com.yohoufo.common.exception.UfoServiceException;
|
|
|
import com.yohoufo.common.utils.AddressUtil;
|
|
|
import com.yohoufo.common.utils.DateUtil;
|
|
|
import com.yohoufo.common.utils.UserInfoHiddenHelper;
|
|
|
import com.yohoufo.dal.order.*;
|
...
|
...
|
@@ -37,6 +38,7 @@ import com.yohoufo.order.service.cache.CacheKeyBuilder; |
|
|
import com.yohoufo.order.service.proxy.InBoxFacade;
|
|
|
import com.yohoufo.order.service.proxy.OrderStatusFlowService;
|
|
|
import com.yohoufo.order.service.proxy.ProductProxyService;
|
|
|
import com.yohoufo.order.service.proxy.UserProxyService;
|
|
|
import com.yohoufo.order.service.seller.setting.SellerService;
|
|
|
import com.yohoufo.order.service.seller.setting.SellerWrapper;
|
|
|
import org.apache.commons.collections.CollectionUtils;
|
...
|
...
|
@@ -111,6 +113,9 @@ public class ExpressInfoServiceImpl implements IExpressInfoService { |
|
|
@Autowired
|
|
|
private IBuyerOrderMetaService buyerOrderMetaService;
|
|
|
|
|
|
@Autowired
|
|
|
private UserProxyService userProxyService;
|
|
|
|
|
|
private static String EXPRESS_MQ_SEND = "third.logistics.logistics_data";
|
|
|
|
|
|
//物流文案设置
|
...
|
...
|
@@ -1120,5 +1125,33 @@ public class ExpressInfoServiceImpl implements IExpressInfoService { |
|
|
return resp;
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
public AppraiseAddressResp queryByUserAddress(int uid, String addressIdStr) {
|
|
|
int addressId = AddressUtil.getDecryptStr(addressIdStr);
|
|
|
if (addressId < 0){
|
|
|
LOGGER.warn("queryByUserAddess addressId invalidate, uid {}, addressId is {}",
|
|
|
uid, addressIdStr);
|
|
|
throw new ServiceException(ServiceError.ORDER_ADDRESSID_INVALIDATE);
|
|
|
}
|
|
|
|
|
|
//query the address
|
|
|
AddressInfo hiddenBackAddress = userProxyService.getHiddenAddressInfo(uid, addressId);
|
|
|
// 根据用户id查询默认地址的省份
|
|
|
AppraiseAddressResp resp = null;
|
|
|
if (null != hiddenBackAddress ) {
|
|
|
// 根据产品给的哪些用户的省份匹配到对应的鉴定中心地址
|
|
|
AppraiseAddress address = appraiseAddressService.queryAppraiseAddressByAreaCode(hiddenBackAddress.getAreaCode());
|
|
|
|
|
|
resp = new AppraiseAddressResp.builder().setAreaCode(address.getAreaCode()).build();
|
|
|
resp.setShipFee(address.getShipFee());
|
|
|
LOGGER.info("In queryByUserAddess hiddenBackAddress success, uid {} addressIdStr {}, AppraiseAddressResp",
|
|
|
uid, addressIdStr, resp);
|
|
|
}else {
|
|
|
LOGGER.warn("In queryByUserAddess hiddenBackAddress is null, uid {} addressIdStr {}", uid, addressIdStr);
|
|
|
}
|
|
|
|
|
|
return resp;
|
|
|
}
|
|
|
|
|
|
|
|
|
} |
...
|
...
|
|