mybatis 映射文件中,if标签判断字符串相等与否
- 方式一,判断相等【加.toString()转换成字符串】
<if test="remark != null and remark != ''and auditidentified =='2'.toString()">
,refusalreason=#{remark,jdbcType=VARCHAR}
</if>
- 方式二,判断相等【单引号,里面套双引号】
<if test=
mybatis 映射文件中,if标签判断字符串相等与否
<if test="remark != null and remark != ''and auditidentified =='2'.toString()">
,refusalreason=#{remark,jdbcType=VARCHAR}
</if>
<if test=