优惠券加两字段

This commit is contained in:
2025-07-25 18:57:25 +08:00
parent 1c443e136b
commit c72d598d4a
3 changed files with 13 additions and 1 deletions

View File

@@ -19,6 +19,12 @@ public class CouponEntity {
// 新增优惠券名称字段 // 新增优惠券名称字段
private String name; private String name;
// 优惠券描述
private String description;
// 倒计时字段(仅用于展示)
private String countdown;
/** /**
* 优惠券类别,0:普通优惠券;1:第一次推送;2:第二次;3:第三次 * 优惠券类别,0:普通优惠券;1:第一次推送;2:第二次;3:第三次
*/ */

View File

@@ -13,6 +13,12 @@ public class CouponRespVO {
// 新增优惠券名称字段 // 新增优惠券名称字段
private String name; private String name;
// 优惠券描述
private String description;
// 倒计时字段(仅用于展示)
private String countdown;
/** /**
* 优惠券类别,0:普通优惠券;1:第一次推送;2:第二次;3:第三次 * 优惠券类别,0:普通优惠券;1:第一次推送;2:第二次;3:第三次
*/ */

View File

@@ -11,7 +11,7 @@
<select id="selectByQuery" resultType="com.ycwl.basic.model.pc.coupon.resp.CouponRespVO"> <select id="selectByQuery" resultType="com.ycwl.basic.model.pc.coupon.resp.CouponRespVO">
SELECT SELECT
c.id, scenic_id AS scenicId, s.name as scenicName, c.id, scenic_id AS scenicId, s.name as scenicName,
c.name AS name, c.name AS name, c.description AS description, c.countdown AS countdown,
config_ids AS configIds, discount_price AS discountPrice, config_ids AS configIds, discount_price AS discountPrice,
type, discount_type AS discountType, type, discount_type AS discountType,
c.status, c.create_at c.status, c.create_at