mybatis-plus使用条件构造器构造notin条件时,没有判空和判断集合的长度抛出异常:
/*if (attrIds!=null && attrIds.size()>0){ wrapper.notIn("attr_id",attrIds); }*/
net.sf.jsqlparser.parser.ParseException: Encountered unexpected token: "NOT" "NOT"
at line 3, column 17.
Was expecting one of:
"&"
"&&"
")"
"::"
"<<"
">>"
"AND"
"COLLATE"
"OR"
"["
"^"
"|"