Subversion Repositories SmartDukaan

Rev

Rev 35971 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
33507 tejus.loha 1
package com.spice.profitmandi.dao.entity.onBoarding;
2
 
3
import com.spice.profitmandi.common.enumuration.BusinessType;
37523 ranu 4
import com.spice.profitmandi.dao.enumuration.onBorading.OnboardingType;
33507 tejus.loha 5
import com.spice.profitmandi.dao.enumuration.onBorading.onBoardingFormEnums.LoiStatus;
6
import com.spice.profitmandi.dao.enumuration.onBorading.onBoardingFormEnums.StoreType;
7
 
8
import javax.persistence.*;
9
import java.time.LocalDate;
10
import java.time.LocalDateTime;
11
import java.util.Objects;
12
 
13
@Entity
14
@Table(name = "fofo.loi_form")
15
public class LoiForm {
16
    @Id
17
    @GeneratedValue(strategy = GenerationType.IDENTITY)
18
    @Column(name = "id")
19
    private int id;
20
    @Column(name = "referId")
21
    private int referId;
22
    @Column(name = "referBy")
23
    private String referBy;
33577 tejus.loha 24
    @Column(name = "filledBy")
25
    private String filledBy;
33507 tejus.loha 26
    @Column(name = "businessType")
27
    @Enumerated(EnumType.STRING)
28
    private BusinessType businessType;
29
    @Column(name = "acquiredDate")
30
    private LocalDateTime acquiredDate;
31
    @Column(name = "firstName")
32
    private String firstName;
33
    @Column(name = "lastName")
34
    private String lastName;
35
    @Transient
36
    private String fullName;
37
    @Column(name = "mobile")
38
    private long mobile;
39
    @Column(name = "landline")
40
    private long landline;
41
    @Column(name = "email")
42
    private String email;
43
    @Column(name = "dob")
44
    private LocalDate dob;
45
    @Column(name = "anniversaryDate")
46
    private LocalDate anniversaryDate;
47
    @Column(name = "panNo")
48
    private String panNo;
49
    @Column(name = "adharNo")
50
    private long adharNo;
51
    @Column(name = "gstNo")
52
    private String gstNo;
53
    @Column(name = "companyName")
54
    private String companyName;
55
    @Column(name = "gstPin")
56
    private int gstPin;
57
    @Column(name = "gstState")
58
    private String gstState;
59
    @Column(name = "gstDistrict")
60
    private String gstDistrict;
61
    @Column(name = "gstCity")
62
    private String gstCity;
63
    @Column(name = "bankName")
64
    private String bankName;
65
    @Column(name = "ifscCode")
66
    private String ifscCode;
67
    @Column(name = "accountNo")
68
    private long accountNo;
69
    @Column(name = "AWValue")
70
    private int agreeWalletValue;
71
    @Column(name = "storeArea")
72
    private double storeArea;
73
    @Column(name = "storePotential")
74
    private double storePotential;
75
    @Column(name = "agreedBrandFees")
76
    private double agreedBrandFees;
77
    @Column(name = "brandType")
78
    @Enumerated(EnumType.STRING)
79
    private StoreType brandType;
80
    @Column(name = "brandFeeId")
81
    private int brandFeeId;
82
    @Column(name = "status")
83
    @Enumerated(EnumType.STRING)
84
    private LoiStatus Status;
85
    @Column(name = "loiSignedOn")
86
    private LocalDateTime loiSignedOn;
87
    @Column(name = "loiSignOtp")
88
    private String loiSignOtp;
89
    @Column(name = "loiGeneratedOn")
90
    private LocalDateTime loiGeneratedOn;
91
    @Column(name = "loiDoc")
92
    private int loiDoc;
93
    @Column(name = "lessCommitReason")
94
    private String lessCommitReason;
33710 tejus.loha 95
    @Column(name = "onBoarding_id")
96
    private int onBoardingId;
33845 tejus.loha 97
    @Column(name = "createOn")
98
    private LocalDateTime createOn;
99
    @Column(name = "loiApprover")
100
    private String loiApprover;
101
    @Column(name = "loiApproved")
102
    private boolean loiApproved;
34107 tejus.loha 103
    @Column(name = "state_head")
104
    private int stateHead;
105
    @Column(name = "bdm")
106
    private int bdm;
37523 ranu 107
    @Column(name = "onboarding_type")
108
    @Enumerated(EnumType.STRING)
109
    private OnboardingType onboardingType = OnboardingType.NEW;
110
    @Column(name = "old_store_code")
111
    private String oldStoreCode;
112
    @Column(name = "revival_reason")
113
    private String revivalReason;
33507 tejus.loha 114
 
33845 tejus.loha 115
    public boolean isLoiApproved() {
116
        return loiApproved;
117
    }
118
 
119
    public void setLoiApproved(boolean loiApproved) {
120
        this.loiApproved = loiApproved;
121
    }
122
 
123
    public String getLoiApprover() {
124
        return loiApprover;
125
    }
126
 
127
    public void setLoiApprover(String loiApprover) {
128
        this.loiApprover = loiApprover;
129
    }
130
 
131
    public LocalDateTime getCreateOn() {
132
        return createOn;
133
    }
134
 
135
    public void setCreateOn(LocalDateTime createOn) {
136
        this.createOn = createOn;
137
    }
138
 
33710 tejus.loha 139
    public int getOnBoardingId() {
140
        return onBoardingId;
141
    }
33658 tejus.loha 142
 
33710 tejus.loha 143
    public void setOnBoardingId(int onBoardingId) {
144
        this.onBoardingId = onBoardingId;
145
    }
146
 
33507 tejus.loha 147
    public int getBrandFeeId() {
148
        return brandFeeId;
149
    }
150
 
151
    public void setBrandFeeId(int brandFeeId) {
152
        this.brandFeeId = brandFeeId;
153
    }
154
 
155
    public String getLessCommitReason() {
156
        return lessCommitReason;
157
    }
158
 
159
    public void setLessCommitReason(String lessCommitReason) {
160
        this.lessCommitReason = lessCommitReason;
161
    }
162
 
163
 
164
    public int getId() {
165
        return id;
166
    }
167
 
168
    public void setId(int id) {
169
        this.id = id;
170
    }
171
 
172
    public int getReferId() {
173
        return referId;
174
    }
175
 
176
    public void setReferId(int referId) {
177
        this.referId = referId;
178
    }
179
 
180
    public String getReferBy() {
181
        return referBy;
182
    }
183
 
184
    public void setReferBy(String referBy) {
185
        this.referBy = referBy;
186
    }
187
 
33577 tejus.loha 188
    public String getFilledBy() {
189
        return filledBy;
190
    }
191
 
192
    public void setFilledBy(String filledBy) {
193
        this.filledBy = filledBy;
194
    }
195
 
33507 tejus.loha 196
    public BusinessType getBusinessType() {
197
        return businessType;
198
    }
199
 
200
    public void setBusinessType(BusinessType businessType) {
201
        this.businessType = businessType;
202
    }
203
 
204
    public LocalDateTime getAcquiredDate() {
205
        return acquiredDate;
206
    }
207
 
208
    public void setAcquiredDate(LocalDateTime acquiredDate) {
209
        this.acquiredDate = acquiredDate;
210
    }
211
 
212
    public String getFirstName() {
213
        return firstName;
214
    }
215
 
216
    public void setFirstName(String firstName) {
217
        this.firstName = firstName;
218
    }
219
 
220
    public long getMobile() {
221
        return mobile;
222
    }
223
 
224
    public void setMobile(long mobile) {
225
        this.mobile = mobile;
226
    }
227
 
228
    public String getFullName() {
229
        return firstName + " " + lastName;
230
    }
231
 
232
    public void setFullName(String fullName) {
233
        this.fullName = fullName;
234
    }
235
 
236
    public int getAgreeWalletValue() {
237
        return agreeWalletValue;
238
    }
239
 
240
    public void setAgreeWalletValue(int agreeWalletValue) {
241
        this.agreeWalletValue = agreeWalletValue;
242
    }
243
 
244
    public LocalDate getDob() {
245
        return dob;
246
    }
247
 
248
    public void setDob(LocalDate dob) {
249
        this.dob = dob;
250
    }
251
 
252
    public long getLandline() {
253
        return landline;
254
    }
255
 
256
    public void setLandline(long landline) {
257
        this.landline = landline;
258
    }
259
 
260
    public String getEmail() {
261
        return email;
262
    }
263
 
264
    public void setEmail(String email) {
265
        this.email = email;
266
    }
267
 
268
    public LocalDate getAnniversaryDate() {
269
        return anniversaryDate;
270
    }
271
 
272
    public void setAnniversaryDate(LocalDate anniversaryDate) {
273
        this.anniversaryDate = anniversaryDate;
274
    }
275
 
276
    public String getPanNo() {
277
        return panNo;
278
    }
279
 
280
    public void setPanNo(String panNo) {
281
        this.panNo = panNo;
282
    }
283
 
284
    public long getAdharNo() {
285
        return adharNo;
286
    }
287
 
288
    public void setAdharNo(long adharNo) {
289
        this.adharNo = adharNo;
290
    }
291
 
292
    public String getGstNo() {
293
        return gstNo;
294
    }
295
 
296
    public void setGstNo(String gstNo) {
297
        this.gstNo = gstNo;
298
    }
299
 
300
    public String getCompanyName() {
301
        return companyName;
302
    }
303
 
304
    public void setCompanyName(String companyName) {
305
        this.companyName = companyName;
306
    }
307
 
308
    public String getGstState() {
309
        return gstState;
310
    }
311
 
312
    public void setGstState(String gstState) {
313
        this.gstState = gstState;
314
    }
315
 
316
    public String getGstDistrict() {
317
        return gstDistrict;
318
    }
319
 
320
    public void setGstDistrict(String gstDistrict) {
321
        this.gstDistrict = gstDistrict;
322
    }
323
 
324
    public String getGstCity() {
325
        return gstCity;
326
    }
327
 
328
    public void setGstCity(String gstCity) {
329
        this.gstCity = gstCity;
330
    }
331
 
332
    public String getLastName() {
333
        return lastName;
334
    }
335
 
336
    public void setLastName(String lastName) {
337
        this.lastName = lastName;
338
    }
339
 
340
    public int getGstPin() {
341
        return gstPin;
342
    }
343
 
344
    public void setGstPin(int gstPin) {
345
        this.gstPin = gstPin;
346
    }
347
 
348
    public String getBankName() {
349
        return bankName;
350
    }
351
 
352
    public void setBankName(String bankName) {
353
        this.bankName = bankName;
354
    }
355
 
356
    public String getIfscCode() {
357
        return ifscCode;
358
    }
359
 
360
    public void setIfscCode(String ifscCode) {
361
        this.ifscCode = ifscCode;
362
    }
363
 
364
    public long getAccountNo() {
365
        return accountNo;
366
    }
367
 
368
    public void setAccountNo(long accountNo) {
369
        this.accountNo = accountNo;
370
    }
371
 
372
    public double getStoreArea() {
373
        return storeArea;
374
    }
375
 
376
    public void setStoreArea(double storeArea) {
377
        this.storeArea = storeArea;
378
    }
379
 
380
    public double getStorePotential() {
381
        return storePotential;
382
    }
383
 
384
    public void setStorePotential(double storePotential) {
385
        this.storePotential = storePotential;
386
    }
387
 
388
 
389
    public StoreType getBrandType() {
390
        return brandType;
391
    }
392
 
393
    public void setBrandType(StoreType brandType) {
394
        this.brandType = brandType;
395
    }
396
 
397
    public double getAgreedBrandFees() {
398
        return agreedBrandFees;
399
    }
400
 
401
    public void setAgreedBrandFees(double agreedBrandFees) {
402
        this.agreedBrandFees = agreedBrandFees;
403
    }
404
 
405
    public LoiStatus getStatus() {
406
        return Status;
407
    }
408
 
409
    public void setStatus(LoiStatus status) {
410
        this.Status = status;
411
    }
412
 
413
    public LocalDateTime getLoiSignedOn() {
414
        return loiSignedOn;
415
    }
416
 
417
    public void setLoiSignedOn(LocalDateTime loiSignedOn) {
418
        this.loiSignedOn = loiSignedOn;
419
    }
420
 
421
    public LocalDateTime getLoiGeneratedOn() {
422
        return loiGeneratedOn;
423
    }
424
 
425
    public void setLoiGeneratedOn(LocalDateTime loiGeneratedOn) {
426
        this.loiGeneratedOn = loiGeneratedOn;
427
    }
428
 
429
    public String getLoiSignOtp() {
430
        return loiSignOtp;
431
    }
432
 
433
    public void setLoiSignOtp(String loiSignOtp) {
434
        this.loiSignOtp = loiSignOtp;
435
    }
436
 
437
 
438
    public int getLoiDoc() {
439
        return loiDoc;
440
    }
441
 
442
    public void setLoiDoc(int loiDoc) {
443
        this.loiDoc = loiDoc;
444
    }
445
 
34107 tejus.loha 446
    public int getStateHead() {
447
        return stateHead;
448
    }
449
    public void setStateHead(int stateHead) {
450
        this.stateHead = stateHead;
451
    }
452
    public int getBdm() {
453
        return bdm;
454
    }
455
    public void setBdm(int bdm) {
456
        this.bdm = bdm;
457
    }
458
 
37523 ranu 459
    public OnboardingType getOnboardingType() {
460
        return onboardingType;
461
    }
462
 
463
    public void setOnboardingType(OnboardingType onboardingType) {
464
        this.onboardingType = onboardingType;
465
    }
466
 
467
    public String getOldStoreCode() {
468
        return oldStoreCode;
469
    }
470
 
471
    public void setOldStoreCode(String oldStoreCode) {
472
        this.oldStoreCode = oldStoreCode;
473
    }
474
 
475
    public String getRevivalReason() {
476
        return revivalReason;
477
    }
478
 
479
    public void setRevivalReason(String revivalReason) {
480
        this.revivalReason = revivalReason;
481
    }
482
 
33507 tejus.loha 483
    @Override
484
    public boolean equals(Object o) {
485
        if (this == o) return true;
486
        if (o == null || getClass() != o.getClass()) return false;
487
        LoiForm that = (LoiForm) o;
488
        return referId == that.referId;
489
    }
490
 
491
    @Override
492
    public int hashCode() {
493
        return Objects.hash(referId);
494
    }
495
 
496
    @Override
497
    public String toString() {
498
        return "LoiForm{" +
499
                "id=" + id +
500
                ", referId=" + referId +
501
                ", referBy='" + referBy + '\'' +
33658 tejus.loha 502
                ", filledBy='" + filledBy + '\'' +
34107 tejus.loha 503
                ", state head='" + stateHead + '\'' +
504
                ", bdm='" + bdm + '\'' +
33507 tejus.loha 505
                ", businessType=" + businessType +
506
                ", acquiredDate=" + acquiredDate +
507
                ", firstName='" + firstName + '\'' +
508
                ", lastName='" + lastName + '\'' +
509
                ", fullName='" + fullName + '\'' +
510
                ", mobile=" + mobile +
511
                ", landline=" + landline +
512
                ", email='" + email + '\'' +
513
                ", dob=" + dob +
514
                ", anniversaryDate=" + anniversaryDate +
515
                ", panNo='" + panNo + '\'' +
516
                ", adharNo=" + adharNo +
517
                ", gstNo='" + gstNo + '\'' +
518
                ", companyName='" + companyName + '\'' +
519
                ", gstPin=" + gstPin +
520
                ", gstState='" + gstState + '\'' +
521
                ", gstDistrict='" + gstDistrict + '\'' +
522
                ", gstCity='" + gstCity + '\'' +
523
                ", bankName='" + bankName + '\'' +
524
                ", ifscCode='" + ifscCode + '\'' +
525
                ", accountNo=" + accountNo +
526
                ", agreeWalletValue=" + agreeWalletValue +
527
                ", storeArea=" + storeArea +
528
                ", storePotential=" + storePotential +
529
                ", agreedBrandFees=" + agreedBrandFees +
530
                ", brandType=" + brandType +
531
                ", brandFeeId=" + brandFeeId +
532
                ", Status=" + Status +
533
                ", loiSignedOn=" + loiSignedOn +
534
                ", loiSignOtp='" + loiSignOtp + '\'' +
535
                ", loiGeneratedOn=" + loiGeneratedOn +
536
                ", loiDoc=" + loiDoc +
537
                ", lessCommitReason='" + lessCommitReason + '\'' +
33845 tejus.loha 538
                ", onBoardingId=" + onBoardingId +
539
                ", createOn=" + createOn +
33507 tejus.loha 540
                '}';
541
    }
542
}