|
< |
< |
小于号 |
|
> |
> |
大于号 |
|
& |
& |
和 |
|
' |
\' |
单引号 |
|
" |
" |
双引号 |
注意在模糊查询是参数要写成\'%$参数$%\'
例如:
<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 >= #min#
</isNotNull>
<isNotNull prepend="AND" property="max">
ui.RegisterTime < #max#
</isNotNull>
</dynamic>