MySQL的xml中对大于,小于,等于的处理转换

原符号   <    <=    >    >=     &      '       "
替换符号 &lt; &lt;= &gt; &gt;= &amp; &apos; &quot;

例如:

<select id="select" parameterType="xxx" resultMap="xxx">
select
distinct
<include refid="Base_Column_List" />
from xxx
<where>
<if test="createDate != null">
create_date &lt;= #{createDate}
</if>
</where>
</select>

posted @ 2019-01-04 21:22  一心二念  阅读(1674)  评论(0编辑  收藏  举报