<if test='client_type != null and client_type == "1"'>
sql内容
</if>
test里面的判断字符串相等时需要使用双引号"",如果使用单引号
则无法识别<if>标签中的内容,例如下面的写法就会报错:
<if test='client_type != null and client_type == '1' ">
sql内容
</if>
<if test='client_type != null and client_type == "1"'>
sql内容
</if>
test里面的判断字符串相等时需要使用双引号"",如果使用单引号
则无法识别<if>标签中的内容,例如下面的写法就会报错:
<if test='client_type != null and client_type == '1' ">
sql内容
</if>