错误信息:
嵌套异常为org.apache.ibatis.type.TypeException:无法设置>映射参数:ParameterMapping {property ='signIn',mode = IN,> javaType = class java.util.Date,jdbcType = null,numericScale = null ,> resultMapId ='null',jdbcTypeName ='null',expression ='null'}。 原因:org.apache.ibatis.type.TypeException:使用JdbcType null为参数#4设置非null时出错。 尝试为此参数或其他配置属性设置不同的JdbcType。 原因:java.sql.SQLException:参数索引超出范围(4>参数数量,即3)。
XML
and id_ = #{id}
and promise_id = #{promiseId}
and user_id = #{userId}
and sign_in =#{signIn,jdbcType=DATE}
--and sign_in = date_format( #{signIn} , '%Y-%m-%d' )
-- AND date_format(sign_in,'%y%m%d') = date_format(#{signIn},'%y%m%d')
--
-- AND date(sign_in) = date(#{signIn,jdbcType=DATE})
and sign_status = #{signStatus}
and create_by = #{createBy}
and create_time = #{createTime}
and update_by = #{updateBy}
and update_time = #{updateTime}
and remark = #{remark}
登录为java.util.Date
当我传递参数错误时