Commit 2955f52f authored by 薛涛 Toby Xue's avatar 薛涛 Toby Xue 🆒

#1971 actionListener

parent f09f1d0f
...@@ -4,6 +4,7 @@ import logwire.core.bo.annotation.Column; ...@@ -4,6 +4,7 @@ import logwire.core.bo.annotation.Column;
import logwire.core.bo.annotation.Composite; import logwire.core.bo.annotation.Composite;
import logwire.core.bo.field.BizExpando; import logwire.core.bo.field.BizExpando;
import logwire.core.bo.field.BizOne; import logwire.core.bo.field.BizOne;
import java.time.OffsetDateTime; import java.time.OffsetDateTime;
import java.util.Map; import java.util.Map;
...@@ -15,29 +16,112 @@ public abstract class BizObject extends ModelObject { ...@@ -15,29 +16,112 @@ public abstract class BizObject extends ModelObject {
/** /**
* 事务类型 insert/update/delete * 事务类型 insert/update/delete
*/ */
String _TX_CODE; private String txCode;
/** /**
* 当事务类型为update时,记录修改过的字段 * 当事务类型为update时,记录修改过的字段
*/ */
Map<String, Object> UPDATED_FIELDS; private Map<String, Object> updatedFields;
@Column(label = "主键") @Column(label = "主键")
Long id;// BO 的ID全部为雪花ID private Long id;// BO 的ID全部为雪花ID
@Column(label = "版本号") @Column(label = "版本号")
int version; private int version;
@Column(label = "BO名称") @Column(label = "BO名称")
String boName; private String boName;
@Column(label = "创建用户") @Column(label = "创建用户")
BizOne<User> createUser; private BizOne<User> createUser;
@Column(label = "创建时间") @Column(label = "创建时间")
OffsetDateTime createDate; private OffsetDateTime createDate;
@Column(label = "最后修改用户") @Column(label = "最后修改用户")
BizOne<User> updateUser; private BizOne<User> updateUser;
@Column(label = "最后修改时间") @Column(label = "最后修改时间")
OffsetDateTime updateDate; private OffsetDateTime updateDate;
@Composite(label = "项目扩展字段", prefix = "exp_") @Composite(label = "项目扩展字段", prefix = "exp_")
BizExpando exps; private BizExpando exps;
@Column(label = "域") @Column(label = "域")
String domain; private String domain;
@Override
public Object getId() {
return id;
}
public String getTxCode() {
return txCode;
}
public void setTxCode(String txCode) {
this.txCode = txCode;
}
public void setId(Long id) {
this.id = id;
}
public int getVersion() {
return version;
}
public void setVersion(int version) {
this.version = version;
}
public String getBoName() {
return boName;
}
public void setBoName(String boName) {
this.boName = boName;
}
public BizOne<User> getCreateUser() {
return createUser;
}
public void setCreateUser(BizOne<User> createUser) {
this.createUser = createUser;
}
public OffsetDateTime getCreateDate() {
return createDate;
}
public void setCreateDate(OffsetDateTime createDate) {
this.createDate = createDate;
}
public BizOne<User> getUpdateUser() {
return updateUser;
}
public void setUpdateUser(BizOne<User> updateUser) {
this.updateUser = updateUser;
}
public OffsetDateTime getUpdateDate() {
return updateDate;
}
public void setUpdateDate(OffsetDateTime updateDate) {
this.updateDate = updateDate;
}
public BizExpando getExps() {
return exps;
}
public void setExps(BizExpando exps) {
this.exps = exps;
}
public String getDomain() {
return domain;
}
public void setDomain(String domain) {
this.domain = domain;
}
} }
...@@ -8,5 +8,5 @@ public abstract class ModelObject{ ...@@ -8,5 +8,5 @@ public abstract class ModelObject{
/** /**
* @return 返回主键值 * @return 返回主键值
*/ */
abstract Object getId(); public abstract Object getId();
} }
...@@ -10,7 +10,7 @@ public abstract class User extends ModelObject { ...@@ -10,7 +10,7 @@ public abstract class User extends ModelObject {
@Column() @Column()
String userXid; String userXid;
Object getId() { public Object getId() {
return userGid; return userGid;
} }
} }
\ No newline at end of file
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