xuhy
2025-08-25 fdf49fc80a8efd28ed7b59a91a680111ea659e6a
ruoyi-system/src/main/resources/mapper/system/TSysBannerMapper.xml
@@ -21,5 +21,17 @@
    <sql id="Base_Column_List">
        id, banner_name, banner_type, pictures, url_link, sort_by, create_time, update_time, create_by, update_by, disabled
    </sql>
    <select id="pageList" resultType="com.ruoyi.system.model.TSysBanner">
        select
        <include refid="Base_Column_List"/>
            from t_sys_banner
        <where>
            <if test="query.bannerName != null and query.bannerName != ''">
                and banner_name like concat('%',#{query.bannerName},'%')
            </if>
            AND disabled = ${@com.ruoyi.common.enums.DisabledEnum@NO.getCode()}
        </where>
        ORDER BY create_time DESC
    </select>
</mapper>