XML中转义字符及使用

<

<

小于号

&gt;

>

大于号

&amp;

&

&apos;

'

单引号

&quot;

"

双引号

注意在模糊查询是参数要写成'%$参数$%'

例如:

<dynamic>
<isNotNull prepend="AND" property="realname">
ue.RealName like '%$realname$%'
</isNotNull>

<isNotNull prepend="AND" property="accountno">
ui.AccountNo = #accountno#
</isNotNull>

<isNotNull prepend="AND" property="min">
ui.RegisterTime &gt;= #min#
</isNotNull>

<isNotNull prepend="AND" property="max">
ui.RegisterTime &lt; #max#
</isNotNull>
</dynamic>

原文地址:https://www.cnblogs.com/applemy/p/6672373.html