mybatis 之 if test 條件

問題描述:mybatis 之 if test 條件,參數爲0時,查詢條件未輸出。如,當 tagtype值爲0(Integer),查詢條件沒有拼接 and tagtype=0。傳入其餘值(1,2,3...)都正常 1、mybatis 配置     <!-- Where查詢條件 -->     <sql id="whereSQL">         <if test=" null != id">   
相關文章
相關標籤/搜索