fix(mybatis): 目前会存在自动增加双引号"",无限被转义,去除jdbcType = JdbcType.VARCHAR后正常
- 删除 @TableField 注解中的 jdbcType 属性 - 移除 BaseDO 中 creator 和 updater 字段的 jdbcType 配置pull/218/head
parent
d64f4e9343
commit
c49436950c
|
|
@ -38,14 +38,14 @@ public abstract class BaseDO implements Serializable, TransPojo {
|
|||
*
|
||||
* 使用 String 类型的原因是,未来可能会存在非数值的情况,留好拓展性。
|
||||
*/
|
||||
@TableField(fill = FieldFill.INSERT, jdbcType = JdbcType.VARCHAR)
|
||||
@TableField(fill = FieldFill.INSERT)
|
||||
private String creator;
|
||||
/**
|
||||
* 更新者,目前使用 SysUser 的 id 编号
|
||||
*
|
||||
* 使用 String 类型的原因是,未来可能会存在非数值的情况,留好拓展性。
|
||||
*/
|
||||
@TableField(fill = FieldFill.INSERT_UPDATE, jdbcType = JdbcType.VARCHAR)
|
||||
@TableField(fill = FieldFill.INSERT_UPDATE)
|
||||
private String updater;
|
||||
/**
|
||||
* 是否删除
|
||||
|
|
|
|||
Loading…
Reference in New Issue