xiaoyong931011
2023-02-20 a2a4dd75b0c0e51b325c4fbe89da80dfa4a5d24f
src/main/resources/mapper/modules/MallNewsInfoMapper.xml
@@ -14,4 +14,17 @@
        order by a.CREATED_TIME desc
    </select>
    <select id="selectNewsVoInPage" resultType="cc.mrbird.febs.mall.vo.NewsListVo">
        select * from mall_news_info
        <where>
            1=1
            <if test="record.categoryId != null">
                and category_id=#{record.categoryId}
            </if>
            <if test="record.isTop != null">
                and is_top=#{record.isTop}
            </if>
        </where>
        order by CREATED_TIME desc
    </select>
</mapper>