记录一次oracle报错信息。
就是简单的查询列表的方法,Dao层使用Mybatis-plus插件,根据id去查询数据,代码如下:
hisNurseMapper.selectList(new EntityWrapper<HisNurse>().eq("DOCTORID",staffScheduleVO.getStaffId()));
结果报了看不懂的错,报错信息如下:
org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.type.TypeException: Could not set parameters for mapping: ParameterMapping{property='ew.paramNameValuePairs.MPGENVAL1', mode=IN, javaType=class java.lang.Object, jdbcType=null, numericScale=null, resultMapId='null', jdbcTypeName='null', expression='null'}. Cause: org.apache.ibatis.type.TypeException: Error setting null for parameter #1 with JdbcType OTHER . Try setting a different JdbcType for this parameter or a different jdbcTypeForNull configuration property. Cause: java.sql.SQLException: 无效的列类型: 1111
at org.mybatis.spring.MyBatisExceptionTrans