Subversion Repositories SmartDukaan

Rev

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