...
|
...
|
@@ -10,13 +10,16 @@ import com.yohobuy.ufo.model.order.req.SellerOrderComputeReq; |
|
|
import com.yohobuy.ufo.model.order.vo.AddressInfo;
|
|
|
import com.yohoufo.common.exception.UfoServiceException;
|
|
|
import com.yohoufo.dal.order.model.StorageDeposit;
|
|
|
import com.yohoufo.order.constants.ClientSpecialSemanticCode;
|
|
|
import com.yohoufo.order.model.QuickDeliverOrderContext;
|
|
|
import com.yohoufo.order.service.DepositService;
|
|
|
import com.yohoufo.order.service.IBuyerOrderMetaService;
|
|
|
import com.yohoufo.order.service.proxy.UserProxyService;
|
|
|
import com.yohoufo.order.service.seller.PublishProcessor;
|
|
|
import com.yohoufo.order.service.seller.SkupService;
|
|
|
import com.yohoufo.order.service.seller.processor.PriceComputePrepareProcessor;
|
|
|
import com.yohoufo.order.utils.LoggerUtils;
|
|
|
import com.yohoufo.order.utils.ServiceExceptions;
|
|
|
import org.apache.commons.collections.CollectionUtils;
|
|
|
import org.slf4j.Logger;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
...
|
...
|
@@ -41,6 +44,9 @@ public class QuickDeliverPublishProcessor implements PublishProcessor<QuickDeliv |
|
|
@Autowired
|
|
|
private SkupService skupService;
|
|
|
|
|
|
@Autowired
|
|
|
private UserProxyService userProxyService;
|
|
|
|
|
|
@Override
|
|
|
public QuickDeliverOrderContext buildPublishCtx(QuickDeliverOrderSubmitReq qdosr) {
|
|
|
|
...
|
...
|
@@ -62,6 +68,10 @@ public class QuickDeliverPublishProcessor implements PublishProcessor<QuickDeliv |
|
|
logger.warn("in buildSellerOrderContext storageId not exist in prd service , uid {}, storageId {}", uid, storageId);
|
|
|
throw new ServiceException(ServiceError.ORDER_ORDERS_GOODS_IS_EMPTY);
|
|
|
}
|
|
|
if (!userProxyService.checkRealNameCert(uid)){
|
|
|
logger.warn("QuickDeliverPublishProcessor checkRealNameCert result false, uid {}", uid);
|
|
|
throw new UfoServiceException(ClientSpecialSemanticCode.needRealName, "请完成实名认证后操作");
|
|
|
}
|
|
|
goodsInfo.setTargetSkupStatus(SkupStatus.CAN_SELL);
|
|
|
|
|
|
// query deposit code is exist in system
|
...
|
...
|
|