...
|
...
|
@@ -9,7 +9,6 @@ import com.yoho.error.exception.ServiceException; |
|
|
import com.yohobuy.ufo.model.order.common.*;
|
|
|
import com.yohobuy.ufo.model.order.constants.*;
|
|
|
import com.yohobuy.ufo.model.order.vo.AddressInfo;
|
|
|
import com.yohobuy.ufo.model.promotion.constant.CouponTypeEnum;
|
|
|
import com.yohoufo.common.alarm.EventBusPublisher;
|
|
|
import com.yohoufo.common.exception.UfoServiceException;
|
|
|
import com.yohoufo.common.lock.RedisLock;
|
...
|
...
|
@@ -29,12 +28,7 @@ import com.yohoufo.order.constants.ActivityTypeEnum; |
|
|
import com.yohoufo.order.event.BuyerCancelEvent;
|
|
|
import com.yohoufo.order.event.ErpBuyerOrderEvent;
|
|
|
import com.yohoufo.order.event.NotPaidNoticeEvent;
|
|
|
import com.yohoufo.order.model.OfflineOrderBuilderFactory;
|
|
|
import com.yohoufo.order.model.OrderBuilderFactory;
|
|
|
import com.yohoufo.order.model.bo.ActivityBo;
|
|
|
import com.yohoufo.order.model.bo.AmountDetailBo;
|
|
|
import com.yohoufo.order.model.bo.CouponBo;
|
|
|
import com.yohoufo.order.model.bo.CouponBoList;
|
|
|
import com.yohoufo.order.model.dto.BuyerOrderSubmitResult;
|
|
|
import com.yohoufo.order.model.dto.OrderBuilder;
|
|
|
import com.yohoufo.order.model.request.ShoppingRequest;
|
...
|
...
|
@@ -51,7 +45,6 @@ import com.yohoufo.order.service.proxy.CouponProxyService; |
|
|
import com.yohoufo.order.service.proxy.InBoxFacade;
|
|
|
import com.yohoufo.order.service.proxy.UserProxyService;
|
|
|
import com.yohoufo.order.service.seller.orderMeta.SellerFeeService;
|
|
|
import com.yohoufo.order.service.seller.support.SkupTypeCodeSupport;
|
|
|
import com.yohoufo.order.service.support.CouponSupport;
|
|
|
import com.yohoufo.order.service.support.PromotionSupport;
|
|
|
import com.yohoufo.order.service.support.ShoppingSupport;
|
...
|
...
|
@@ -132,15 +125,9 @@ public class ShoppingServiceImpl implements IShoppingService { |
|
|
private AppraiseAddressService appraiseAddressService;
|
|
|
|
|
|
@Autowired
|
|
|
private MetaConfigService metaConfigService;
|
|
|
|
|
|
@Autowired
|
|
|
private StorageDepositMapper storageDepositMapper;
|
|
|
|
|
|
@Autowired
|
|
|
private CouponProxyService couponProxyService;
|
|
|
|
|
|
@Autowired
|
|
|
private RedisLockFactory redisLockFactory;
|
|
|
|
|
|
@Autowired
|
...
|
...
|
@@ -311,7 +298,9 @@ public class ShoppingServiceImpl implements IShoppingService { |
|
|
SellerOrderGoods skupInfo,
|
|
|
ActivityPrice activityPrice,
|
|
|
int chargeStage) {
|
|
|
return chargeContextFactory.buildChargeContext(request, skupInfo, activityPrice, chargeStage, this::getAndCheckAddressInfo);
|
|
|
return chargeContextFactory.buildChargeContext(request, skupInfo, activityPrice, chargeStage,
|
|
|
DeliveryWayUtils::findDeliveryWayCodeBySkupType,
|
|
|
this::getAndCheckAddressInfo);
|
|
|
}
|
|
|
|
|
|
@Override
|
...
|
...
|
@@ -454,11 +443,12 @@ public class ShoppingServiceImpl implements IShoppingService { |
|
|
|
|
|
logger.info("generate new orderCode:{}", orderCode);
|
|
|
|
|
|
orderBuilder = getOrderBuilderFactory().create(uid,orderCode,shoppingRequest.getChannelNo(),
|
|
|
orderBuilder = getOrderBuilderFactory().create(uid, orderCode, shoppingRequest.getChannelNo(),
|
|
|
shoppingRequest.getClientType(),
|
|
|
userAddressPair,
|
|
|
goodsPrepareData,
|
|
|
psog,chargeContext);
|
|
|
DeliveryWayUtils::findDeliveryWayCodeBySkupType,
|
|
|
psog, chargeContext);
|
|
|
|
|
|
submitResult = ordeCreationService.doSubmitOrder(orderBuilder);
|
|
|
}finally {
|
...
|
...
|
|