ChargerSignEvent.java
4.41 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
package com.zteits.park.event;
import java.util.Date;
import com.clouds.common.constants.dutyroster.DutyRosterEnum.SignStateEnum;
import org.springframework.context.ApplicationEvent;
/**
* Copyright: Copyright (c) 2019 zteits
*
* @ClassName: com.zteits.park.event
* @Description:
* @version: v1.0.0
* @author: atao
* @date: 2019-03-14 11:47
* Modification History:
* Date Author Version Description
* ---------------------------------------------------------*
* 2019-03-14 atao v1.0.0 创建
*/
public class ChargerSignEvent extends ApplicationEvent {
/**
* 签到状态 签到 还是签退 必填
*/
private SignStateEnum signState;
/**
* 相关收费员编码 必填
*/
private String chargerCode;
/**
* 相关收费员名称 选填
*/
private String chargerName;
/**
* 泊位区间编码 必填
*/
private String berthRangeNo;
/**
* 签到或签退时间 必填
*/
private Date signTime;
/**
* 签到距离中心点的距离 选填
*/
private Integer distance;
/**
* 纬度
*/
private Double latid;
/**
* 经度
*/
private Double lonid;
/**
* 签到记录ID 发送签退事件的时候 必填
*/
private Long signRecordId;
/**
* 签到明细记录 必填
*/
private Long signRecordDetailId;
public ChargerSignEvent(SignStateEnum signState, String chargerCode,
Date signTime,String berthRangeNo) {
super(new Object());
this.signState = signState;
this.chargerCode = chargerCode;
this.signTime = signTime;
this.berthRangeNo = berthRangeNo;
}
public ChargerSignEvent(SignStateEnum signState, String chargerCode,
Date signTime, String berthRangeNo,Long signRecordId,Long signRecordDetailId) {
super(new Object());
this.signState = signState;
this.chargerCode = chargerCode;
this.signTime = signTime;
this.signRecordDetailId = signRecordDetailId;
this.signRecordId = signRecordId;
this.berthRangeNo = berthRangeNo;
}
public ChargerSignEvent(Object source, SignStateEnum signState, String chargerCode, String chargerName,
String berthRangeNo, Date signTime, Integer distance, Double latid, Double lonid, Long signRecordId,Long signRecordDetailId) {
super(source);
this.signState = signState;
this.chargerCode = chargerCode;
this.chargerName = chargerName;
this.berthRangeNo = berthRangeNo;
this.signTime = signTime;
this.distance = distance;
this.latid = latid;
this.lonid = lonid;
this.signRecordDetailId = signRecordDetailId;
this.signRecordId = signRecordId;
}
public SignStateEnum getSignState() {
return signState;
}
public void setSignState(SignStateEnum signState) {
this.signState = signState;
}
public String getChargerCode() {
return chargerCode;
}
public void setChargerCode(String chargerCode) {
this.chargerCode = chargerCode;
}
public String getChargerName() {
return chargerName;
}
public void setChargerName(String chargerName) {
this.chargerName = chargerName;
}
public Date getSignTime() {
return signTime;
}
public void setSignTime(Date signTime) {
this.signTime = signTime;
}
public Integer getDistance() {
return distance;
}
public void setDistance(Integer distance) {
this.distance = distance;
}
public Double getLatid() {
return latid;
}
public void setLatid(Double latid) {
this.latid = latid;
}
public Double getLonid() {
return lonid;
}
public void setLonid(Double lonid) {
this.lonid = lonid;
}
public Long getSignRecordId() {
return signRecordId;
}
public void setSignRecordId(Long signRecordId) {
this.signRecordId = signRecordId;
}
public String getBerthRangeNo() {
return berthRangeNo;
}
public void setBerthRangeNo(String berthRangeNo) {
this.berthRangeNo = berthRangeNo;
}
public Long getSignRecordDetailId() {
return signRecordDetailId;
}
public void setSignRecordDetailId(Long signRecordDetailId) {
this.signRecordDetailId = signRecordDetailId;
}
}