单字符:
-- 如果使用单引号的话会被判断为字符,出现强转类型错误,除非param定义的类型为Char
<where>
<if test="param == '0'.toString()">
</if>
</where>
<where>
<if test='param == "0" '>
</if>
</where>
字符串
<where>
<if test='param == "123"'>
</if>
</where>
单字符:
-- 如果使用单引号的话会被判断为字符,出现强转类型错误,除非param定义的类型为Char
<where>
<if test="param == '0'.toString()">
</if>
</where>
<where>
<if test='param == "0" '>
</if>
</where>
字符串
<where>
<if test='param == "123"'>
</if>
</where>