Subversion Repositories SmartDukaan

Rev

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