| | |
| | | </update> |
| | | |
| | | <select id="getCouponTemplatePage" resultType="com.mzl.flower.dto.response.coupon.CouponTemplateVO"> |
| | | <include refid="QuerySql2"></include> |
| | | <include refid="QuerySql2"/> |
| | | </select> |
| | | <select id="getList" resultType="com.mzl.flower.dto.response.coupon.CouponTemplateVO"> |
| | | <include refid="QuerySql2"></include> |
| | | <include refid="QuerySql2"/> |
| | | </select> |
| | | <select id="getCouponPointList" resultType="com.mzl.flower.dto.response.coupon.CouponTemplateVO"> |
| | | <include refid="QueryPointSql" /> |
| | | </select> |
| | | <select id="getPointPage" resultType="com.mzl.flower.dto.response.coupon.CouponTemplateVO"> |
| | | <include refid="QueryPointSql" /> |
| | | </select> |
| | | |
| | | <sql id="QueryPointSql"> |
| | | select * |
| | | from t_coupon_template |
| | | where deleted=0 |
| | | <if test="param.category != null and param.category != ''"> |
| | | AND category = #{param.category} |
| | | </if> |
| | | <if test="param.status != null and param.status != ''"> |
| | | AND status = #{param.status} |
| | | </if> |
| | | <if test="param.minPoint != null "> |
| | | AND point >= #{param.minPoint} |
| | | </if> |
| | | <if test="param.maxPoint != null "> |
| | | AND point <= #{param.maxPoint} |
| | | </if> |
| | | <if test="param.orderStr != null and param.orderStr != '' "> |
| | | order by ${param.orderStr} |
| | | </if> |
| | | |
| | | </sql> |
| | | |
| | | <sql id="QuerySql2"> |
| | | select * |