查詢語句:
<if test="intoIsPassed != null and intoIsPassed != '' "> and r.into_is_passed = #{intoIsPassed, jdbcType=INTEGER} </if>
數據庫內容:java
postman查詢條件:數據庫
查詢結果:post
查詢語句:
<if test="intoIsPassed != null "> and r.into_is_passed = #{intoIsPassed, jdbcType=INTEGER} </if>
查詢成功!結果爲:blog
更改條件:class
至此,結束。test