基础代码生成
This commit is contained in:
1 parent
352d7d023f
commit
1c0544afe0
122 files changed
+21475
No files matched your search
@@ -0,0 +1,195 @@
|
||||
package com.ruoyi.system.domain;
|
||||
|
||||
import java.util.Date;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import com.ruoyi.common.annotation.Excel;
|
||||
import com.ruoyi.common.core.domain.BaseEntity;
|
||||
import java.io.Serializable;
|
||||
/**
|
||||
* 业务操作和状态变更追加审计;关键事务同写对象 rent_event
|
||||
*
|
||||
* @author luqj
|
||||
* @date 2026-10-22
|
||||
*/
|
||||
public class RentEvent extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 记录主键 */
|
||||
private Long id;
|
||||
|
||||
/** 全局事件编号;节点按NODE:nodeId:eventId构造,限制eventId长度使总长不超过96 */
|
||||
@Excel(name = "全局事件编号;节点按NODE:nodeId:eventId构造,限制eventId长度使总长不超过96")
|
||||
private String eventNo;
|
||||
|
||||
/** APP、NODE、WALLET、PACKAGE、ORDER、TASK、ACCOUNT、SETTLEMENT、REFUND */
|
||||
@Excel(name = "APP、NODE、WALLET、PACKAGE、ORDER、TASK、ACCOUNT、SETTLEMENT、REFUND")
|
||||
private String objectType;
|
||||
|
||||
/** 对应业务表id */
|
||||
@Excel(name = "对应业务表id")
|
||||
private Long objectId;
|
||||
|
||||
/** 状态变更或操作代码 */
|
||||
@Excel(name = "状态变更或操作代码")
|
||||
private String action;
|
||||
|
||||
/** sys_user.user_id,节点或系统处理为0 */
|
||||
@Excel(name = "sys_user.user_id,节点或系统处理为0")
|
||||
private Long actorUserId;
|
||||
|
||||
/** 节点事件来源rent_node.id */
|
||||
@Excel(name = "节点事件来源rent_node.id")
|
||||
private Long nodeId;
|
||||
|
||||
/** 脱敏前后状态、结果与核验证据,不含Secret */
|
||||
@Excel(name = "脱敏前后状态、结果与核验证据,不含Secret")
|
||||
private String detail;
|
||||
|
||||
/** 操作依据或状态转换说明 */
|
||||
@Excel(name = "操作依据或状态转换说明")
|
||||
private String reason;
|
||||
|
||||
/** CAS乐观锁版本,更新须条件递增;追加记录保持0 */
|
||||
@Excel(name = "CAS乐观锁版本,更新须条件递增;追加记录保持0")
|
||||
private Long version;
|
||||
|
||||
/** 创建UTC时间,应用显式写入 */
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
@Excel(name = "创建UTC时间,应用显式写入", width = 30, dateFormat = "yyyy-MM-dd")
|
||||
private Date createdAt;
|
||||
|
||||
/** 更新UTC时间,追加记录与创建时间相同 */
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
@Excel(name = "更新UTC时间,追加记录与创建时间相同", width = 30, dateFormat = "yyyy-MM-dd")
|
||||
private Date updatedAt;
|
||||
|
||||
public void setId(Long id)
|
||||
{
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Long getId()
|
||||
{
|
||||
return id;
|
||||
}
|
||||
public void setEventNo(String eventNo)
|
||||
{
|
||||
this.eventNo = eventNo;
|
||||
}
|
||||
|
||||
public String getEventNo()
|
||||
{
|
||||
return eventNo;
|
||||
}
|
||||
public void setObjectType(String objectType)
|
||||
{
|
||||
this.objectType = objectType;
|
||||
}
|
||||
|
||||
public String getObjectType()
|
||||
{
|
||||
return objectType;
|
||||
}
|
||||
public void setObjectId(Long objectId)
|
||||
{
|
||||
this.objectId = objectId;
|
||||
}
|
||||
|
||||
public Long getObjectId()
|
||||
{
|
||||
return objectId;
|
||||
}
|
||||
public void setAction(String action)
|
||||
{
|
||||
this.action = action;
|
||||
}
|
||||
|
||||
public String getAction()
|
||||
{
|
||||
return action;
|
||||
}
|
||||
public void setActorUserId(Long actorUserId)
|
||||
{
|
||||
this.actorUserId = actorUserId;
|
||||
}
|
||||
|
||||
public Long getActorUserId()
|
||||
{
|
||||
return actorUserId;
|
||||
}
|
||||
public void setNodeId(Long nodeId)
|
||||
{
|
||||
this.nodeId = nodeId;
|
||||
}
|
||||
|
||||
public Long getNodeId()
|
||||
{
|
||||
return nodeId;
|
||||
}
|
||||
public void setDetail(String detail)
|
||||
{
|
||||
this.detail = detail;
|
||||
}
|
||||
|
||||
public String getDetail()
|
||||
{
|
||||
return detail;
|
||||
}
|
||||
public void setReason(String reason)
|
||||
{
|
||||
this.reason = reason;
|
||||
}
|
||||
|
||||
public String getReason()
|
||||
{
|
||||
return reason;
|
||||
}
|
||||
public void setVersion(Long version)
|
||||
{
|
||||
this.version = version;
|
||||
}
|
||||
|
||||
public Long getVersion()
|
||||
{
|
||||
return version;
|
||||
}
|
||||
public void setCreatedAt(Date createdAt)
|
||||
{
|
||||
this.createdAt = createdAt;
|
||||
}
|
||||
|
||||
public Date getCreatedAt()
|
||||
{
|
||||
return createdAt;
|
||||
}
|
||||
public void setUpdatedAt(Date updatedAt)
|
||||
{
|
||||
this.updatedAt = updatedAt;
|
||||
}
|
||||
|
||||
public Date getUpdatedAt()
|
||||
{
|
||||
return updatedAt;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("id", getId())
|
||||
.append("eventNo", getEventNo())
|
||||
.append("objectType", getObjectType())
|
||||
.append("objectId", getObjectId())
|
||||
.append("action", getAction())
|
||||
.append("actorUserId", getActorUserId())
|
||||
.append("nodeId", getNodeId())
|
||||
.append("detail", getDetail())
|
||||
.append("reason", getReason())
|
||||
.append("version", getVersion())
|
||||
.append("createdAt", getCreatedAt())
|
||||
.append("updatedAt", getUpdatedAt())
|
||||
.toString();
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user