xuhy
2025-08-30 0e1238faa0537377afc9f6edfae7e99d8f438fb3
ruoyi-system/src/main/resources/mapper/system/TSysProductIntroductionMapper.xml
@@ -24,5 +24,26 @@
    <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>