Subversion Repositories SmartDukaan

Rev

Rev 35079 | Rev 35289 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
22653 ashik.ali 1
package com.spice.profitmandi.dao.entity.fofo;
22418 ashik.ali 2
 
30046 tejbeer 3
import com.spice.profitmandi.common.enumuration.ActivationType;
29936 amit.gupta 4
import com.spice.profitmandi.common.enumuration.CounterSize;
5
import com.spice.profitmandi.common.enumuration.FofoType;
6
import com.spice.profitmandi.dao.entity.user.Address;
7
 
8
import javax.persistence.*;
22418 ashik.ali 9
import java.io.Serializable;
24349 amit.gupta 10
import java.time.LocalDate;
28166 tejbeer 11
import java.time.LocalDateTime;
35079 vikas 12
import java.util.Objects;
22418 ashik.ali 13
 
14
/**
15
 * This class basically contains store code details
32615 raveendra. 16
 *
22418 ashik.ali 17
 * @author ashikali
18
 */
19
@Entity
31730 tejbeer 20
@Table(name = "fofo.fofo_store")
27556 tejbeer 21
 
22
@NamedQueries({
23
 
32615 raveendra. 24
        @NamedQuery(name = "FofoStore.selectAllDtrUserIds", query = "select ua.userId from FofoStore fs join UserAccount ua on fs.id=ua.accountKey "
25
                + "where ua.type='saholic' and fs.internal=false and fs.active=true"),
29926 amit.gupta 26
 
32615 raveendra. 27
        @NamedQuery(name = "FofoStore.selectGroupByBrandWarehousePartnerSale", query = "select new com.spice.profitmandi.dao.model.BrandWisePartnerSaleModel(foi.brand, "
28
                + "sum(case when concat(year(foi.createTimestamp), month(foi.createTimestamp))= :lms then CAST(foi.quantity*foi.mop  AS integer ) else 0 end),"
29
                + "sum(case when concat(year(foi.createTimestamp), month(foi.createTimestamp))= :lms then foi.quantity  else 0 end),"
30
                + "sum(case when concat(year(foi.createTimestamp), month(foi.createTimestamp))= :mtd  then CAST(foi.quantity*foi.mop  AS integer ) else 0 end),"
31
                + "sum(case when concat(year(foi.createTimestamp), month(foi.createTimestamp))= :mtd  then foi.quantity else 0 end), "
32
                + "sum(case when foi.createTimestamp between  :lmtdStartDate and :lmtdEndDate  then CAST(foi.quantity*foi.mop  AS int) else 0 end), "
33
                + "sum(case when foi.createTimestamp between  :lmtdStartDate and :lmtdEndDate then foi.quantity else 0 end))"
34
                + " from FofoStore fs join FofoOrder fo on fs.id = fo.fofoId join FofoOrderItem foi on foi.orderId = fo.id  join Item i on i.id = foi.itemId  where fo.cancelledTimestamp is null and fs.active = true "
35
                + "and foi.createTimestamp >= :lmtdStartDate and i.categoryId = :categoryId and fs.id in :fofoId"
36
                + " group by foi.brand"),
35284 aman 37
        @NamedQuery(name = "FofoStore.selectGroupByBrandWarehousePartnerAccessoriesSale", query = "select new com.spice.profitmandi.dao.model.BrandWisePartnerSaleModel(foi.brand, "
38
                + "sum(case when concat(year(foi.createTimestamp), month(foi.createTimestamp))= :lms then CAST(foi.quantity*foi.mop  AS integer ) else 0 end),"
39
                + "sum(case when concat(year(foi.createTimestamp), month(foi.createTimestamp))= :lms then foi.quantity  else 0 end),"
40
                + "sum(case when concat(year(foi.createTimestamp), month(foi.createTimestamp))= :mtd  then CAST(foi.quantity*foi.mop  AS integer ) else 0 end),"
41
                + "sum(case when concat(year(foi.createTimestamp), month(foi.createTimestamp))= :mtd  then foi.quantity else 0 end), "
42
                + "sum(case when foi.createTimestamp between  :lmtdStartDate and :lmtdEndDate  then CAST(foi.quantity*foi.mop  AS int) else 0 end), "
43
                + "sum(case when foi.createTimestamp between  :lmtdStartDate and :lmtdEndDate then foi.quantity else 0 end))"
44
                + " from FofoStore fs join FofoOrder fo on fs.id = fo.fofoId join FofoOrderItem foi on foi.orderId = fo.id  join Item i on i.id = foi.itemId  where fo.cancelledTimestamp is null and fs.active = true "
45
                + "and foi.createTimestamp >= :lmtdStartDate and i.categoryId != :categoryId and fs.id in :fofoId"),
27594 tejbeer 46
 
32615 raveendra. 47
        @NamedQuery(name = "FofoStore.selectGroupByWarehouseBrandWisePartnerSale", query = "select new com.spice.profitmandi.dao.model.WarehouseWiseBrandSaleModel("
48
                + "(case when a.city in ('Noida', 'Ghaziabad')  and foi.brand = 'Vivo' then 7573 else fs.warehouseId end) AS col_0_0_,"
49
                + "sum(case when concat(year(foi.createTimestamp), month(foi.createTimestamp))= :lms then CAST(foi.quantity*foi.mop  AS int) else 0 end),"
50
                + "sum(case when concat(year(foi.createTimestamp), month(foi.createTimestamp))= :lms then foi.quantity  else 0 end),"
51
                + "sum(case when concat(year(foi.createTimestamp), month(foi.createTimestamp))= :mtd  then CAST(foi.quantity*foi.mop  AS int) else 0 end),"
52
                + "sum(case when concat(year(foi.createTimestamp), month(foi.createTimestamp))= :mtd  then foi.quantity else 0 end), "
53
                + "sum(case when foi.createTimestamp between  :lmtdStartDate and :lmtdEndDate  then CAST(foi.quantity*foi.mop  AS int) else 0 end), "
54
                + "sum(case when foi.createTimestamp between  :lmtdStartDate and :lmtdEndDate then foi.quantity else 0 end))"
55
                + " from FofoStore fs join FofoOrder fo on fs.id = fo.fofoId join FofoOrderItem foi on foi.orderId = fo.id  join Item i on i.id = foi.itemId"
56
                + " join com.spice.profitmandi.dao.entity.user.User u on u.id = fs.id join Address a on a.id = u.addressId"
57
                + " where fo.cancelledTimestamp is null and fs.active = true"
58
                + " and foi.createTimestamp >= :lmtdStartDate and foi.brand = :brand and i.categoryId = :categoryId and fs.id in :fofoId"
59
                + " group by col_0_0_"),
27556 tejbeer 60
 
32615 raveendra. 61
        @NamedQuery(name = "FofoStore.selectWarehouseBrandItemSale", query = "select new com.spice.profitmandi.dao.model.WarehouseBrandWiseItemSaleModel(fs.warehouseId,i.id, i.brand, i.modelName, i.modelNumber,i.color,"
62
                + "sum(case when concat(year(foi.createTimestamp), month(foi.createTimestamp))= :lms then CAST(foi.quantity*foi.mop  AS int) else 0 end),"
63
                + "sum(case when concat(year(foi.createTimestamp), month(foi.createTimestamp))= :lms then foi.quantity  else 0 end),"
64
                + "sum(case when concat(year(foi.createTimestamp), month(foi.createTimestamp))= :mtd  then CAST(foi.quantity*foi.mop  AS int) else 0 end),"
65
                + "sum(case when concat(year(foi.createTimestamp), month(foi.createTimestamp))= :mtd  then foi.quantity else 0 end), "
66
                + "sum(case when foi.createTimestamp between  :lmtdStartDate and :lmtdEndDate  then CAST(foi.quantity*foi.mop  AS int) else 0 end), "
67
                + "sum(case when foi.createTimestamp between  :lmtdStartDate and :lmtdEndDate then foi.quantity else 0 end))"
68
                + " from FofoStore fs join FofoOrder fo on fs.id = fo.fofoId join FofoOrderItem foi on foi.orderId = fo.id  join Item i on i.id = foi.itemId  where fo.cancelledTimestamp is null and fs.active = true"
69
                + " and  foi.createTimestamp >= :lmtdStartDate and fs.warehouseId in :warehouseId and i.brand = :brand and i.categoryId = :categoryId and fs.id in :fofoId group by i.id"),
27594 tejbeer 70
 
32615 raveendra. 71
        @NamedQuery(name = "FofoStore.selectGroupByBrandAccesoriesWarehousePartnerSale", query = "select new com.spice.profitmandi.dao.model.BrandWisePartnerSaleModel(foi.brand, "
72
                + "sum(case when concat(year(foi.createTimestamp), month(foi.createTimestamp))= :lms then CAST(foi.quantity*foi.mop  AS int) else 0 end),"
73
                + "sum(case when concat(year(foi.createTimestamp), month(foi.createTimestamp))= :lms then foi.quantity  else 0 end),"
74
                + "sum(case when concat(year(foi.createTimestamp), month(foi.createTimestamp))= :mtd  then CAST(foi.quantity*foi.mop  AS int) else 0 end),"
75
                + "sum(case when concat(year(foi.createTimestamp), month(foi.createTimestamp))= :mtd  then foi.quantity else 0 end), "
76
                + "sum(case when foi.createTimestamp between  :lmtdStartDate and :lmtdEndDate  then CAST(foi.quantity*foi.mop  AS int) else 0 end), "
77
                + "sum(case when foi.createTimestamp between  :lmtdStartDate and :lmtdEndDate then foi.quantity else 0 end))"
78
                + " from FofoStore fs join FofoOrder fo on fs.id = fo.fofoId join FofoOrderItem foi on foi.orderId = fo.id  join Item i on i.id = foi.itemId  where fo.cancelledTimestamp is null and fs.active = true "
79
                + "and foi.createTimestamp >= :lmtdStartDate and i.categoryId != :categoryId and fs.id in :fofoId"
80
                + " group by foi.brand"),
27556 tejbeer 81
 
32615 raveendra. 82
        @NamedQuery(name = "FofoStore.selectGroupByWarehouseAccesoriesBrandWisePartnerSale", query = "select new com.spice.profitmandi.dao.model.WarehouseWiseBrandSaleModel(fs.warehouseId,"
83
                + "sum(case when concat(year(foi.createTimestamp), month(foi.createTimestamp))= :lms then CAST(foi.quantity*foi.mop  AS int) else 0 end),"
84
                + "sum(case when concat(year(foi.createTimestamp), month(foi.createTimestamp))= :lms then foi.quantity  else 0 end),"
85
                + "sum(case when concat(year(foi.createTimestamp), month(foi.createTimestamp))= :mtd  then CAST(foi.quantity*foi.mop  AS int) else 0 end),"
86
                + "sum(case when concat(year(foi.createTimestamp), month(foi.createTimestamp))= :mtd  then foi.quantity else 0 end), "
87
                + "sum(case when foi.createTimestamp between  :lmtdStartDate and :lmtdEndDate  then CAST(foi.quantity*foi.mop  AS int) else 0 end), "
88
                + "sum(case when foi.createTimestamp between  :lmtdStartDate and :lmtdEndDate then foi.quantity else 0 end))"
89
                + " from FofoStore fs join FofoOrder fo on fs.id = fo.fofoId join FofoOrderItem foi on foi.orderId = fo.id  join Item i on i.id = foi.itemId  where fo.cancelledTimestamp is null and fs.active = true"
90
                + " and foi.createTimestamp >= :lmtdStartDate and foi.brand = :brand and i.categoryId != :categoryId and fs.id in :fofoId"
91
                + " group by fs.warehouseId"),
27592 tejbeer 92
 
32615 raveendra. 93
        @NamedQuery(name = "FofoStore.selectWarehouseAccesoriesBrandItemSale", query = "select new com.spice.profitmandi.dao.model.WarehouseBrandWiseItemSaleModel(fs.warehouseId,i.id, i.brand, i.modelName, i.modelNumber,i.color,"
94
                + "sum(case when concat(year(foi.createTimestamp), month(foi.createTimestamp))= :lms then CAST(foi.quantity*foi.mop  AS int) else 0 end),"
95
                + "sum(case when concat(year(foi.createTimestamp), month(foi.createTimestamp))= :lms then foi.quantity  else 0 end),"
96
                + "sum(case when concat(year(foi.createTimestamp), month(foi.createTimestamp))= :mtd  then CAST(foi.quantity*foi.mop  AS int) else 0 end),"
97
                + "sum(case when concat(year(foi.createTimestamp), month(foi.createTimestamp))= :mtd  then foi.quantity else 0 end), "
98
                + "sum(case when foi.createTimestamp between  :lmtdStartDate and :lmtdEndDate  then CAST(foi.quantity*foi.mop  AS int) else 0 end), "
99
                + "sum(case when foi.createTimestamp between  :lmtdStartDate and :lmtdEndDate then foi.quantity else 0 end))"
100
                + " from FofoStore fs join FofoOrder fo on fs.id = fo.fofoId join FofoOrderItem foi on foi.orderId = fo.id  join Item i on i.id = foi.itemId  where fo.cancelledTimestamp is null and fs.active = true"
101
                + " and  foi.createTimestamp >= :lmtdStartDate and fs.warehouseId in :warehouseId and i.brand = :brand and i.categoryId != :categoryId  and fs.id in :fofoId group by i.id"),
27556 tejbeer 102
 
32615 raveendra. 103
        @NamedQuery(name = "FofoStore.selectPartnerPendingIndentItem", query = "select new com.spice.profitmandi.dao.model.PartnerPendingIndentItemModel(o.retailerName,"
104
                + " li.quantity, li.totalPrice)"
105
                + " from FofoStore fs join Order o on fs.id = o.retailerId join  LineItem li on li.orderId = o.id "
106
                + " where li.itemId = :itemId and fs.warehouseId = :warehouseId and o.status = 3"),
27599 tejbeer 107
 
32615 raveendra. 108
        @NamedQuery(name = "FofoStore.selectUnbilledActivateStockGroupByBrand", query = "select new com.spice.profitmandi.dao.model.BrandWiseUnbilledActivateStockModel(i.brand,"
109
                + "  sum(case when concat(year(ai.activationTimestamp), month(ai.activationTimestamp)) = :almtd then 1 else 0 end),"
110
                + "  sum(case when concat(year(ai.activationTimestamp), month(ai.activationTimestamp)) = :almtd then CAST(tl.sellingPrice  AS int) else 0 end))"
111
                + " from FofoStore fs join InventoryItem ii on fs.id = ii.fofoId join ActivatedImei ai on ai.serialNumber = ii.serialNumber join Item i on i.id = ii.itemId join TagListing tl on tl.itemId = i.id"
112
                + " where fs.active = true and ii.goodQuantity >= 1 and fs.id in :fofoId group by i.brand"),
27670 tejbeer 113
 
32615 raveendra. 114
        @NamedQuery(name = "FofoStore.selectUnbilledActivateStockGroupByWarehouse", query = "select new com.spice.profitmandi.dao.model.WarehouseWiseBrandUnbilledActivatedModel(fs.warehouseId,"
115
                + "  sum(case when concat(year(ai.activationTimestamp), month(ai.activationTimestamp)) = :almtd then 1 else 0 end),"
116
                + "  sum(case when concat(year(ai.activationTimestamp), month(ai.activationTimestamp)) = :almtd then CAST(tl.sellingPrice  AS int) else 0 end))"
117
                + " from FofoStore fs join InventoryItem ii on fs.id = ii.fofoId join ActivatedImei ai on ai.serialNumber = ii.serialNumber join Item i on i.id = ii.itemId join TagListing tl on tl.itemId = i.id"
118
                + " where fs.active = true and ii.goodQuantity >= 1 and i.brand = :brand and fs.id in :fofoId group by fs.warehouseId"),
27670 tejbeer 119
 
32615 raveendra. 120
        @NamedQuery(name = "FofoStore.selectWarehouseBrandItemUnbilledActivateStock", query = "select new com.spice.profitmandi.dao.model.WarehouseBrandItemUnbilledActivatedModel(fs.warehouseId,i.id, i.brand, i.modelName, i.modelNumber,i.color,"
121
                + "  sum(case when concat(year(ai.activationTimestamp), month(ai.activationTimestamp)) = :almtd then 1 else 0 end),"
122
                + "  sum(case when concat(year(ai.activationTimestamp), month(ai.activationTimestamp)) = :almtd then CAST(tl.sellingPrice  AS int) else 0 end))"
123
                + " from FofoStore fs join InventoryItem ii on fs.id = ii.fofoId join ActivatedImei ai on ai.serialNumber = ii.serialNumber join Item i on i.id = ii.itemId join TagListing tl on tl.itemId = i.id"
124
                + " where fs.active = true and ii.goodQuantity >= 1 and i.brand = :brand and fs.warehouseId in :warehouseId and fs.id in :fofoId  group by i.id"),
27670 tejbeer 125
 
32615 raveendra. 126
        @NamedQuery(name = "FofoStore.selectGroupByBrandLms", query = "select new com.spice.profitmandi.dao.model.BrandWiseModel(foi.brand, DATE_FORMAT(fo.createTimestamp, :groupParameter),sum(cast(foi.mop*foi.quantity As int)))"
127
                + " from FofoStore fs join FofoOrder fo on fs.id = fo.fofoId join FofoOrderItem foi on foi.orderId = fo.id  join Item i on i.id = foi.itemId  where fo.cancelledTimestamp is null and fs.active = true "
128
                + " and (foi.createTimestamp between :lmsStartDate and :endDate) and i.categoryId = :categoryId and fs.id in :fofoId and fs.warehouseId in :warehouseId"
129
                + " group by foi.brand,DATE_FORMAT(fo.createTimestamp, :groupParameter)"),})
