src/main/resources/mapper/ArticleMapper.xml
@@ -12,8 +12,11 @@ <where> and a.del_status = 1 <if test="record != null" > <if test="record.columnId != null"> and a.column_id = #{record.columnId} <if test="record.columnlist != null"> and a.column_id in <foreach collection="record.columnlist" separator="," close=")" open="(" item="item"> #{item} </foreach> </if> <if test="record.companyId != null"> and a.company_id = #{record.companyId}