关于转义符的合集

< &lt; &#60; 小于号
> &gt; &#62; 大于号
&le; &#8804; 小于等于号
&ge; &#8805; 大于等于号
" &quot; &#34; 引号
&ldquo; &#147; 左双引号
&rdquo; &#148; 右双引号
&lsquo; &#145;

左单引号

 

&rsquo; &#146; 右单引号

例如:

<isNotNull prepend="and" property="BeginOrderTime">
a.order_time >= #BeginOrderTime#
</isNotNull>
<isNotNull prepend="and" property="EndOrderTime">
a.order_time &lt; #EndOrderTime#
</isNotNull>
<isNotNull prepend="and" property="BeginPayTime">
a.create_time >= #BeginPayTime#
</isNotNull>
<isNotNull prepend="and" property="EndPayTime">
a.create_time &lt; #EndPayTime#
</isNotNull>
limit $SkipIndex$, $PageSize$

也可以通过这样的方式:

<isNotEmpty property="EndTime" prepend="and">
<![CDATA[
tab1.CreateTime < #EndTime#
]]>

 

posted @ 2018-08-23 11:10  newlore  阅读(769)  评论(0编辑  收藏  举报