| | |
| | | <sql id="Base_Column_List"> |
| | | id, product_name, show_type, product_introduction, product_cover, product_detail, status, sort_by, click_count, create_time, update_time, create_by, update_by, disabled |
| | | </sql> |
| | | <select id="pageList" resultType="com.ruoyi.system.model.TSysProductIntroduction"> |
| | | SELECT |
| | | <include refid="Base_Column_List"/> |
| | | FROM t_sys_product_introduction |
| | | <where> |
| | | <if test="query.productName != null and query.productName != ''"> |
| | | AND product_name LIKE concat('%',#{query.productName},'%') |
| | | </if> |
| | | <if test="query.showType != null"> |
| | | AND show_type = #{query.showType} |
| | | </if> |
| | | <if test="query.status != null"> |
| | | AND status = #{query.status} |
| | | </if> |
| | | <if test="query.roleType != null and query.roleType == 5"> |
| | | AND show_type in (2,3) |
| | | </if> |
| | | AND disabled = ${@com.ruoyi.common.enums.DisabledEnum@NO.getCode()} |
| | | </where> |
| | | ORDER BY create_time DESC |
| | | </select> |
| | | |
| | | </mapper> |