瀏覽代碼

修改提交订单-1

plf 4 年之前
父節點
當前提交
4cd3854b69

+ 8 - 1
base-module/src/main/java/com/caimei/module/base/entity/bo/PromotionsVo.java

@@ -1,6 +1,5 @@
 package com.caimei.module.base.entity.bo;
 
-import com.caimei.module.base.entity.bo.CartItem;
 import com.fasterxml.jackson.annotation.JsonFormat;
 import lombok.Data;
 
@@ -22,6 +21,10 @@ public class PromotionsVo implements Serializable {
      * 促销名称
      */
     private String name;
+    /**
+     * 促销描述
+     */
+    private String description;
     /**
      * 分类: 1单品促销,2凑单促销,3店铺促销
      */
@@ -60,6 +63,10 @@ public class PromotionsVo implements Serializable {
      * 商品id
      */
     private Integer productId;
+    /**
+     * 主订单id
+     */
+    private Integer orderId;
     /**
      * 该优惠下商品
      */

+ 10 - 0
base-module/src/main/java/com/caimei/module/base/entity/po/CmOrderProduct.java

@@ -291,6 +291,16 @@ public class CmOrderProduct implements Serializable {
      */
     private BigDecimal actPreferential;
 
+    /**
+     * 商品类型(0正常商品,1协商赠品,2促销赠品)
+     */
+    private String productType;
+
+    /**
+     * 订单促销id
+     */
+    private Integer orderPromotionsId;
+
     /**
      * 优惠 (price - discountPrice) * num
      */

+ 12 - 1
base-module/src/main/java/com/caimei/module/base/entity/po/CmShopOrder.java

@@ -8,6 +8,7 @@ import java.util.Date;
 
 /**
  * cm_shop_order
+ *
  * @author
  */
 @Data
@@ -47,6 +48,11 @@ public class CmShopOrder implements Serializable {
      */
     private Integer shopID;
 
+    /**
+     * 订单促销id(主要针对店铺促销)
+     */
+    private Integer orderPromotionsId;
+
     /**
      * 普通订单 1 协销订单0 与cm_order一样
      */
@@ -63,7 +69,7 @@ public class CmShopOrder implements Serializable {
     private Integer presentNum;
 
     /**
-     *   购买数量
+     * 购买数量
      */
     private Integer itemCount;
 
@@ -124,6 +130,11 @@ public class CmShopOrder implements Serializable {
      */
     private BigDecimal preferential;
 
+    /**
+     * 促销满减优惠(不考虑凑单促销)
+     */
+    private BigDecimal promotionFullReduction;
+
     /**
      * 是否已支付:1是,0否
      */