提交 | 用户 | age
|
739bf5
|
1 |
package com.hx.phip.model; |
C |
2 |
|
|
3 |
import com.fasterxml.jackson.annotation.JsonFormat; |
|
4 |
import com.gitee.sunchenbin.mybatis.actable.annotation.Column; |
|
5 |
import com.gitee.sunchenbin.mybatis.actable.annotation.Table; |
|
6 |
import com.gitee.sunchenbin.mybatis.actable.constants.MySqlTypeConstant; |
|
7 |
import com.hx.phiappt.model.BaseEntity; |
|
8 |
import org.springframework.format.annotation.DateTimeFormat; |
|
9 |
|
|
10 |
import java.util.Date; |
|
11 |
|
|
12 |
/** |
|
13 |
* 同步订单日志表 |
|
14 |
* 2024-04-24 废弃该表 |
|
15 |
*/ |
|
16 |
//@Table(name = "sync_orders_total") |
|
17 |
public class SyncOrderTotal extends BaseEntity { |
|
18 |
|
|
19 |
@Column(comment = "请求参数", type = MySqlTypeConstant.TEXT) |
|
20 |
private String requestParameters; |
|
21 |
@Column(comment = "返回参数", type = MySqlTypeConstant.TEXT) |
|
22 |
private String returnParameters; |
|
23 |
@Column(comment = "外键id (OrderTotal)", length = 64, type = MySqlTypeConstant.VARCHAR) |
|
24 |
private String foreignKeyId; |
|
25 |
// 同步类型 1 初始化 2定时 3 场景触发 4心跳 |
|
26 |
@Column(comment = "同步类型", length = 2, type = MySqlTypeConstant.TINYINT) |
|
27 |
private Integer type; |
|
28 |
|
|
29 |
//操作类型 1 订单 2 结账 3 部分退款 4全退款 5 作废 |
|
30 |
@Column(comment = "操作类型", length = 2, type = MySqlTypeConstant.TINYINT) |
|
31 |
private Integer operationType; |
|
32 |
|
|
33 |
//请求次数 创建订单,支付,退款的时候才会有值用来重新发送 |
|
34 |
@Column(comment = "请求次数", length = 2, type = MySqlTypeConstant.TINYINT) |
|
35 |
private Integer sendingQuantity; |
|
36 |
// 请求状态 1成功 2失败 创建订单,支付,退款的时候才会有值用来重新发送 |
|
37 |
@Column(comment = "请求状态", length = 2, type = MySqlTypeConstant.TINYINT) |
|
38 |
private Integer status; |
|
39 |
|
|
40 |
@Column(comment = "成功次数", length = 8, type = MySqlTypeConstant.INT) |
|
41 |
private Integer successNumber; |
|
42 |
|
|
43 |
@Column(comment = "失败次数", length = 8, type = MySqlTypeConstant.INT) |
|
44 |
private Integer failNumber; |
|
45 |
|
|
46 |
@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") |
|
47 |
@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8") |
|
48 |
@Column(comment="开始时间",type = MySqlTypeConstant.DATETIME) |
|
49 |
private Date startTime; |
|
50 |
|
|
51 |
@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") |
|
52 |
@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8") |
|
53 |
@Column(comment="结束时间",type = MySqlTypeConstant.DATETIME) |
|
54 |
private Date endTime; |
|
55 |
|
|
56 |
public SyncOrderTotal() { |
|
57 |
} |
|
58 |
|
|
59 |
public SyncOrderTotal(Integer type, Integer operationType, Integer successNumber, Integer failNumber) { |
|
60 |
this.type = type; |
|
61 |
this.operationType = operationType; |
|
62 |
this.successNumber = successNumber; |
|
63 |
this.failNumber = failNumber; |
|
64 |
} |
|
65 |
|
|
66 |
public String getRequestParameters() { |
|
67 |
return requestParameters; |
|
68 |
} |
|
69 |
|
|
70 |
public void setRequestParameters(String requestParameters) { |
|
71 |
this.requestParameters = requestParameters; |
|
72 |
} |
|
73 |
|
|
74 |
public String getReturnParameters() { |
|
75 |
return returnParameters; |
|
76 |
} |
|
77 |
|
|
78 |
public void setReturnParameters(String returnParameters) { |
|
79 |
this.returnParameters = returnParameters; |
|
80 |
} |
|
81 |
|
|
82 |
public String getForeignKeyId() { |
|
83 |
return foreignKeyId; |
|
84 |
} |
|
85 |
|
|
86 |
public void setForeignKeyId(String foreignKeyId) { |
|
87 |
this.foreignKeyId = foreignKeyId; |
|
88 |
} |
|
89 |
|
|
90 |
public Integer getType() { |
|
91 |
return type; |
|
92 |
} |
|
93 |
|
|
94 |
public void setType(Integer type) { |
|
95 |
this.type = type; |
|
96 |
} |
|
97 |
|
|
98 |
public Integer getOperationType() { |
|
99 |
return operationType; |
|
100 |
} |
|
101 |
|
|
102 |
public void setOperationType(Integer operationType) { |
|
103 |
this.operationType = operationType; |
|
104 |
} |
|
105 |
|
|
106 |
public Integer getSendingQuantity() { |
|
107 |
return sendingQuantity; |
|
108 |
} |
|
109 |
|
|
110 |
public void setSendingQuantity(Integer sendingQuantity) { |
|
111 |
this.sendingQuantity = sendingQuantity; |
|
112 |
} |
|
113 |
|
|
114 |
public Integer getStatus() { |
|
115 |
return status; |
|
116 |
} |
|
117 |
|
|
118 |
public void setStatus(Integer status) { |
|
119 |
this.status = status; |
|
120 |
} |
|
121 |
|
|
122 |
public Integer getSuccessNumber() { |
|
123 |
return successNumber; |
|
124 |
} |
|
125 |
|
|
126 |
public void setSuccessNumber(Integer successNumber) { |
|
127 |
this.successNumber = successNumber; |
|
128 |
} |
|
129 |
|
|
130 |
public Integer getFailNumber() { |
|
131 |
return failNumber; |
|
132 |
} |
|
133 |
|
|
134 |
public void setFailNumber(Integer failNumber) { |
|
135 |
this.failNumber = failNumber; |
|
136 |
} |
|
137 |
|
|
138 |
public Date getStartTime() { |
|
139 |
return startTime; |
|
140 |
} |
|
141 |
|
|
142 |
public void setStartTime(Date startTime) { |
|
143 |
this.startTime = startTime; |
|
144 |
} |
|
145 |
|
|
146 |
public Date getEndTime() { |
|
147 |
return endTime; |
|
148 |
} |
|
149 |
|
|
150 |
public void setEndTime(Date endTime) { |
|
151 |
this.endTime = endTime; |
|
152 |
} |
|
153 |
} |