| | |
| | | <sql id="Base_Column_List"> |
| | | id, info_title, show_type, info_cover, info_content, status, sort_by, click_count, create_time, update_time, create_by, update_by, disabled |
| | | </sql> |
| | | <select id="pageList" resultType="com.ruoyi.system.model.TSysEducationalInfo"> |
| | | select |
| | | <include refid="Base_Column_List" /> |
| | | from t_sys_educational_info |
| | | <where> |
| | | <if test="query.infoTitle != null and query.infoTitle != ''"> |
| | | and info_title like concat('%',#{query.infoTitle},'%') |
| | | </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> |