|
@@ -1,7 +1,5 @@
|
|
|
package com.gree.mall.miniapp.logic.order;
|
|
package com.gree.mall.miniapp.logic.order;
|
|
|
|
|
|
|
|
-import com.gree.mall.miniapp.logic.promotion.PromotionFullPieceLogic;
|
|
|
|
|
-import org.apache.commons.lang3.StringUtils;
|
|
|
|
|
import com.gree.mall.miniapp.bean.order.BuyGood;
|
|
import com.gree.mall.miniapp.bean.order.BuyGood;
|
|
|
import com.gree.mall.miniapp.bean.order.ShoppingCartBean;
|
|
import com.gree.mall.miniapp.bean.order.ShoppingCartBean;
|
|
|
import com.gree.mall.miniapp.bean.order.ShoppingCartDetail;
|
|
import com.gree.mall.miniapp.bean.order.ShoppingCartDetail;
|
|
@@ -11,9 +9,14 @@ import com.gree.mall.miniapp.commonmapper.AppMapper;
|
|
|
import com.gree.mall.miniapp.enums.UserTypeEnum;
|
|
import com.gree.mall.miniapp.enums.UserTypeEnum;
|
|
|
import com.gree.mall.miniapp.exception.RemoteServiceException;
|
|
import com.gree.mall.miniapp.exception.RemoteServiceException;
|
|
|
import com.gree.mall.miniapp.logic.common.CommonLogic;
|
|
import com.gree.mall.miniapp.logic.common.CommonLogic;
|
|
|
|
|
+import com.gree.mall.miniapp.logic.promotion.PromotionFullPieceLogic;
|
|
|
import com.gree.mall.miniapp.logic.promotion.PromotionGroupLogic;
|
|
import com.gree.mall.miniapp.logic.promotion.PromotionGroupLogic;
|
|
|
-import com.gree.mall.miniapp.plus.entity.*;
|
|
|
|
|
-import com.gree.mall.miniapp.plus.service.*;
|
|
|
|
|
|
|
+import com.gree.mall.miniapp.plus.entity.MiniNotice;
|
|
|
|
|
+import com.gree.mall.miniapp.plus.entity.ShoppingCart;
|
|
|
|
|
+import com.gree.mall.miniapp.plus.entity.User;
|
|
|
|
|
+import com.gree.mall.miniapp.plus.service.MiniNoticeService;
|
|
|
|
|
+import com.gree.mall.miniapp.plus.service.ShoppingCartService;
|
|
|
|
|
+import com.gree.mall.miniapp.plus.service.UserService;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Service;
|
|
import org.springframework.stereotype.Service;
|
|
@@ -120,6 +123,7 @@ public class ShoppingCartLogic {
|
|
|
}
|
|
}
|
|
|
shoppingCart.setCompanyWechatId(currentCompanyWechat.getCurrentCompanyWechatId());
|
|
shoppingCart.setCompanyWechatId(currentCompanyWechat.getCurrentCompanyWechatId());
|
|
|
shoppingCart.setCompanyName(currentCompanyWechat.getCurrentCompanyName());
|
|
shoppingCart.setCompanyName(currentCompanyWechat.getCurrentCompanyName());
|
|
|
|
|
+ shoppingCart.setStorageId(buyGood.getStorageId());
|
|
|
shoppingCarts.add(shoppingCart);
|
|
shoppingCarts.add(shoppingCart);
|
|
|
}
|
|
}
|
|
|
shoppingCartService.saveBatch(shoppingCarts);
|
|
shoppingCartService.saveBatch(shoppingCarts);
|