mybatis中if test 可以使用== != null '' and or 和括号()


<if test="pd.flag==1 or ((pd.flag==2 or pd.flag==3) and (pd.sfyj==2 or pd.sfyj==3)) or pd.flag==3">
    union all
  </if>

 

 <if test="pd.ssny != null and pd.ssny != ''">
     and z.sjssny >= '${pd.ssny}'
     </if>


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM