...
|
...
|
@@ -140,4 +140,24 @@ public class BuyerOrderMetaServiceImpl implements IBuyerOrderMetaService { |
|
|
return ccr;
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* 优先取召回地址,如果没有取到就取默认发货地址
|
|
|
* @param uid
|
|
|
* @param orderCode
|
|
|
* @return
|
|
|
*/
|
|
|
@Override
|
|
|
public AddressInfo getRecallAddressInfo(int uid, long orderCode){
|
|
|
BuyerOrderMeta recallAddress = getBuyerOrderMeta(uid, orderCode, MetaKey.RECALL_HIDDEN_ADDRESS);
|
|
|
|
|
|
AddressInfo userAddress = null;
|
|
|
if (null == recallAddress) {
|
|
|
recallAddress = getBuyerOrderMeta(uid, orderCode, MetaKey.BUYER_DELIVERY_HIDDEN_ADDRESS);
|
|
|
}
|
|
|
|
|
|
if ( null != recallAddress && StringUtils.isNotBlank(recallAddress.getMetaValue())){
|
|
|
userAddress = JSONObject.parseObject(recallAddress.getMetaValue(), AddressInfo.class);
|
|
|
}
|
|
|
return userAddress;
|
|
|
}
|
|
|
} |
...
|
...
|
|