服务器内部错误org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.exceptions.PersistenceException: ### Error querying database. Cause: java.lang.IllegalArgumentException: Unable to convert type java.lang.Character of 8 to type of java.lang.CharSequence ### Cause: java.lang.IllegalArgumentException: Unable to convert type java.lang.Character of 8 to type of java.lang.CharSequence
mybatis中的xml写法有问题:
<if test="patientStatus != null and patientStatus != '' and patientStatus.contains('8')">
中的:
patientStatus.contains('8')
因为 patientStatus 为字符串,而不是数组类型;
改成:
<if test="patientStatus != null and patientStatus != '' and patientStatus !='81' and patientStatus !='82' and patientStatus !='83' and patientStatus !='84'">