mybatis <if test=" "></if> 判断语句关键字智能用小写,不识别大写
<when test="(unit_number != null and unit_number != '') OR (business_code != null and business_code != '') ">
Caused
by
: org.apache.ibatis.ognl.ParseException: Encountered
" "
OR
“”
at
line 1
正确写法:
<when test="(unit_number != null and unit_number != '') or (business_code != null and business_code != '') ">