- <![CDATA[]]>
<if test="dto.age != null and dto.age == 0">
and a.begin_age <![CDATA[<=]]> #{dto.age}
and a.end_age >= #{dto.age}
</if>
- 其它转义
< | < | 小于号 |
> | > | 大于号 |
& | & | 和 |
' | ' | 单引号 |
&quat; | " | 双引号 |
<if test="dto.age != null and dto.age == 0">
and a.begin_age <= #{dto.age}
and a.end_age >= #{dto.age}
</if>