...
|
...
|
@@ -219,6 +219,9 @@ public class BuyerOrderServiceImpl implements IBuyerOrderService, ApplicationCon |
|
|
@Autowired
|
|
|
private OrderCouponMapper orderCouponMapper;
|
|
|
|
|
|
@Autowired
|
|
|
private BuyerOrderGoodsService buyerOrderGoodsService;
|
|
|
|
|
|
private static final String BUYER_ORDER_META_KEY_DELIVERY_ADDRESS = "delivery_address";
|
|
|
|
|
|
private static final String SELLER_ORDER_META_KEY_BACK_DELIVERY_ADDRESS = "back_delivery_address";
|
...
|
...
|
@@ -1725,8 +1728,8 @@ public class BuyerOrderServiceImpl implements IBuyerOrderService, ApplicationCon |
|
|
BuyerOrderResp result = new BuyerOrderResp();
|
|
|
result.setReceiveTitle("卖家信息");
|
|
|
result.setPlatformWaybillTitle("寄回信息");
|
|
|
result.setReceiveName(metaValue.getString("consignee"));
|
|
|
result.setReceiveMobile(metaValue.getString("mobile"));
|
|
|
result.setReceiveName(null == metaValue.getString("consignee") ? "-" : metaValue.getString("consignee"));
|
|
|
result.setReceiveMobile(null == metaValue.getString("mobile") ? "-" : metaValue.getString("mobile"));
|
|
|
result.setReceiveAddress(metaValue.getString("area") + metaValue.getString("address"));
|
|
|
|
|
|
if(StringUtils.isEmpty(req.getOrderCode())) {
|
...
|
...
|
@@ -1817,6 +1820,7 @@ public class BuyerOrderServiceImpl implements IBuyerOrderService, ApplicationCon |
|
|
resp.setSellerName(getUserNameByUid(buyerOrder.getSellerUid()));
|
|
|
resp.setSellerMobile(getMobileByUid(buyerOrder.getSellerUid()));
|
|
|
resp.setActivityCutAmount(goods.getActivityCutAmount() == null ? "-" : String.format("%.2f", goods.getActivityCutAmount().doubleValue()));
|
|
|
resp.setTariffAmount(buyerOrderGoodsService.getTariffAmount(goods));
|
|
|
SellerOrderMeta sellerMeta = sellerOrderMetaMapper.selectBySkupAndKey(skup, SELLER_ORDER_META_KEY_BACK_DELIVERY_ADDRESS);
|
|
|
if(sellerMeta!=null){
|
|
|
JSONObject sellerMetaValue = JSONObject.parseObject(sellerMeta.getMetaValue());
|
...
|
...
|
@@ -3138,7 +3142,7 @@ public class BuyerOrderServiceImpl implements IBuyerOrderService, ApplicationCon |
|
|
}
|
|
|
|
|
|
private void updateDeptNo(Long orderCode, String wayBillCode, String phoneUid) {
|
|
|
LOGGER.error("method. updateDeptNo begin orderCode is {} , wayBillCode is {}, phoneUid is {}", orderCode, wayBillCode, phoneUid);
|
|
|
LOGGER.info("method. updateDeptNo begin orderCode is {} , wayBillCode is {}, phoneUid is {}", orderCode, wayBillCode, phoneUid);
|
|
|
|
|
|
PhoneUidDepot phoneUidDepot = phoneUidDepotMapper.selectByphoneUid(phoneUid);
|
|
|
|
...
|
...
|
|