| 30158 |
manish |
1 |
package com.spice.profitmandi.dao.model;
|
|
|
2 |
|
|
|
3 |
import java.time.LocalDateTime;
|
|
|
4 |
|
|
|
5 |
|
|
|
6 |
public class PriceDropReportModel {
|
|
|
7 |
|
|
|
8 |
private String code;
|
|
|
9 |
private int id;
|
|
|
10 |
private String brand;
|
|
|
11 |
private String modelName;
|
|
|
12 |
private String modelNumber;
|
|
|
13 |
private LocalDateTime affectedOn;
|
|
|
14 |
private float amount;
|
|
|
15 |
|
|
|
16 |
private float partnerPayout;
|
|
|
17 |
|
|
|
18 |
private String imei;
|
|
|
19 |
private String status;
|
|
|
20 |
private LocalDateTime updateTimestamp;
|
|
|
21 |
private String rejectionReason;
|
|
|
22 |
public String getCode() {
|
|
|
23 |
return code;
|
|
|
24 |
}
|
|
|
25 |
public void setCode(String code) {
|
|
|
26 |
this.code = code;
|
|
|
27 |
}
|
|
|
28 |
public int getId() {
|
|
|
29 |
return id;
|
|
|
30 |
}
|
|
|
31 |
public void setId(int id) {
|
|
|
32 |
this.id = id;
|
|
|
33 |
}
|
|
|
34 |
public String getBrand() {
|
|
|
35 |
return brand;
|
|
|
36 |
}
|
|
|
37 |
public void setBrand(String brand) {
|
|
|
38 |
this.brand = brand;
|
|
|
39 |
}
|
|
|
40 |
public String getModelName() {
|
|
|
41 |
return modelName;
|
|
|
42 |
}
|
|
|
43 |
public void setModelName(String modelName) {
|
|
|
44 |
this.modelName = modelName;
|
|
|
45 |
}
|
|
|
46 |
public String getModelNumber() {
|
|
|
47 |
return modelNumber;
|
|
|
48 |
}
|
|
|
49 |
public void setModelNumber(String modelNumber) {
|
|
|
50 |
this.modelNumber = modelNumber;
|
|
|
51 |
}
|
|
|
52 |
public LocalDateTime getAffectedOn() {
|
|
|
53 |
return affectedOn;
|
|
|
54 |
}
|
|
|
55 |
public void setAffectedOn(LocalDateTime affectedOn) {
|
|
|
56 |
this.affectedOn = affectedOn;
|
|
|
57 |
}
|
|
|
58 |
public float getAmount() {
|
|
|
59 |
return amount;
|
|
|
60 |
}
|
|
|
61 |
public void setAmount(float amount) {
|
|
|
62 |
this.amount = amount;
|
|
|
63 |
}
|
|
|
64 |
public float getPartnerPayout() {
|
|
|
65 |
return partnerPayout;
|
|
|
66 |
}
|
|
|
67 |
public void setPartnerPayout(float partnerPayout) {
|
|
|
68 |
this.partnerPayout = partnerPayout;
|
|
|
69 |
}
|
|
|
70 |
public String getImei() {
|
|
|
71 |
return imei;
|
|
|
72 |
}
|
|
|
73 |
public void setImei(String imei) {
|
|
|
74 |
this.imei = imei;
|
|
|
75 |
}
|
|
|
76 |
public String getStatus() {
|
|
|
77 |
return status;
|
|
|
78 |
}
|
|
|
79 |
public void setStatus(String status) {
|
|
|
80 |
this.status = status;
|
|
|
81 |
}
|
|
|
82 |
public LocalDateTime getUpdateTimestamp() {
|
|
|
83 |
return updateTimestamp;
|
|
|
84 |
}
|
|
|
85 |
public void setUpdateTimestamp(LocalDateTime updateTimestamp) {
|
|
|
86 |
this.updateTimestamp = updateTimestamp;
|
|
|
87 |
}
|
|
|
88 |
public String getRejectionReason() {
|
|
|
89 |
return rejectionReason;
|
|
|
90 |
}
|
|
|
91 |
public void setRejectionReason(String rejectionReason) {
|
|
|
92 |
this.rejectionReason = rejectionReason;
|
|
|
93 |
}
|
|
|
94 |
@Override
|
|
|
95 |
public String toString() {
|
|
|
96 |
return "PriceDropReportModel [code=" + code + ", id=" + id + ", brand=" + brand + ", modelName=" + modelName
|
|
|
97 |
+ ", modelNumber=" + modelNumber + ", affectedOn=" + affectedOn + ", amount=" + amount
|
|
|
98 |
+ ", partnerPayout=" + partnerPayout + ", imei=" + imei + ", status=" + status + ", updateTimestamp="
|
|
|
99 |
+ updateTimestamp + ", rejectionReason=" + rejectionReason + "]";
|
|
|
100 |
}
|
|
|
101 |
@Override
|
|
|
102 |
public int hashCode() {
|
|
|
103 |
final int prime = 31;
|
|
|
104 |
int result = 1;
|
|
|
105 |
result = prime * result + ((affectedOn == null) ? 0 : affectedOn.hashCode());
|
|
|
106 |
result = prime * result + Float.floatToIntBits(amount);
|
|
|
107 |
result = prime * result + ((brand == null) ? 0 : brand.hashCode());
|
|
|
108 |
result = prime * result + ((code == null) ? 0 : code.hashCode());
|
|
|
109 |
result = prime * result + id;
|
|
|
110 |
result = prime * result + ((imei == null) ? 0 : imei.hashCode());
|
|
|
111 |
result = prime * result + ((modelName == null) ? 0 : modelName.hashCode());
|
|
|
112 |
result = prime * result + ((modelNumber == null) ? 0 : modelNumber.hashCode());
|
|
|
113 |
result = prime * result + Float.floatToIntBits(partnerPayout);
|
|
|
114 |
result = prime * result + ((rejectionReason == null) ? 0 : rejectionReason.hashCode());
|
|
|
115 |
result = prime * result + ((status == null) ? 0 : status.hashCode());
|
|
|
116 |
result = prime * result + ((updateTimestamp == null) ? 0 : updateTimestamp.hashCode());
|
|
|
117 |
return result;
|
|
|
118 |
}
|
|
|
119 |
@Override
|
|
|
120 |
public boolean equals(Object obj) {
|
|
|
121 |
if (this == obj)
|
|
|
122 |
return true;
|
|
|
123 |
if (obj == null)
|
|
|
124 |
return false;
|
|
|
125 |
if (getClass() != obj.getClass())
|
|
|
126 |
return false;
|
|
|
127 |
PriceDropReportModel other = (PriceDropReportModel) obj;
|
|
|
128 |
if (affectedOn == null) {
|
|
|
129 |
if (other.affectedOn != null)
|
|
|
130 |
return false;
|
|
|
131 |
} else if (!affectedOn.equals(other.affectedOn))
|
|
|
132 |
return false;
|
|
|
133 |
if (Float.floatToIntBits(amount) != Float.floatToIntBits(other.amount))
|
|
|
134 |
return false;
|
|
|
135 |
if (brand == null) {
|
|
|
136 |
if (other.brand != null)
|
|
|
137 |
return false;
|
|
|
138 |
} else if (!brand.equals(other.brand))
|
|
|
139 |
return false;
|
|
|
140 |
if (code == null) {
|
|
|
141 |
if (other.code != null)
|
|
|
142 |
return false;
|
|
|
143 |
} else if (!code.equals(other.code))
|
|
|
144 |
return false;
|
|
|
145 |
if (id != other.id)
|
|
|
146 |
return false;
|
|
|
147 |
if (imei == null) {
|
|
|
148 |
if (other.imei != null)
|
|
|
149 |
return false;
|
|
|
150 |
} else if (!imei.equals(other.imei))
|
|
|
151 |
return false;
|
|
|
152 |
if (modelName == null) {
|
|
|
153 |
if (other.modelName != null)
|
|
|
154 |
return false;
|
|
|
155 |
} else if (!modelName.equals(other.modelName))
|
|
|
156 |
return false;
|
|
|
157 |
if (modelNumber == null) {
|
|
|
158 |
if (other.modelNumber != null)
|
|
|
159 |
return false;
|
|
|
160 |
} else if (!modelNumber.equals(other.modelNumber))
|
|
|
161 |
return false;
|
|
|
162 |
if (Float.floatToIntBits(partnerPayout) != Float.floatToIntBits(other.partnerPayout))
|
|
|
163 |
return false;
|
|
|
164 |
if (rejectionReason == null) {
|
|
|
165 |
if (other.rejectionReason != null)
|
|
|
166 |
return false;
|
|
|
167 |
} else if (!rejectionReason.equals(other.rejectionReason))
|
|
|
168 |
return false;
|
|
|
169 |
if (status == null) {
|
|
|
170 |
if (other.status != null)
|
|
|
171 |
return false;
|
|
|
172 |
} else if (!status.equals(other.status))
|
|
|
173 |
return false;
|
|
|
174 |
if (updateTimestamp == null) {
|
|
|
175 |
if (other.updateTimestamp != null)
|
|
|
176 |
return false;
|
|
|
177 |
} else if (!updateTimestamp.equals(other.updateTimestamp))
|
|
|
178 |
return false;
|
|
|
179 |
return true;
|
|
|
180 |
}
|
|
|
181 |
public PriceDropReportModel() {
|
|
|
182 |
super();
|
|
|
183 |
// TODO Auto-generated constructor stub
|
|
|
184 |
}
|
|
|
185 |
public PriceDropReportModel(String code, int id, String brand, String modelName, String modelNumber,
|
|
|
186 |
LocalDateTime affectedOn, float amount, float partnerPayout, String imei, String status,
|
|
|
187 |
LocalDateTime updateTimestamp, String rejectionReason) {
|
|
|
188 |
super();
|
|
|
189 |
this.code = code;
|
|
|
190 |
this.id = id;
|
|
|
191 |
this.brand = brand;
|
|
|
192 |
this.modelName = modelName;
|
|
|
193 |
this.modelNumber = modelNumber;
|
|
|
194 |
this.affectedOn = affectedOn;
|
|
|
195 |
this.amount = amount;
|
|
|
196 |
this.partnerPayout = partnerPayout;
|
|
|
197 |
this.imei = imei;
|
|
|
198 |
this.status = status;
|
|
|
199 |
this.updateTimestamp = updateTimestamp;
|
|
|
200 |
this.rejectionReason = rejectionReason;
|
|
|
201 |
}
|
|
|
202 |
|
|
|
203 |
|
|
|
204 |
|
|
|
205 |
|
|
|
206 |
}
|