基础代码生成
This commit is contained in:
1 parent
352d7d023f
commit
1c0544afe0
122 files changed
+21475
No files matched your search
@@ -0,0 +1,253 @@
|
||||
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;
|
||||
import java.util.Date;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
/**
|
||||
* 订单回调持久队列;业务状态更新时同事务写入对象 rent_webhook
|
||||
*
|
||||
* @author luqj
|
||||
* @date 2026-10-22
|
||||
*/
|
||||
@TableName(value = "rent_webhook")
|
||||
public class RentWebhookPlus implements Serializable
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 记录主键 */
|
||||
private Long id;
|
||||
/** 商户回调事件编号 */
|
||||
@Excel(name = "商户回调事件编号")
|
||||
private String eventNo;
|
||||
/** rent_order.id */
|
||||
@Excel(name = "rent_order.id")
|
||||
private Long orderId;
|
||||
/** SUCCESS、FAILED、CANCELLED、REFUNDED、RECLAIMED */
|
||||
@Excel(name = "SUCCESS、FAILED、CANCELLED、REFUNDED、RECLAIMED")
|
||||
private String eventType;
|
||||
/** 全局唯一业务事件键;普通事件ORDER:id:type,退款REFUND:refund_no,每次部分退款独立 */
|
||||
@Excel(name = "全局唯一业务事件键;普通事件ORDER:id:type,退款REFUND:refund_no,每次部分退款独立")
|
||||
private String eventKey;
|
||||
/** 锁订单行后分配的递增事件序号;商户去重并按序号识别乱序,重试不变 */
|
||||
@Excel(name = "锁订单行后分配的递增事件序号;商户去重并按序号识别乱序,重试不变")
|
||||
private Long orderEventSequence;
|
||||
/** 锁定回调业务内容,不含内部成本或Secret */
|
||||
@Excel(name = "锁定回调业务内容,不含内部成本或Secret")
|
||||
private String payload;
|
||||
/** PENDING待发、SENDING发送、ACKED确认、DEAD重试超限 */
|
||||
@Excel(name = "PENDING待发、SENDING发送、ACKED确认、DEAD重试超限")
|
||||
private String status;
|
||||
/** 重试次数,每次生成新nonce及timestamp */
|
||||
@Excel(name = "重试次数,每次生成新nonce及timestamp")
|
||||
private Long attemptCount;
|
||||
/** 最近回调使用的APP主体rent_credential.id */
|
||||
@Excel(name = "最近回调使用的APP主体rent_credential.id")
|
||||
private Long credentialId;
|
||||
/** 下次重试,UTC */
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
@Excel(name = "下次重试,UTC", width = 30, dateFormat = "yyyy-MM-dd")
|
||||
private Date nextAttemptAt;
|
||||
/** worker租约标识 */
|
||||
@Excel(name = "worker租约标识")
|
||||
private String lockOwner;
|
||||
/** worker租约期限,UTC */
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
@Excel(name = "worker租约期限,UTC", width = 30, dateFormat = "yyyy-MM-dd")
|
||||
private Date lockUntil;
|
||||
/** 最近脱敏错误 */
|
||||
@Excel(name = "最近脱敏错误")
|
||||
private String lastError;
|
||||
/** 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 setOrderId(Long orderId)
|
||||
{
|
||||
this.orderId = orderId;
|
||||
}
|
||||
|
||||
public Long getOrderId()
|
||||
{
|
||||
return orderId;
|
||||
}
|
||||
public void setEventType(String eventType)
|
||||
{
|
||||
this.eventType = eventType;
|
||||
}
|
||||
|
||||
public String getEventType()
|
||||
{
|
||||
return eventType;
|
||||
}
|
||||
public void setEventKey(String eventKey)
|
||||
{
|
||||
this.eventKey = eventKey;
|
||||
}
|
||||
|
||||
public String getEventKey()
|
||||
{
|
||||
return eventKey;
|
||||
}
|
||||
public void setOrderEventSequence(Long orderEventSequence)
|
||||
{
|
||||
this.orderEventSequence = orderEventSequence;
|
||||
}
|
||||
|
||||
public Long getOrderEventSequence()
|
||||
{
|
||||
return orderEventSequence;
|
||||
}
|
||||
public void setPayload(String payload)
|
||||
{
|
||||
this.payload = payload;
|
||||
}
|
||||
|
||||
public String getPayload()
|
||||
{
|
||||
return payload;
|
||||
}
|
||||
public void setStatus(String status)
|
||||
{
|
||||
this.status = status;
|
||||
}
|
||||
|
||||
public String getStatus()
|
||||
{
|
||||
return status;
|
||||
}
|
||||
public void setAttemptCount(Long attemptCount)
|
||||
{
|
||||
this.attemptCount = attemptCount;
|
||||
}
|
||||
|
||||
public Long getAttemptCount()
|
||||
{
|
||||
return attemptCount;
|
||||
}
|
||||
public void setCredentialId(Long credentialId)
|
||||
{
|
||||
this.credentialId = credentialId;
|
||||
}
|
||||
|
||||
public Long getCredentialId()
|
||||
{
|
||||
return credentialId;
|
||||
}
|
||||
public void setNextAttemptAt(Date nextAttemptAt)
|
||||
{
|
||||
this.nextAttemptAt = nextAttemptAt;
|
||||
}
|
||||
|
||||
public Date getNextAttemptAt()
|
||||
{
|
||||
return nextAttemptAt;
|
||||
}
|
||||
public void setLockOwner(String lockOwner)
|
||||
{
|
||||
this.lockOwner = lockOwner;
|
||||
}
|
||||
|
||||
public String getLockOwner()
|
||||
{
|
||||
return lockOwner;
|
||||
}
|
||||
public void setLockUntil(Date lockUntil)
|
||||
{
|
||||
this.lockUntil = lockUntil;
|
||||
}
|
||||
|
||||
public Date getLockUntil()
|
||||
{
|
||||
return lockUntil;
|
||||
}
|
||||
public void setLastError(String lastError)
|
||||
{
|
||||
this.lastError = lastError;
|
||||
}
|
||||
|
||||
public String getLastError()
|
||||
{
|
||||
return lastError;
|
||||
}
|
||||
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("orderId", getOrderId())
|
||||
.append("eventType", getEventType())
|
||||
.append("eventKey", getEventKey())
|
||||
.append("orderEventSequence", getOrderEventSequence())
|
||||
.append("payload", getPayload())
|
||||
.append("status", getStatus())
|
||||
.append("attemptCount", getAttemptCount())
|
||||
.append("credentialId", getCredentialId())
|
||||
.append("nextAttemptAt", getNextAttemptAt())
|
||||
.append("lockOwner", getLockOwner())
|
||||
.append("lockUntil", getLockUntil())
|
||||
.append("lastError", getLastError())
|
||||
.append("version", getVersion())
|
||||
.append("createdAt", getCreatedAt())
|
||||
.append("updatedAt", getUpdatedAt())
|
||||
.toString();
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user