package com.hx.phip.model;
|
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
import com.gitee.sunchenbin.mybatis.actable.annotation.Column;
|
import com.gitee.sunchenbin.mybatis.actable.annotation.Table;
|
import com.gitee.sunchenbin.mybatis.actable.constants.MySqlTypeConstant;
|
import com.hx.phiappt.model.BaseEntity;
|
import org.springframework.format.annotation.DateTimeFormat;
|
|
import java.util.Date;
|
|
/**
|
* 同步订单日志表
|
* 2024-04-24 废弃该表
|
*/
|
//@Table(name = "sync_orders_total")
|
public class SyncOrderTotal extends BaseEntity {
|
|
@Column(comment = "请求参数", type = MySqlTypeConstant.TEXT)
|
private String requestParameters;
|
@Column(comment = "返回参数", type = MySqlTypeConstant.TEXT)
|
private String returnParameters;
|
@Column(comment = "外键id (OrderTotal)", length = 64, type = MySqlTypeConstant.VARCHAR)
|
private String foreignKeyId;
|
// 同步类型 1 初始化 2定时 3 场景触发 4心跳
|
@Column(comment = "同步类型", length = 2, type = MySqlTypeConstant.TINYINT)
|
private Integer type;
|
|
//操作类型 1 订单 2 结账 3 部分退款 4全退款 5 作废
|
@Column(comment = "操作类型", length = 2, type = MySqlTypeConstant.TINYINT)
|
private Integer operationType;
|
|
//请求次数 创建订单,支付,退款的时候才会有值用来重新发送
|
@Column(comment = "请求次数", length = 2, type = MySqlTypeConstant.TINYINT)
|
private Integer sendingQuantity;
|
// 请求状态 1成功 2失败 创建订单,支付,退款的时候才会有值用来重新发送
|
@Column(comment = "请求状态", length = 2, type = MySqlTypeConstant.TINYINT)
|
private Integer status;
|
|
@Column(comment = "成功次数", length = 8, type = MySqlTypeConstant.INT)
|
private Integer successNumber;
|
|
@Column(comment = "失败次数", length = 8, type = MySqlTypeConstant.INT)
|
private Integer failNumber;
|
|
@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
|
@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
|
@Column(comment="开始时间",type = MySqlTypeConstant.DATETIME)
|
private Date startTime;
|
|
@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
|
@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
|
@Column(comment="结束时间",type = MySqlTypeConstant.DATETIME)
|
private Date endTime;
|
|
public SyncOrderTotal() {
|
}
|
|
public SyncOrderTotal(Integer type, Integer operationType, Integer successNumber, Integer failNumber) {
|
this.type = type;
|
this.operationType = operationType;
|
this.successNumber = successNumber;
|
this.failNumber = failNumber;
|
}
|
|
public String getRequestParameters() {
|
return requestParameters;
|
}
|
|
public void setRequestParameters(String requestParameters) {
|
this.requestParameters = requestParameters;
|
}
|
|
public String getReturnParameters() {
|
return returnParameters;
|
}
|
|
public void setReturnParameters(String returnParameters) {
|
this.returnParameters = returnParameters;
|
}
|
|
public String getForeignKeyId() {
|
return foreignKeyId;
|
}
|
|
public void setForeignKeyId(String foreignKeyId) {
|
this.foreignKeyId = foreignKeyId;
|
}
|
|
public Integer getType() {
|
return type;
|
}
|
|
public void setType(Integer type) {
|
this.type = type;
|
}
|
|
public Integer getOperationType() {
|
return operationType;
|
}
|
|
public void setOperationType(Integer operationType) {
|
this.operationType = operationType;
|
}
|
|
public Integer getSendingQuantity() {
|
return sendingQuantity;
|
}
|
|
public void setSendingQuantity(Integer sendingQuantity) {
|
this.sendingQuantity = sendingQuantity;
|
}
|
|
public Integer getStatus() {
|
return status;
|
}
|
|
public void setStatus(Integer status) {
|
this.status = status;
|
}
|
|
public Integer getSuccessNumber() {
|
return successNumber;
|
}
|
|
public void setSuccessNumber(Integer successNumber) {
|
this.successNumber = successNumber;
|
}
|
|
public Integer getFailNumber() {
|
return failNumber;
|
}
|
|
public void setFailNumber(Integer failNumber) {
|
this.failNumber = failNumber;
|
}
|
|
public Date getStartTime() {
|
return startTime;
|
}
|
|
public void setStartTime(Date startTime) {
|
this.startTime = startTime;
|
}
|
|
public Date getEndTime() {
|
return endTime;
|
}
|
|
public void setEndTime(Date endTime) {
|
this.endTime = endTime;
|
}
|
}
|