#1971 建表clear,BO字段调整

parent 312a4c91
Pipeline #4712 canceled with stages
...@@ -16,31 +16,32 @@ public abstract class BizObject extends ModelObject { ...@@ -16,31 +16,32 @@ public abstract class BizObject extends ModelObject {
/** /**
* 事务类型 insert/update/delete * 事务类型 insert/update/delete
*/ */
private String txCode; String txCode;
/** /**
* 当事务类型为update时,记录修改过的字段 * 当事务类型为update时,记录修改过的字段
*/ */
private Map<String, Object> updatedFields; Map<String, Object> updatedFields;
Long id;// BO 的ID全部为雪花ID
int version;
@Column(label = "主键")
private Long id;// BO 的ID全部为雪花ID
@Column(label = "版本号")
private int version;
@Column(label = "BO名称") @Column(label = "BO名称")
private String boName; String boName;
@Column(label = "创建用户")
private BizOne<User> createUser; BizOne<User> insertUser;
@Column(label = "创建时间")
private OffsetDateTime createDate; OffsetDateTime insertDate;
@Column(label = "最后修改用户")
private BizOne<User> updateUser; BizOne<User> updateUser;
@Column(label = "最后修改时间")
private OffsetDateTime updateDate; OffsetDateTime updateDate;
@Composite(label = "项目扩展字段", prefix = "exp_") @Composite(label = "项目扩展字段", prefix = "exp_")
private BizExpando exps; BizExpando exps;
@Column(label = "域")
private String domain; String domainName;
@Override @Override
...@@ -77,28 +78,24 @@ public abstract class BizObject extends ModelObject { ...@@ -77,28 +78,24 @@ public abstract class BizObject extends ModelObject {
this.boName = boName; this.boName = boName;
} }
public BizOne<User> getCreateUser() { public Map<String, Object> getUpdatedFields() {
return createUser; return updatedFields;
} }
public void setCreateUser(BizOne<User> createUser) { public BizOne<User> getInsertUser() {
this.createUser = createUser; return insertUser;
} }
public OffsetDateTime getCreateDate() { public void setInsertUser(BizOne<User> insertUser) {
return createDate; this.insertUser = insertUser;
} }
public void setCreateDate(OffsetDateTime createDate) { public OffsetDateTime getInsertDate() {
this.createDate = createDate; return insertDate;
}
public BizOne<User> getUpdateUser() {
return updateUser;
} }
public void setUpdateUser(BizOne<User> updateUser) { public void setInsertDate(OffsetDateTime insertDate) {
this.updateUser = updateUser; this.insertDate = insertDate;
} }
public OffsetDateTime getUpdateDate() { public OffsetDateTime getUpdateDate() {
...@@ -109,6 +106,14 @@ public abstract class BizObject extends ModelObject { ...@@ -109,6 +106,14 @@ public abstract class BizObject extends ModelObject {
this.updateDate = updateDate; this.updateDate = updateDate;
} }
public BizOne<User> getUpdateUser() {
return updateUser;
}
public void setUpdateUser(BizOne<User> updateUser) {
this.updateUser = updateUser;
}
public BizExpando getExps() { public BizExpando getExps() {
return exps; return exps;
} }
...@@ -117,11 +122,11 @@ public abstract class BizObject extends ModelObject { ...@@ -117,11 +122,11 @@ public abstract class BizObject extends ModelObject {
this.exps = exps; this.exps = exps;
} }
public String getDomain() { public String getDomainName() {
return domain; return domainName;
} }
public void setDomain(String domain) { public void setDomainName(String domainName) {
this.domain = domain; this.domainName = domainName;
} }
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment