From 9b02eab3cb3fc2b487e6a3de3992aa3b7d284d40 Mon Sep 17 00:00:00 2001 From: xiaoyong931011 <15274802129@163.com> Date: Thu, 07 Jul 2022 14:54:06 +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 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