瀏覽代碼

fix:我的优惠卷状态

wrj 1 年之前
父節點
當前提交
986b1b591c

+ 4 - 0
nightFragrance-massage/src/main/java/com/ylx/massage/domain/CouponReceive.java

@@ -42,6 +42,10 @@ public class CouponReceive extends Model<CouponReceive> {
     @ApiModelProperty("过期时间")
     private Date expirationTime;
 
+    //过期时间
+    @ApiModelProperty("使用状态 0:待使用,1:使用中,2:已完成")
+    private Integer useState;
+
     //创建时间
     @ApiModelProperty("创建时间")
     private Date createTime;

+ 2 - 1
nightFragrance-massage/src/main/resources/mapper/massage/CouponReceiveMapper.xml

@@ -7,6 +7,7 @@
         <result property="openid" column="openid" jdbcType="VARCHAR"/>
         <result property="couponId" column="coupon_id" jdbcType="VARCHAR"/>
         <result property="expirationTime" column="expiration_time" jdbcType="TIMESTAMP"/>
+        <result property="useState" column="use_state" jdbcType="INTEGER"/>
         <result property="createTime" column="create_time" jdbcType="TIMESTAMP"/>
         <result property="updateTime" column="update_time" jdbcType="TIMESTAMP"/>
         <result property="isDelete" column="is_delete" jdbcType="INTEGER"/>
@@ -37,7 +38,7 @@
 
 
     <sql id="selectCouponReceiveVo">
-        a.id, a.openid, a.coupon_id, a.expiration_time, a.create_time, a.update_time, a.is_delete,
+        a.id, a.openid, a.coupon_id, a.expiration_time, a.create_time, a.update_time, a.is_delete,a.use_state
          b.name, b.type, b.discount_type, b.discount_value, b.threshold_amount, b.obtain_way, b.term_days, b.status, b.used_num, b.user_limit, b.ext_param
     </sql>
     <!-- 批量插入 -->