- <![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>版权声明:本文为m0_38096768原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。