Mybatis if test 字符串比较不生效

<if test="publishType!='2'"> and t.status='3' and t.has_attachment='YES' </if> 其中publishType为传来的String类型参数,想比较其不等于字符串2,可是判断不生效数组 缘由:code 单引号是char类型,双引号是string类型!字符串 char表示字符,定义时使用用单引号表示,只能
相关文章
相关标签/搜索