Przeglądaj źródła

优惠券实体优化

WangChanghua 1 rok temu
rodzic
commit
aca316606b

+ 3 - 18
vehicle-server/src/main/java/com/chelvc/cloud/vehicle/server/entity/Coupon.java

@@ -47,25 +47,20 @@ public class Coupon extends BasePromotion {
     private String name;
 
     /**
-     * 优惠金额
+     * 优惠金额
      */
     private Double amount;
 
     /**
-     * 满减金额
+     * 消费门槛
      */
-    private Double reduce;
+    private Double consumeThreshold;
 
     /**
      * 优惠折扣
      */
     private Double discount;
 
-    /**
-     * 过期时间
-     */
-    private Date expiration;
-
     /**
      * 优惠券描述
      */
@@ -111,16 +106,6 @@ public class Coupon extends BasePromotion {
      */
     private Integer effectiveDays;
 
-    /**
-     * 关联范围类型
-     */
-    private PromotionScopeType scopeType = PromotionScopeType.ALL;
-
-    /**
-     * 范围关联的id
-     */
-    private String scopeId;
-
     /**
      * 促销状态
      */