...
|
...
|
@@ -123,13 +123,7 @@ public class DepositOrderService { |
|
|
GoodsInfo goodsInfo = getGoodsInfo(storageDeposit); // 查询购买商品的详细信息
|
|
|
|
|
|
|
|
|
CodeMeta codeMeta = orderCodeGenerator.expId(orderCode);
|
|
|
AddressInfo addressInfo = null;
|
|
|
if (OrderCodeType.BUYER_TYPE.getType() == codeMeta.getType()) {
|
|
|
addressInfo = buyerOrderMetaService.getHiddenAddressInfo(req.getUid(), orderCode); // 获取用户的地址
|
|
|
} else {
|
|
|
addressInfo = appraiseOrderMetaService.getHidderUserAddress(orderCode);
|
|
|
}
|
|
|
AddressInfo addressInfo = getAddressInfo(req, orderCode);
|
|
|
|
|
|
addressInfo.setAddress_id_str(AddressUtil.getEncryptStr(String.valueOf(addressInfo.getAddress_id())));// 加密addressId
|
|
|
|
...
|
...
|
@@ -142,6 +136,17 @@ public class DepositOrderService { |
|
|
.userAddress(addressInfo).priceInfo(priceInfo).goodsInfo(goodsInfo).build();
|
|
|
}
|
|
|
|
|
|
private AddressInfo getAddressInfo(DepositOrderComputeReq req, Long orderCode) {
|
|
|
CodeMeta codeMeta = orderCodeGenerator.expId(orderCode);
|
|
|
AddressInfo addressInfo = null;
|
|
|
if (OrderCodeType.BUYER_TYPE.getType() == codeMeta.getType()) {
|
|
|
addressInfo = buyerOrderMetaService.getHiddenAddressInfo(req.getUid(), orderCode); // 获取用户的地址
|
|
|
} else {
|
|
|
addressInfo = appraiseOrderMetaService.getHidderUserAddress(orderCode);
|
|
|
}
|
|
|
return addressInfo;
|
|
|
}
|
|
|
|
|
|
|
|
|
/**
|
|
|
* 如果关联了新的skup,代表寄存的主人已上架过库存, 需要 下架SKUP
|
...
|
...
|
|