Mybatis if test 字符串比較不生效

<if test="publishType!='2'"> and t.status='3' and t.has_attachment='YES' </if> 其中publishType爲傳來的String類型參數,想比較其不等於字符串2,可是判斷不生效數組 緣由:code 單引號是char類型,雙引號是string類型!字符串 char表示字符,定義時使用用單引號表示,只能
相關文章
相關標籤/搜索