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>

posted @ 2018-04-18 17:27  神只吃苹果  阅读(57811)  评论(1编辑  收藏  举报