|
|
@@ -10,6 +10,8 @@ import com.etotem.cfc.dto.ProductOrderDTO;
|
|
|
import com.etotem.cfc.entity.AfterSalesRequest;
|
|
|
import com.etotem.cfc.entity.AssessmentProduct;
|
|
|
import com.etotem.cfc.entity.Consignee;
|
|
|
+import com.etotem.cfc.entity.Coupon;
|
|
|
+import com.etotem.cfc.entity.FamilyCoupon;
|
|
|
import com.etotem.cfc.entity.Product;
|
|
|
import com.etotem.cfc.entity.ProductBundleItem;
|
|
|
import com.etotem.cfc.entity.ProductGiftRule;
|
|
|
@@ -26,6 +28,8 @@ import com.etotem.cfc.mapper.AfterSalesRequestMapper;
|
|
|
import com.etotem.cfc.entity.SupplySystemMember;
|
|
|
import com.etotem.cfc.mapper.SupplySystemMemberMapper;
|
|
|
import com.etotem.cfc.service.SupplyHierarchyService;
|
|
|
+import com.etotem.cfc.mapper.CouponMapper;
|
|
|
+import com.etotem.cfc.mapper.FamilyCouponMapper;
|
|
|
import com.etotem.cfc.mapper.ProductMapper;
|
|
|
import com.etotem.cfc.mapper.ProductOrderMapper;
|
|
|
import com.etotem.cfc.mapper.UserMapper;
|
|
|
@@ -163,6 +167,12 @@ public class ProductOrderService {
|
|
|
@Resource
|
|
|
private ProductGiftService productGiftService;
|
|
|
|
|
|
+ @Resource
|
|
|
+ private CouponMapper couponMapper;
|
|
|
+
|
|
|
+ @Resource
|
|
|
+ private FamilyCouponMapper familyCouponMapper;
|
|
|
+
|
|
|
public Result<ProductOrderDTO> create(CreateProductOrderDTO dto, Long buyerId) {
|
|
|
if (buyerId == null) {
|
|
|
return Result.error("请先登录");
|