| | |
| | | <sql id="Base_Column_List"> |
| | | id, name, type, amount, storeId, time, amountCondition, createTime, updateTime, createBy, updateBy, isDelete, grantStatus |
| | | </sql> |
| | | <select id="pageList" resultType="com.jilongda.manage.vo.TCouponVO"> |
| | | select t1.* from |
| | | t_coupon t1 |
| | | where 1=1 |
| | | <if test="query.name != null and query.name != ''"> |
| | | and t1.name like concat('%',#{query.name},'%') |
| | | </if> |
| | | <if test="query.type != null and query.type != ''"> |
| | | and t1.type =#{query.type} |
| | | </if> |
| | | <if test="query.grantStatus != null and query.grantStatus != ''"> |
| | | and t1.grantStatus =#{query.grantStatus} |
| | | </if> |
| | | </select> |
| | | |
| | | </mapper> |