From b95699652357c6218b45eceb81170ddfebb30e1d Mon Sep 17 00:00:00 2001 From: Helius <wangdoubleone@gmail.com> Date: Tue, 05 Jul 2022 16:06:25 +0800 Subject: [PATCH] fix conflect --- src/main/resources/mapper/ArticleMapper.xml | 7 +++++-- 1 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/main/resources/mapper/ArticleMapper.xml b/src/main/resources/mapper/ArticleMapper.xml index 533fdca..aa86fa6 100644 --- a/src/main/resources/mapper/ArticleMapper.xml +++ b/src/main/resources/mapper/ArticleMapper.xml @@ -21,8 +21,11 @@ <if test="record.title!=null"> and a.title like concat ('%',#{record.title},'%') </if> - <if test="record.contentType != null"> - and a.content_type = #{record.contentType} + <if test="record.columnIds != null"> + and a.column_id = + <foreach collection="record.columnIds" separator="," close=")" open="(" item="item"> + #{item} + </foreach> </if> </if> </where> -- Gitblit v1.9.1