<isPropertyAvailable property="patientName"> <isNotEmpty property="patientName" prepend=" and "> patientname like '%$patientName$%' </isNotEmpty> </isPropertyAvailable> <isPropertyAvailable property="patientType"> <isNotEmpty property="patientType" prepend=" and "> patientType=#patientType# </isNotEmpty> </isPropertyAvailable>
这里有两个
1.patientname like '%$patientName$%'
2.patientType=#patientType#
#表示是直接让字段等于井号内部的内容,而$表示模糊匹配
注意$和#的用法。

被折叠的 条评论
为什么被折叠?



