Subversion Repositories SmartDukaan

Rev

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