From 94821acab114ed562aca92c6c1975672e9e6131a Mon Sep 17 00:00:00 2001 From: xiaoyong931011 <15274802129@163.com> Date: Tue, 05 Jul 2022 12:02:14 +0800 Subject: [PATCH] Merge branch 'master' of http://120.27.238.55:7000/r/farmer-cms --- src/main/resources/mapper/ArticleMapper.xml | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/src/main/resources/mapper/ArticleMapper.xml b/src/main/resources/mapper/ArticleMapper.xml index acc3a78..43ec8e5 100644 --- a/src/main/resources/mapper/ArticleMapper.xml +++ b/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 -- Gitblit v1.9.1