|
|
package com.yohoufo.order.service;
|
|
|
|
|
|
import com.yoho.core.dal.datasource.annotation.Database;
|
|
|
import com.yoho.service.model.response.UserAddressRspBO;
|
|
|
import com.yohobuy.ufo.model.order.bo.PlatformFee;
|
|
|
import com.yohobuy.ufo.model.order.bo.SoldPrdComputeBo;
|
|
|
import com.yohobuy.ufo.model.order.req.SellerOrderComputeReq;
|
...
|
...
|
@@ -18,6 +19,7 @@ import com.yohoufo.order.model.dto.PlatformFeeDto; |
|
|
import com.yohoufo.order.model.dto.SellerOrderComputeResult;
|
|
|
import com.yohoufo.order.service.handler.SellerOrderComputeHandler;
|
|
|
import com.yohoufo.order.service.handler.SellerOrderSubmitHandler;
|
|
|
import com.yohoufo.order.service.proxy.UserProxyService;
|
|
|
import com.yohoufo.order.service.support.codegenerator.OrderCodeGenerator;
|
|
|
import com.yohoufo.product.model.GoodsSize;
|
|
|
import com.yohoufo.product.response.StorageDataResp;
|
...
|
...
|
@@ -40,22 +42,21 @@ public class SellerOrderService { |
|
|
@Autowired
|
|
|
private SellerOrderMapper sellerOrderMapper;
|
|
|
|
|
|
|
|
|
@Autowired
|
|
|
private UfoServiceCaller ufoServiceCaller;
|
|
|
|
|
|
|
|
|
@Autowired
|
|
|
private SellerOrderComputeHandler computeHandler;
|
|
|
|
|
|
|
|
|
@Autowired
|
|
|
private OrderCodeGenerator orderCodeGenerator;
|
|
|
|
|
|
|
|
|
@Autowired
|
|
|
private SellerOrderSubmitHandler orderSubmitHandler;
|
|
|
|
|
|
@Autowired
|
|
|
private UserProxyService userProxyService;
|
|
|
|
|
|
|
|
|
|
|
|
public SoldPrdComputeBo computePublishPrd(SellerOrderComputeReq req) throws GatewayException {
|
...
|
...
|
@@ -197,10 +198,13 @@ public class SellerOrderService { |
|
|
//the address of send back 2 seller
|
|
|
AddressInfo backAddress = new AddressInfo();
|
|
|
backAddress.setAddress_id(req.getAddressId());
|
|
|
backAddress.setAddress(req.getAddress());
|
|
|
backAddress.setConsignee(req.getConsignee());
|
|
|
backAddress.setPhone(req.getPhone());
|
|
|
backAddress.setZipCode(req.getZipCode());
|
|
|
|
|
|
//
|
|
|
UserAddressRspBO addressRspBO = userProxyService.getAddressInfo(uid, req.getAddressId());
|
|
|
backAddress.setAddress(addressRspBO.getAddress());
|
|
|
backAddress.setConsignee(addressRspBO.getUid());
|
|
|
backAddress.setPhone(addressRspBO.getPhone());
|
|
|
backAddress.setZipCode(addressRspBO.getZipCode());
|
|
|
|
|
|
//
|
|
|
SellerOrderContext context = new SellerOrderContext();
|
...
|
...
|
|