xiaoyong931011
2022-07-05 ed5b338a4ef3e95db7354ad3f3d65f8752b5915c
src/main/resources/mapper/ArticleMapper.xml
@@ -21,6 +21,12 @@
                <if test="record.title!=null">
                    and a.title like concat ('%',#{record.title},'%')
                </if>
                <if test="record.columnIds != null">
                    and a.column_id =
                    <foreach collection="record.columnIds" separator="," close=")" open="(" item="item">
                        #{item}
                    </foreach>
                </if>
            </if>
        </where>
        order by a.is_top desc,a.create_time desc