update Table
SET
STATE = #{state,jdbcType=VARCHAR}
<if test="time!= null and time!=''">
, TIME= SYSDATE
</if>
<if test="b!= null and b!=''">
, B= #{pickupcode}
</if>
WHERE
1=1
<if test="a!= null and a!=''">
AND A= #{a} AND STATE='0'
</if>
<if test="b!= null and b!=''">
AND B= #{b} AND STATE='1'
</if>
调用该SQL时,确定第一个条件可以通过,且更新前字段B为空。
请问第二个if判断里的代码会不会执行