xml中if text 判断相等

xml中if text 判断相等

        <if test='param.timeUnit = "1" '>
            and date_format(usn.create_time, '%Y') = #{endTime}
        </if>

img

最开始用的.equals,后面加双引号 , .toString都没用
判断相等该怎么写?

"param.timeUnit == '1' "