代码改变世界

mybatis <where><if>标签的使用

2018-11-11 18:44  几度夕阳红~~  阅读(1559)  评论(0)    收藏  举报

        <where>
             <if test="ACZ001 != null and ACZ001!=''">ACZ001=#{ACZ001}</if>
             <if test="ACZ002 != null and ACZ002!=''">  and acz002 not in ('${ACZ002}')</if>
        </where>