如果代码中有指定更新数据的jdbcType,那么jdbcType赋值时不要加入换行或回车符,否则会导致Sql执行出错
例如
错误写法
insert into T_MARKET_AUDIT_RECORD
(id,
OPRA_TYPE,
AUDIT_STATUS,
SERVICE_CODE,
MARKET_SEQ)
values
(#{id,
jdbcType=
VARCHAR},
#{opraType,jdbcType=VARCHAR},
#{auditStatus,jdbcType=VARCHAR},
#{serviceCode,jdbcType=VARCHAR},
#{marketSeq,jdbcType=VARCHAR})
正确写法
insert into T_MARKET_AUDIT_RECORD
(id,
OPRA_TYPE,
AUDIT_STATUS,
SERVICE_CODE,
MARKET_SEQ)
values
(#{id,jdbcType=VARCHAR},
#{opraType,jdbcType=VARCHAR},
#{auditStatus,jdbcType=VARCHAR},
#{serviceCode,jdbcType=VARCHAR},
#{marketSeq,jdbcType=VARCHAR})