1. 版本号修改bug

This commit is contained in:
ant 2024-07-19 18:06:26 +08:00
parent 6259550e1d
commit 88ff8ad9b1
2 changed files with 1 additions and 2 deletions

View File

@ -59,7 +59,7 @@ public class BaseEntity implements Serializable {
update = "%s+1",
fill = FieldFill.INSERT_UPDATE
)
protected Long version;
protected long version;
/**
* 创建人 存储用户user_id

View File

@ -32,7 +32,6 @@ public class MybatisPlusMetaObjectHandler implements MetaObjectHandler {
String userName = "system";
this.fillStrategy(metaObject, "createBy", userName);
// 自动填充下 版本号
this.strictInsertFill(metaObject, "version", Long.class,0L);
this.strictInsertFill(metaObject, "createTime", LocalDateTime.class, LocalDateTime.now());
// this.strictInsertFill(metaObject, "createBy", String.class, userName);
}