Mapper开发常用代码片段

code in (code1, code2, ...)

<if test="codeList != null and codeList != ''">
                and code in
                <foreach collection="codeList.split(',')" open="(" close=")" separator="," item="item" index="index">
                    #{item}
                </foreach>
            </if>

 

posted @ 2022-05-30 19:29  贰零伍零  阅读(46)  评论(0)    收藏  举报