From 08e5cfa5651c15a79bcbcff2b04a1dda6c5c961b Mon Sep 17 00:00:00 2001 From: Helius <wangdoubleone@gmail.com> Date: Thu, 07 Jul 2022 16:19:28 +0800 Subject: [PATCH] fix --- 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 e99e251..61fc59f 100644 --- a/src/main/resources/mapper/ArticleMapper.xml +++ b/src/main/resources/mapper/ArticleMapper.xml @@ -74,6 +74,12 @@ <if test="record.columnCode != null and record.columnCode != ''"> and c.column_code=#{record.columnCode} </if> + <if test="record.columnIds != null"> + and c.id in + <foreach collection="record.columnIds" item="item" open="(" close=")" separator=","> + ${item} + </foreach> + </if> </where> </select> </mapper> \ No newline at end of file -- Gitblit v1.9.1