27599 tejbeer 130
 
27556 tejbeer 131
public class FofoStore implements Serializable {
132
 
32615 raveendra. 133
    private static final long serialVersionUID = 1L;
134
    @Id
135
    @Column(name = "id", unique = true, updatable = false)
136
    private int id;
137
    private int codeInt;
138
    @Column(name = "code", unique = true)
139
    private String code;
140
    @Column(name = "latitude")
141
    private String latitude;
142
    @Column(name = "longitude")
143
    private String longitude;
144
    @Column(name = "counter_size")
145
    @Enumerated(EnumType.STRING)
146
    private CounterSize counterSize = CounterSize.TEN_LAC;
147
    @Column(name = "counter_potential")
148
    private float counterPotential;
149
    @Column(name = "warehouse_id")
150
    private int warehouseId;
151
    @Column(name = "minimum_investment")
152
    private float minimumInvestment;
153
    @Column(name = "grace_date")
154
    private LocalDate graceDate;
155
    @Column(name = "investment_ok")
156
    private boolean investmentOk;
157
    @Column
158
    private boolean active = true;
159
    @Column
160
    private String pan;
161
    @Transient
162
    private Address userAddress;
163
    @Column(name = "internal")
164
    private boolean internal;
165
    @Column(name = "bags_last_credited")
166
    private LocalDateTime bagsLastCredited;
167
    @Column(name = "fofo_type")
168
    @Enumerated(EnumType.STRING)
169
    private FofoType fofoType;
170
    @Column(name = "activation_type")
171
    @Enumerated(EnumType.STRING)
172
    private ActivationType activationType = ActivationType.BILLING_PENDING;
173
    @Column(name = "active_timestamp")
174
    private LocalDateTime activeTimeStamp;
175
    @Column(name = "target")
176
    private int target;
177
    @Column(name = "grace_count")
178
    private int graceCount;
33124 ranu 179
    @Column(name = "astId")
180
    private int astId;
35079 vikas 181
    @Column(name = "shopify_location_id")
182
    private String shopifyLocationId;
183
    @Column(name = "shopify_customer_id")
184
    private String shopifyCustomerId;
185
    @Column(name = "gst_number")
186
    private String gstNumber;
27556 tejbeer 187
 
32615 raveendra. 188
    public FofoStore() {
189
    }
27556 tejbeer 190
 
33124 ranu 191
    public int getAstId() {
192
        return astId;
193
    }
194
 
195
    public void setAstId(int astId) {
196
        this.astId = astId;
197
    }
198
 
32615 raveendra. 199
    public int getCodeInt() {
200
        return codeInt;
201
    }
27556 tejbeer 202
 
32615 raveendra. 203
    public void setCodeInt(int codeInt) {
204
        this.codeInt = codeInt;
205
    }
27556 tejbeer 206
 
32615 raveendra. 207
    public int getTarget() {
208
        return target;
209
    }
27556 tejbeer 210
 
32615 raveendra. 211
    public void setTarget(int target) {
212
        this.target = target;
213
    }
27556 tejbeer 214
 
32615 raveendra. 215
    public ActivationType getActivationType() {
216
        return activationType;
217
    }
27556 tejbeer 218
 
32615 raveendra. 219
    public void setActivationType(ActivationType activationType) {
220
        this.activationType = activationType;
221
    }
31730 tejbeer 222
 
32615 raveendra. 223
    public float getCounterPotential() {
224
        return counterPotential;
225
    }
27556 tejbeer 226
 
32615 raveendra. 227
    public void setCounterPotential(float counterPotential) {
228
        this.counterPotential = counterPotential;
229
    }
27556 tejbeer 230
 
32615 raveendra. 231
    public LocalDateTime getBagsLastCredited() {
232
        return bagsLastCredited;
233
    }
27556 tejbeer 234
 
32615 raveendra. 235
    public void setBagsLastCredited(LocalDateTime bagsLastCredited) {
236
        this.bagsLastCredited = bagsLastCredited;
237
    }
27556 tejbeer 238
 
32615 raveendra. 239
    public boolean isInternal() {
240
        return internal;
241
    }
27903 tejbeer 242
 
32615 raveendra. 243
    public void setInternal(boolean internal) {
244
        this.internal = internal;
245
    }
29497 amit.gupta 246
 
32615 raveendra. 247
    public int getWarehouseId() {
248
        return warehouseId;
249
    }
30046 tejbeer 250
 
32615 raveendra. 251
    public void setWarehouseId(int warehouseId) {
252
        this.warehouseId = warehouseId;
253
    }
27903 tejbeer 254
 
32615 raveendra. 255
    public boolean isInvestmentOk() {
256
        return investmentOk;
257
    }
28825 tejbeer 258
 
32615 raveendra. 259
    public void setInvestmentOk(boolean investmentOk) {
260
        this.investmentOk = investmentOk;
261
    }
28825 tejbeer 262
 
32615 raveendra. 263
    public String getPan() {
264
        return pan;
265
    }
30046 tejbeer 266
 
32615 raveendra. 267
    public void setPan(String pan) {
268
        this.pan = pan;
269
    }
28166 tejbeer 270
 
32615 raveendra. 271
    public int getGraceCount() {
272
        return graceCount;
273
    }
32308 amit.gupta 274
 
32615 raveendra. 275
    public void setGraceCount(int graceCount) {
276
        this.graceCount = graceCount;
277
    }
32308 amit.gupta 278
 
32615 raveendra. 279
    public boolean isActive() {
280
        return active;
281
    }
32308 amit.gupta 282
 
32615 raveendra. 283
    public void setActive(boolean active) {
284
        this.active = active;
285
    }
30046 tejbeer 286
 
32615 raveendra. 287
    public LocalDate getGraceDate() {
288
        return graceDate;
289
    }
31730 tejbeer 290
 
32615 raveendra. 291
    public void setGraceDate(LocalDate graceDate) {
292
        this.graceDate = graceDate;
293
    }
31730 tejbeer 294
 
32615 raveendra. 295
    public float getMinimumInvestment() {
296
        return minimumInvestment;
297
    }
30046 tejbeer 298
 
32615 raveendra. 299
    public void setMinimumInvestment(float minimumInvestment) {
300
        this.minimumInvestment = minimumInvestment;
301
    }
28166 tejbeer 302
 
32615 raveendra. 303
    /*
304
     * public int getCreditCycle() { return creditCycle; } public void
305
     * setCreditCycle(int creditCycle) { this.creditCycle = creditCycle; }
306
     */
307
    public CounterSize getCounterSize() {
308
        return counterSize;
309
    }
28166 tejbeer 310
 
32615 raveendra. 311
    public void setCounterSize(CounterSize counterSize) {
312
        this.counterSize = counterSize;
313
    }
27903 tejbeer 314
 
32615 raveendra. 315
    public int getId() {
316
        return id;
317
    }
27903 tejbeer 318
 
32615 raveendra. 319
    public void setId(int id) {
320
        this.id = id;
321
    }
27903 tejbeer 322
 
32615 raveendra. 323
    public String getCode() {
324
        return code;
325
    }
27903 tejbeer 326
 
32615 raveendra. 327
    public void setCode(String code) {
328
        this.code = code;
329
    }
27556 tejbeer 330
 
32615 raveendra. 331
    public String getLatitude() {
332
        return latitude;
333
    }
25276 amit.gupta 334
 
32615 raveendra. 335
    public void setLatitude(String latitude) {
336
        this.latitude = latitude;
337
    }
24843 govind 338
 
32615 raveendra. 339
    public String getLongitude() {
340
        return longitude;
341
    }
29497 amit.gupta 342
 
32615 raveendra. 343
    public void setLongitude(String longitude) {
344
        this.longitude = longitude;
345
    }
29497 amit.gupta 346
 
32615 raveendra. 347
    public Address getUserAddress() {
348
        return userAddress;
349
    }
27556 tejbeer 350
 
32615 raveendra. 351
    public void setUserAddress(Address userAddress) {
352
        this.userAddress = userAddress;
353
    }
27556 tejbeer 354
 
32615 raveendra. 355
    public LocalDateTime getActiveTimeStamp() {
356
        return activeTimeStamp;
357
    }
27556 tejbeer 358
 
32615 raveendra. 359
    public void setActiveTimeStamp(LocalDateTime activeTimeStamp) {
360
        this.activeTimeStamp = activeTimeStamp;
361
    }
27556 tejbeer 362
 
32615 raveendra. 363
    public FofoType getFofoType() {
364
        return fofoType;
365
    }
27556 tejbeer 366
 
32615 raveendra. 367
    public void setFofoType(FofoType fofoType) {
368
        this.fofoType = fofoType;
369
    }
27556 tejbeer 370
 
35079 vikas 371
    public String getShopifyLocationId() {
372
        return shopifyLocationId;
373
    }
374
 
375
    public void setShopifyLocationId(String shopifyLocationId) {
376
        this.shopifyLocationId = shopifyLocationId;
377
    }
378
 
379
    public String getShopifyCustomerId() {
380
        return shopifyCustomerId;
381
    }
382
 
383
    public void setShopifyCustomerId(String shopifyCustomerId) {
384
        this.shopifyCustomerId = shopifyCustomerId;
385
    }
386
 
387
    public String getGstNumber() {
388
        return gstNumber;
389
    }
390
 
391
    public void setGstNumber(String gstNumber) {
392
        this.gstNumber = gstNumber;
393
    }
394
 
32615 raveendra. 395
    @Override
35079 vikas 396
    public boolean equals(Object o) {
397
        if (!(o instanceof FofoStore)) return false;
398
        FofoStore fofoStore = (FofoStore) o;
399
        return id == fofoStore.id && codeInt == fofoStore.codeInt && Float.compare(counterPotential, fofoStore.counterPotential) == 0 && warehouseId == fofoStore.warehouseId && Float.compare(minimumInvestment, fofoStore.minimumInvestment) == 0 && investmentOk == fofoStore.investmentOk && active == fofoStore.active && internal == fofoStore.internal && target == fofoStore.target && graceCount == fofoStore.graceCount && astId == fofoStore.astId && Objects.equals(code, fofoStore.code) && Objects.equals(latitude, fofoStore.latitude) && Objects.equals(longitude, fofoStore.longitude) && counterSize == fofoStore.counterSize && Objects.equals(graceDate, fofoStore.graceDate) && Objects.equals(pan, fofoStore.pan) && Objects.equals(userAddress, fofoStore.userAddress) && Objects.equals(bagsLastCredited, fofoStore.bagsLastCredited) && fofoType == fofoStore.fofoType && activationType == fofoStore.activationType && Objects.equals(activeTimeStamp, fofoStore.activeTimeStamp) && Objects.equals(shopifyLocationId, fofoStore.shopifyLocationId) && Objects.equals(shopifyCustomerId, fofoStore.shopifyCustomerId) && Objects.equals(gstNumber, fofoStore.gstNumber);
32615 raveendra. 400
    }
27556 tejbeer 401
 
32615 raveendra. 402
    @Override
35079 vikas 403
    public int hashCode() {
404
        return Objects.hash(id, codeInt, code, latitude, longitude, counterSize, counterPotential, warehouseId, minimumInvestment, graceDate, investmentOk, active, pan, userAddress, internal, bagsLastCredited, fofoType, activationType, activeTimeStamp, target, graceCount, astId, shopifyLocationId, shopifyCustomerId, gstNumber);
32615 raveendra. 405
    }
23884 amit.gupta 406
 
32615 raveendra. 407
    @Override
408
    public String toString() {
35079 vikas 409
        return "FofoStore{" +
410
                "id=" + id +
411
                ", codeInt=" + codeInt +
412
                ", code='" + code + '\'' +
413
                ", latitude='" + latitude + '\'' +
414
                ", longitude='" + longitude + '\'' +
415
                ", counterSize=" + counterSize +
416
                ", counterPotential=" + counterPotential +
417
                ", warehouseId=" + warehouseId +
418
                ", minimumInvestment=" + minimumInvestment +
419
                ", graceDate=" + graceDate +
420
                ", investmentOk=" + investmentOk +
421
                ", active=" + active +
422
                ", pan='" + pan + '\'' +
423
                ", userAddress=" + userAddress +
424
                ", internal=" + internal +
425
                ", bagsLastCredited=" + bagsLastCredited +
426
                ", fofoType=" + fofoType +
427
                ", activationType=" + activationType +
428
                ", activeTimeStamp=" + activeTimeStamp +
429
                ", target=" + target +
430
                ", graceCount=" + graceCount +
431
                ", astId=" + astId +
432
                ", shopifyLocationId='" + shopifyLocationId + '\'' +
433
                ", shopifyCustomerId='" + shopifyCustomerId + '\'' +
434
                ", gstNumber='" + gstNumber + '\'' +
435
                '}';
32615 raveendra. 436
    }
22418 ashik.ali 437
}