coupon通知字段

This commit is contained in:
2025-07-27 14:18:30 +08:00
parent 4d2a962bc6
commit 0ca7cd694e
4 changed files with 31 additions and 9 deletions

View File

@@ -11,7 +11,7 @@
<select id="selectByQuery" resultType="com.ycwl.basic.model.pc.coupon.resp.CouponRespVO">
SELECT
c.id, scenic_id AS scenicId, s.name as scenicName,
c.name AS name, c.description AS description, c.countdown AS countdown,
c.name AS name, c.description AS description, c.countdown AS countdown, c.broadcast,
config_ids AS configIds, discount_price AS discountPrice,
type, discount_type AS discountType,
c.status, c.create_at
@@ -30,6 +30,8 @@
ORDER BY create_time DESC
</select>
<select id="getById" resultType="com.ycwl.basic.model.pc.coupon.entity.CouponEntity">
select * from coupon where id = #{id}
SELECT id, scenic_id, name, broadcast, config_ids, discount_price, type, discount_type, status, create_at
FROM coupon
WHERE id = #{id}
</select>
</mapper>