1. 程式人生 > >mybatis <where><if>標籤的使用

mybatis <where><if>標籤的使用

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