From 96ff66c76a42ba649ad8ef455c8f8aa80791b7cb Mon Sep 17 00:00:00 2001 From: xiaoyong931011 <15274802129@163.com> Date: Tue, 05 Jul 2022 12:01:30 +0800 Subject: [PATCH] 20220606 --- src/main/resources/mapper/ArticleMapper.xml | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/src/main/resources/mapper/ArticleMapper.xml b/src/main/resources/mapper/ArticleMapper.xml index acc3a78..f69fcc6 100644 --- a/src/main/resources/mapper/ArticleMapper.xml +++ b/src/main/resources/mapper/ArticleMapper.xml @@ -21,6 +21,11 @@ <if test="record.title!=null"> and a.title like concat ('%',#{record.title},'%') </if> + <if test="record.columnIds != null"> + <foreach collection="record.columnIds" separator="," close=")" open="(" item="item"> + #{item} + </foreach> + </if> </if> </where> order by a.is_top desc,a.create_time desc -- Gitblit v1.9.1