Subversion Repositories SmartDukaan

Rev

Rev 33578 | Rev 33710 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 33578 Rev 33658
Line 1... Line 1...
1
package com.spice.profitmandi.dao.entity.onBoarding;
1
package com.spice.profitmandi.dao.entity.onBoarding;
2
 
2
 
3
import com.spice.profitmandi.common.enumuration.BusinessType;
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;
4
import com.spice.profitmandi.dao.enumuration.onBorading.onBoardingFormEnums.LoiStatus;
6
import com.spice.profitmandi.dao.enumuration.onBorading.onBoardingFormEnums.StoreType;
5
import com.spice.profitmandi.dao.enumuration.onBorading.onBoardingFormEnums.StoreType;
7
 
6
 
8
import javax.persistence.*;
7
import javax.persistence.*;
9
import java.time.LocalDate;
8
import java.time.LocalDate;
10
import java.time.LocalDateTime;
9
import java.time.LocalDateTime;
11
import java.util.List;
-
 
12
import java.util.Objects;
10
import java.util.Objects;
13
 
11
 
14
@Entity
12
@Entity
15
@Table(name = "fofo.loi_form")
13
@Table(name = "fofo.loi_form")
16
public class LoiForm {
14
public class LoiForm {
Line 71... Line 69...
71
    private int agreeWalletValue;
69
    private int agreeWalletValue;
72
    @Column(name = "storeArea")
70
    @Column(name = "storeArea")
73
    private double storeArea;
71
    private double storeArea;
74
    @Column(name = "storePotential")
72
    @Column(name = "storePotential")
75
    private double storePotential;
73
    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")
74
    @Column(name = "agreedBrandFees")
91
    private double agreedBrandFees;
75
    private double agreedBrandFees;
92
    @Column(name = "brandType")
76
    @Column(name = "brandType")
93
    @Enumerated(EnumType.STRING)
77
    @Enumerated(EnumType.STRING)
94
    private StoreType brandType;
78
    private StoreType brandType;
95
    @Column(name = "brandFeeId")
79
    @Column(name = "brandFeeId")
96
    private int brandFeeId;
80
    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")
81
    @Column(name = "status")
103
    @Enumerated(EnumType.STRING)
82
    @Enumerated(EnumType.STRING)
104
    private LoiStatus Status;
83
    private LoiStatus Status;
105
    @Column(name = "loiSignedOn")
84
    @Column(name = "loiSignedOn")
106
    private LocalDateTime loiSignedOn;
85
    private LocalDateTime loiSignedOn;
Line 110... Line 89...
110
    private LocalDateTime loiGeneratedOn;
89
    private LocalDateTime loiGeneratedOn;
111
    @Column(name = "loiGeneratedBy")
90
    @Column(name = "loiGeneratedBy")
112
    private int loiGeneratedBy;
91
    private int loiGeneratedBy;
113
    @Column(name = "loiDoc")
92
    @Column(name = "loiDoc")
114
    private int loiDoc;
93
    private int loiDoc;
115
    @OneToMany(mappedBy = "loiForm", cascade = CascadeType.ALL, fetch = FetchType.LAZY)
-
 
116
    private List<LoiDoc> loiDocs;
-
 
117
    @Column(name = "lessCommitReason")
94
    @Column(name = "lessCommitReason")
118
    private String lessCommitReason;
95
    private String lessCommitReason;
119
 
96
 
-
 
97
 
120
    public int getBrandFeeId() {
98
    public int getBrandFeeId() {
121
        return brandFeeId;
99
        return brandFeeId;
122
    }
100
    }
123
 
101
 
124
    public void setBrandFeeId(int brandFeeId) {
102
    public void setBrandFeeId(int brandFeeId) {
Line 131... Line 109...
131
 
109
 
132
    public void setLessCommitReason(String lessCommitReason) {
110
    public void setLessCommitReason(String lessCommitReason) {
133
        this.lessCommitReason = lessCommitReason;
111
        this.lessCommitReason = lessCommitReason;
134
    }
112
    }
135
 
113
 
136
    public BillingAddress getBillingAddress() {
-
 
137
        return billingAddress;
-
 
138
    }
-
 
139
 
-
 
140
    public void setBillingAddress(BillingAddress billingAddress) {
-
 
141
        this.billingAddress = billingAddress;
-
 
142
    }
-
 
143
 
114
 
144
    public int getId() {
115
    public int getId() {
145
        return id;
116
        return id;
146
    }
117
    }
147
 
118
 
Line 363... Line 334...
363
 
334
 
364
    public void setStorePotential(double storePotential) {
335
    public void setStorePotential(double storePotential) {
365
        this.storePotential = storePotential;
336
        this.storePotential = storePotential;
366
    }
337
    }
367
 
338
 
368
    public double getVivoCommitmentAmount() {
-
 
369
        return vivoCommitmentAmount;
-
 
370
    }
-
 
371
 
339
 
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
 
340
 
425
    public StoreType getBrandType() {
341
    public StoreType getBrandType() {
426
        return brandType;
342
        return brandType;
427
    }
343
    }
428
 
344
 
Line 436... Line 352...
436
 
352
 
437
    public void setAgreedBrandFees(double agreedBrandFees) {
353
    public void setAgreedBrandFees(double agreedBrandFees) {
438
        this.agreedBrandFees = agreedBrandFees;
354
        this.agreedBrandFees = agreedBrandFees;
439
    }
355
    }
440
 
356
 
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() {
357
    public LoiStatus getStatus() {
450
        return Status;
358
        return Status;
451
    }
359
    }
452
 
360
 
453
    public void setStatus(LoiStatus status) {
361
    public void setStatus(LoiStatus status) {
Line 476... Line 384...
476
 
384
 
477
    public void setLoiSignOtp(String loiSignOtp) {
385
    public void setLoiSignOtp(String loiSignOtp) {
478
        this.loiSignOtp = loiSignOtp;
386
        this.loiSignOtp = loiSignOtp;
479
    }
387
    }
480
 
388
 
481
    public int getLoiGeneratedBy() {
-
 
482
        return loiGeneratedBy;
-
 
483
    }
-
 
484
 
-
 
485
    public void setLoiGeneratedBy(int loiGeneratedBy) {
389
    public void setLoiGeneratedBy(int loiGeneratedBy) {
486
        this.loiGeneratedBy = loiGeneratedBy;
390
        this.loiGeneratedBy = loiGeneratedBy;
487
    }
391
    }
488
 
392
 
489
    public int getLoiDoc() {
393
    public int getLoiDoc() {
Line 492... Line 396...
492
 
396
 
493
    public void setLoiDoc(int loiDoc) {
397
    public void setLoiDoc(int loiDoc) {
494
        this.loiDoc = loiDoc;
398
        this.loiDoc = loiDoc;
495
    }
399
    }
496
 
400
 
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
401
    @Override
506
    public boolean equals(Object o) {
402
    public boolean equals(Object o) {
507
        if (this == o) return true;
403
        if (this == o) return true;
508
        if (o == null || getClass() != o.getClass()) return false;
404
        if (o == null || getClass() != o.getClass()) return false;
509
        LoiForm that = (LoiForm) o;
405
        LoiForm that = (LoiForm) o;
Line 519... Line 415...
519
    public String toString() {
415
    public String toString() {
520
        return "LoiForm{" +
416
        return "LoiForm{" +
521
                "id=" + id +
417
                "id=" + id +
522
                ", referId=" + referId +
418
                ", referId=" + referId +
523
                ", referBy='" + referBy + '\'' +
419
                ", referBy='" + referBy + '\'' +
-
 
420
                ", filledBy='" + filledBy + '\'' +
524
                ", businessType=" + businessType +
421
                ", businessType=" + businessType +
525
                ", acquiredDate=" + acquiredDate +
422
                ", acquiredDate=" + acquiredDate +
526
                ", firstName='" + firstName + '\'' +
423
                ", firstName='" + firstName + '\'' +
527
                ", lastName='" + lastName + '\'' +
424
                ", lastName='" + lastName + '\'' +
528
                ", fullName='" + fullName + '\'' +
425
                ", fullName='" + fullName + '\'' +
Line 543... Line 440...
543
                ", ifscCode='" + ifscCode + '\'' +
440
                ", ifscCode='" + ifscCode + '\'' +
544
                ", accountNo=" + accountNo +
441
                ", accountNo=" + accountNo +
545
                ", agreeWalletValue=" + agreeWalletValue +
442
                ", agreeWalletValue=" + agreeWalletValue +
546
                ", storeArea=" + storeArea +
443
                ", storeArea=" + storeArea +
547
                ", storePotential=" + storePotential +
444
                ", 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 +
445
                ", agreedBrandFees=" + agreedBrandFees +
556
                ", brandType=" + brandType +
446
                ", brandType=" + brandType +
557
                ", brandFeeId=" + brandFeeId +
447
                ", brandFeeId=" + brandFeeId +
558
                ", billingAddress=" + billingAddress +
-
 
559
                ", brandFeeCollection=" + brandFeeCollection +
-
 
560
                ", Status=" + Status +
448
                ", Status=" + Status +
561
                ", loiSignedOn=" + loiSignedOn +
449
                ", loiSignedOn=" + loiSignedOn +
562
                ", loiSignOtp='" + loiSignOtp + '\'' +
450
                ", loiSignOtp='" + loiSignOtp + '\'' +
563
                ", loiGeneratedOn=" + loiGeneratedOn +
451
                ", loiGeneratedOn=" + loiGeneratedOn +
564
                ", loiGeneratedBy=" + loiGeneratedBy +
452
                ", loiGeneratedBy=" + loiGeneratedBy +
565
                ", loiDoc=" + loiDoc +
453
                ", loiDoc=" + loiDoc +
566
                ", loiDocs=" + loiDocs +
-
 
567
                ", lessCommitReason='" + lessCommitReason + '\'' +
454
                ", lessCommitReason='" + lessCommitReason + '\'' +
568
                '}';
455
                '}';
569
    }
456
    }
570
}
457
}