mybatics中【】mybatis的if判斷

一、問題:spring 正常在mapper.xml中使用test,最經常使用的就是判斷某個屬性不爲空,則對其進行賦值,以下: <if test="accNo != null and accNo != '' "> and fav.accNo = #{accNo} </if> app 可是有時候可能須要在mapper.xml中根據傳參條件進行查不一樣表進行判斷,以下:spa <if test="acc
相關文章
相關標籤/搜索