xiaoyong931011
2022-07-07 89ebff2b2d96a66fd732d8ecb209d155fa69e946
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}