From 95ef76d6440a5363c0b7981b1333f82f9345322d Mon Sep 17 00:00:00 2001 From: Helius <wangdoubleone@gmail.com> Date: Thu, 07 Jul 2022 15:15:56 +0800 Subject: [PATCH] fix template upload --- 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 aa86fa6..ec1e9d3 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