在mybatis 中加入jdbcType=varchar 等是为了预防插入的值为空
当输入的值为空时坑能会报
org.springframework.jdbc.UncategorizedSQLException:Error setting null for parameter #6 with JdbcType OTHER . Try setting adifferent JdbcType for this parameter or a different jdbcTypeForNullconfiguration property.
解决方式
如:#{output,jdbcType=VARCHAR},,
#{execTime,jdbcType=NUMERIC},
#{createDate,jdbcType=TIMESTAMP},