xml
001、> >
002、< <
Mybatis
001、#{}引用对象属性
<if test="newtypeid != null and newtypeid!=''"> and newtypeid like #{newtypeid} </if>
002、${}在' '中引用对象属性
<if test="startDate != null and endDate !=null"> and TO_DAYS(fbsj) BETWEEN TO_DAYS('${startDate}') AND TO_DAYS('${endDate}') </if>