錯誤信息
## Error querying database.
Cause: java.lang.IllegalArgumentException:
invalid comparison: com.alibaba.fastjson.JSONArray and java.lang.String
錯誤原因:在mybatis xml文件中的動態sql,if test 非空判斷類型出錯,把JSONArray與空串作比較,代碼片段如下:
其中 items 爲JSONArray,所以上面代碼片段出錯位置是 【items !='' '】
即去掉 【and items != ''】