在Mapper.xml配置中使用SELECT出现
异常:
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: 无效的列索引 ; invalid ResultSet access for SQL []; nested exception is java.sql.SQLException: 无效的列索引 |
mapper的配置:
<select id="findUnHandlePrescription" resultMap="result" parameterMap="param" > SELECT * FROM ZSHIS.MET_IPM_SWISSLOG_INTERFACE </select> |
原因:多了红色的配置,即原来不需要查询添加的,但因为添加
parameterMap。