`

转义字符

 
阅读更多

xml

    001、>  >

    002、<  &lt;

 

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>
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics