浏览代码

优惠券实体优化

WangChanghua 1 年之前
父节点
当前提交
aca316606b
共有 1 个文件被更改,包括 3 次插入18 次删除
  1. 3 18
      vehicle-server/src/main/java/com/chelvc/cloud/vehicle/server/entity/Coupon.java

+ 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;
-
     /**
      * 促销状态
      */