| 21716 |
ashik.ali |
1 |
package com.spice.profitmandi.dao.entity.transaction;
|
| 21545 |
ashik.ali |
2 |
|
| 29966 |
amit.gupta |
3 |
import com.spice.profitmandi.dao.convertor.LocalDateTimeAttributeConverter;
|
| 30109 |
tejbeer |
4 |
import com.spice.profitmandi.dao.model.PartnerSecondaryPlanModel;
|
| 30161 |
manish |
5 |
import com.spice.profitmandi.dao.model.PriceDropReportModel;
|
| 29966 |
amit.gupta |
6 |
import in.shop2020.model.v1.order.OrderStatus;
|
|
|
7 |
import in.shop2020.model.v1.order.TaxType;
|
|
|
8 |
|
| 30220 |
amit.gupta |
9 |
import javax.persistence.*;
|
|
|
10 |
import java.io.Serializable;
|
|
|
11 |
import java.time.LocalDateTime;
|
|
|
12 |
import java.time.format.DateTimeFormatter;
|
| 31166 |
amit.gupta |
13 |
import java.util.List;
|
| 30220 |
amit.gupta |
14 |
|
| 21545 |
ashik.ali |
15 |
/**
|
|
|
16 |
* This class basically contains order details
|
| 29966 |
amit.gupta |
17 |
*
|
| 21545 |
ashik.ali |
18 |
* @author ashikali
|
|
|
19 |
*/
|
| 21634 |
ashik.ali |
20 |
|
| 21545 |
ashik.ali |
21 |
@Entity
|
| 27723 |
tejbeer |
22 |
@Table(name = "transaction.`order`", schema = "transaction")
|
| 31539 |
amit.gupta |
23 |
@NamedQueries({@NamedQuery(name = "Order.selectAll", query = "select o from Order o"),
|
| 27723 |
tejbeer |
24 |
@NamedQuery(name = "Order.selectById", query = "select o from Order o where o.id= :id"),
|
|
|
25 |
@NamedQuery(name = "Order.selectByTransactionId", query = "select t.id, t.createTimestamp, o.retailerAddress1, o.retailerAddress2, o.retailerCity, "
|
|
|
26 |
+ "o.retailerPinCode, o.retailerState, o.shippingCost, o.statusDescription, o.invoiceNumber, o.airwayBillNumber, o.totalAmount, li.brand, li.modelName, "
|
|
|
27 |
+ "li.modelNumber, li.color, li.quantity, li.unitPrice, p.id, p.name, o.shippingTimestamp, o.status, o.promisedDeliveryTime, o.retailerName, t.status, i.catalogItemId from Transaction t join Order o on o.transactionId = t.id "
|
|
|
28 |
+ "join LineItem li on li.orderId = o.id left join Provider p on p.id = o.logisticsProviderId join Item i on i.id=li.itemId where o.transactionId = :transactionId"),
|
|
|
29 |
|
|
|
30 |
@NamedQuery(name = "Order.selectItemIdTypeQuantity", query = "select new com.spice.profitmandi.dao.model.ItemIdTypeQuantity(li.itemId, i.type, li.quantity) from Order o join LineItem li on li.orderId = o.id join Item i on i.id = li.itemId where o.invoiceNumber = :invoiceNumber and o.retailerId = :retailerId"),
|
|
|
31 |
|
|
|
32 |
@NamedQuery(name = "Order.selectAllBilledOrderGroupByBrand", query = "select new com.spice.profitmandi.dao.model.SecondaryOrderBillingModel(li.brand, "
|
| 30017 |
amit.gupta |
33 |
+ "sum(case when o.billingTimestamp >= :today then CAST(o.totalAmount AS integer) else 0 end),"
|
|
|
34 |
+ "sum(case when o.billingTimestamp >= :threedays and o.billingTimestamp < :endDate then CAST(o.totalAmount AS integer) else 0 end),"
|
|
|
35 |
+ "sum(case when concat(year(o.billingTimestamp ), month(o.billingTimestamp ))= :mtd then CAST(o.totalAmount AS integer) else 0 end),"
|
|
|
36 |
+ "sum(case when o.billingTimestamp between :lmtdStartDate and :lmtdEndDate then CAST(o.totalAmount AS integer) else 0 end),"
|
|
|
37 |
+ "sum(case when o.billingTimestamp between :lmtdStartDate and :lmsEndDate then CAST(o.totalAmount AS integer) else 0 end),"
|
| 27723 |
tejbeer |
38 |
+ " sum(case when o.billingTimestamp >= :today then li.quantity else 0 end),"
|
| 27726 |
tejbeer |
39 |
+ " sum(case when o.billingTimestamp >= :threedays and o.billingTimestamp < :endDate then li.quantity else 0 end),"
|
| 27723 |
tejbeer |
40 |
+ " sum(case when concat(year(o.billingTimestamp), month(o.billingTimestamp))= :mtd then li.quantity else 0 end),"
|
| 27749 |
tejbeer |
41 |
+ " sum(case when o.billingTimestamp between :lmtdStartDate and :lmtdEndDate then li.quantity else 0 end),"
|
|
|
42 |
+ " sum(case when o.billingTimestamp between :lmtdStartDate and :lmsEndDate then li.quantity else 0 end)"
|
|
|
43 |
+ " )"
|
| 27832 |
amit.gupta |
44 |
+ " from Order o join LineItem li on o.id = li.orderId join FofoStore fs on fs.id = o.retailerId where o.status in (7,9,10,12)"
|
| 31539 |
amit.gupta |
45 |
+ " and o.billingTimestamp >= :lmtdStartDate and fs.warehouseId in :warehouseId and fs.internal = false group by li.brand"),
|
| 27723 |
tejbeer |
46 |
|
| 28468 |
tejbeer |
47 |
@NamedQuery(name = "Order.selectAllBilledOrderGroupByBrandFofoId", query = "select new com.spice.profitmandi.dao.model.BrandWiseModel(li.brand,"
|
| 30017 |
amit.gupta |
48 |
+ " DATE_FORMAT(o.billingTimestamp, '%m-%Y'),sum(cast(o.totalAmount AS integer)))"
|
| 28439 |
tejbeer |
49 |
+ " from Order o join LineItem li on o.id = li.orderId join FofoStore fs on fs.id = o.retailerId where o.status in (7,9,10,12)"
|
| 28468 |
tejbeer |
50 |
+ " and o.billingTimestamp >= :startDate and o.retailerId =:fofoId group by li.brand,DATE_FORMAT(o.billingTimestamp, '%m-%Y')"),
|
| 28439 |
tejbeer |
51 |
|
| 31361 |
amit.gupta |
52 |
@NamedQuery(name = "Order.selectSecondaryGroupByYearMonth", query = "select new com.spice.profitmandi.dao.model.PartnerMonthlySaleModel(o.retailerId,"
|
|
|
53 |
+ " DATE_FORMAT(o.billingTimestamp, '%m-%Y'),sum(cast(o.totalAmount AS integer)))"
|
|
|
54 |
+ " from Order o join LineItem li on o.id = li.orderId join FofoStore fs on fs.id = o.retailerId where o.status in (7,9,10,12)"
|
|
|
55 |
+ " and o.billingTimestamp >= :startDate and o.retailerId in:fofoIds group by o.retailerId, DATE_FORMAT(o.billingTimestamp, '%m-%Y')"),
|
|
|
56 |
|
| 27867 |
tejbeer |
57 |
@NamedQuery(name = "Order.selectAllBilledOrderGroupByBrandWarehouse", query = "select new com.spice.profitmandi.dao.model.SecondaryWarehouseWiseOrderBilllingModel(fs.warehouseId,date(o.billingTimestamp), li.brand, "
|
| 30017 |
amit.gupta |
58 |
+ "sum(CAST(o.totalAmount AS integer)),sum( li.quantity))"
|
| 27867 |
tejbeer |
59 |
+ " from Order o join LineItem li on o.id = li.orderId join FofoStore fs on fs.id = o.retailerId where o.status in (7,9,10,12)"
|
| 27903 |
tejbeer |
60 |
+ " and o.billingTimestamp >= :startDate and o.billingTimestamp < :endDate and (null is :brand or li.brand = :brand) and fs.internal = 0 group by fs.warehouseId, date(o.billingTimestamp), li.brand"),
|
| 27867 |
tejbeer |
61 |
|
| 27749 |
tejbeer |
62 |
@NamedQuery(name = "Order.selectAllBilledOrderItemByBrand", query = "select new com.spice.profitmandi.dao.model.SecondaryOrderItemBillingModel(o.retailerName,li.brand,i.modelName, "
|
| 27738 |
tejbeer |
63 |
+ " i.modelNumber, i.color," + "o.totalAmount," + " li.quantity)"
|
| 27832 |
amit.gupta |
64 |
+ " from Order o join LineItem li on o.id = li.orderId join Item i on i.id = li.itemId join FofoStore fs on fs.id = o.retailerId where o.status in (7,9,10,12)"
|
| 31539 |
amit.gupta |
65 |
+ " and date(o.billingTimestamp) in :date and fs.warehouseId in :warehouseId and li.brand = :brand and fs.internal = false order by li.itemId desc"),
|
| 27738 |
tejbeer |
66 |
|
| 27749 |
tejbeer |
67 |
@NamedQuery(name = "Order.selectTodayBilledOrderItemByBrand", query = "select new com.spice.profitmandi.dao.model.SecondaryOrderItemBillingModel(o.retailerName,li.brand,i.modelName, "
|
| 27738 |
tejbeer |
68 |
+ " i.modelNumber, i.color," + "o.totalAmount," + " li.quantity)"
|
| 27832 |
amit.gupta |
69 |
+ " from Order o join LineItem li on o.id = li.orderId join Item i on i.id = li.itemId join FofoStore fs on fs.id = o.retailerId where o.status in (7,9,10,12)"
|
| 27893 |
tejbeer |
70 |
+ " and o.billingTimestamp >= :startDate and fs.warehouseId in :warehouseId and li.brand in :brand order by li.itemId desc"),
|
| 27738 |
tejbeer |
71 |
|
| 27893 |
tejbeer |
72 |
@NamedQuery(name = "Order.selectAllBilledOrderBrandByFofoId", query = "select new com.spice.profitmandi.dao.model.InStockBrandModel(li.brand,"
|
| 30017 |
amit.gupta |
73 |
+ " Sum(li.quantity),Sum(CAST(o.totalAmount AS integer)))"
|
| 27893 |
tejbeer |
74 |
+ " from Order o join LineItem li on o.id = li.orderId where o.status in (7,9,10,12)"
|
|
|
75 |
+ " and o.billingTimestamp >= :startDate and o.billingTimestamp <= :endDate and o.retailerId = :fofoId group by li.brand"),
|
|
|
76 |
|
|
|
77 |
@NamedQuery(name = "Order.selectAllBilledOrderBrandItemByFofoId", query = "select new com.spice.profitmandi.dao.model.InStockBrandItemModel("
|
| 30017 |
amit.gupta |
78 |
+ " i.brand, i.modelName, i.modelNumber, i.color,Sum(li.quantity), Sum(CAST(o.totalAmount AS integer)))"
|
| 27893 |
tejbeer |
79 |
+ " from Order o join LineItem li on o.id = li.orderId join Item i on i.id = li.itemId where o.status in (7,9,10,12)"
|
|
|
80 |
+ " and o.billingTimestamp >= :startDate and o.billingTimestamp <= :endDate and o.retailerId = :fofoId group by i.id"),
|
|
|
81 |
|
| 28004 |
tejbeer |
82 |
@NamedQuery(name = "Order.selectAllGrnPendingOrderByCatalogId", query = "select new com.spice.profitmandi.dao.model.FofoIdQtyModel("
|
| 28020 |
tejbeer |
83 |
+ " fs.warehouseId,fs.id,sum(li.quantity )) from FofoStore fs join Order o on fs.id = o.retailerId "
|
| 28004 |
tejbeer |
84 |
+ " join LineItem li on o.id = li.orderId join TagListing tl on tl.itemId = li.itemId "
|
| 31539 |
amit.gupta |
85 |
+ " join Item i on (i.id = tl.itemId ) where " + " fs.active = false and fs.internal = true and"
|
| 29715 |
tejbeer |
86 |
+ " o.billingTimestamp is not null and o.refundTimestamp is null and o.partnerGrnTimestamp is null"
|
| 28020 |
tejbeer |
87 |
+ " and i.catalogItemId in :catalogItemId group by fs.id"),
|
| 28004 |
tejbeer |
88 |
|
|
|
89 |
@NamedQuery(name = "Order.selectAllPendingIndentOrderByCatalogId", query = "select new com.spice.profitmandi.dao.model.FofoIdQtyModel("
|
| 28020 |
tejbeer |
90 |
+ " fs.warehouseId,fs.id,sum(case when li.quantity is null then 0 else li.quantity end))"
|
| 28004 |
tejbeer |
91 |
+ " from FofoStore fs join Order o on fs.id = o.retailerId"
|
|
|
92 |
+ " join LineItem li on o.id = li.orderId " + " join TagListing tl on tl.itemId = li.itemId "
|
|
|
93 |
+ " join Item i on i.id = tl.itemId where "
|
| 31539 |
amit.gupta |
94 |
+ " fs.active = false and fs.internal = true and o.status in (3,4) and i.catalogItemId in :catalogItemId group by fs.id"),
|
| 28004 |
tejbeer |
95 |
|
| 28486 |
tejbeer |
96 |
@NamedQuery(name = "Order.selectGrnPendingOrdersByCatalogId", query = "select new com.spice.profitmandi.dao.model.FofoIdCatalogQtyModel("
|
| 28474 |
tejbeer |
97 |
+ " fs.warehouseId,fs.id,i.catalogItemId,sum(li.quantity )) from FofoStore fs join Order o on fs.id = o.retailerId "
|
|
|
98 |
+ " join LineItem li on o.id = li.orderId join TagListing tl on tl.itemId = li.itemId "
|
| 31539 |
amit.gupta |
99 |
+ " join Item i on (i.id = tl.itemId ) where " + " fs.active = true and fs.internal = false and"
|
| 29715 |
tejbeer |
100 |
+ " o.billingTimestamp is not null and o.refundTimestamp is null and o.partnerGrnTimestamp is null"
|
| 28477 |
tejbeer |
101 |
+ " and i.catalogItemId in :catalogItemId and fs.warehouseId in :warehouseId group by i.catalogItemId, fs.id"),
|
| 28474 |
tejbeer |
102 |
|
| 28486 |
tejbeer |
103 |
@NamedQuery(name = "Order.selectPendingIndentOrdersByCatalogId", query = "select new com.spice.profitmandi.dao.model.FofoIdCatalogQtyModel("
|
| 28474 |
tejbeer |
104 |
+ " fs.warehouseId,fs.id,i.catalogItemId,sum(case when li.quantity is null then 0 else li.quantity end))"
|
|
|
105 |
+ " from FofoStore fs join Order o on fs.id = o.retailerId"
|
|
|
106 |
+ " join LineItem li on o.id = li.orderId " + " join TagListing tl on tl.itemId = li.itemId "
|
|
|
107 |
+ " join Item i on i.id = tl.itemId where "
|
| 31539 |
amit.gupta |
108 |
+ " fs.active = true and fs.internal = false and o.status in (3,4) and i.catalogItemId in :catalogItemId and fs.warehouseId in :warehouseId group by i.catalogItemId, fs.id"),
|
| 28474 |
tejbeer |
109 |
|
| 30673 |
amit.gupta |
110 |
@NamedQuery(name = "Order.selectFirstBilling", query = "select new com.spice.profitmandi.dao.model.FofoFirstBillingModel(fs.id, min(o.billingTimestamp) )"
|
| 31539 |
amit.gupta |
111 |
+ " from FofoStore fs join Order o on fs.id = o.retailerId group by fs.id"),
|
| 30673 |
amit.gupta |
112 |
|
| 28004 |
tejbeer |
113 |
@NamedQuery(name = "Order.selectAllGrnPendingOrderByRange", query = "select new com.spice.profitmandi.dao.model.FofoIdItemDetailModel("
|
| 28020 |
tejbeer |
114 |
+ " fs.warehouseId,fs.id,sum(li.quantity ),i.brand,i.modelName,i.modelNumber,i.catalogItemId) from FofoStore fs join Order o on fs.id = o.retailerId "
|
| 28004 |
tejbeer |
115 |
+ " join LineItem li on o.id = li.orderId join TagListing tl on tl.itemId = li.itemId "
|
| 31539 |
amit.gupta |
116 |
+ " join Item i on (i.id = tl.itemId ) where fs.active = true and fs.internal = false and"
|
| 29715 |
tejbeer |
117 |
+ " o.billingTimestamp is not null and o.refundTimestamp is null and o.partnerGrnTimestamp is null"
|
| 28004 |
tejbeer |
118 |
+ " and tl.mop between :startPrice and :endPrice and i.categoryId=10006 group by fs.id,i.catalogItemId,i.brand,i.modelName,i.modelNumber"),
|
|
|
119 |
|
|
|
120 |
@NamedQuery(name = "Order.selectAllPendingIndentOrderByRange", query = "select new com.spice.profitmandi.dao.model.FofoIdItemDetailModel("
|
| 28020 |
tejbeer |
121 |
+ " fs.warehouseId, fs.id,sum(case when li.quantity is null then 0 else li.quantity end),i.brand,i.modelName,i.modelNumber,i.catalogItemId)"
|
| 28004 |
tejbeer |
122 |
+ " from FofoStore fs join Order o on fs.id = o.retailerId"
|
|
|
123 |
+ " join LineItem li on o.id = li.orderId " + " join TagListing tl on tl.itemId = li.itemId "
|
|
|
124 |
+ " join Item i on i.id = tl.itemId where "
|
| 31539 |
amit.gupta |
125 |
+ " fs.active = true and fs.internal = false and o.status in (3,4) and tl.mop between :startPrice and :endPrice and i.categoryId=10006 group by fs.id,i.catalogItemId,i.brand,i.modelName,i.modelNumber"),
|
| 28004 |
tejbeer |
126 |
|
| 28032 |
tejbeer |
127 |
@NamedQuery(name = "Order.selectAllGrnPendingOrderItemByCatalogIdFofoId", query = "select new com.spice.profitmandi.dao.model.FofoIdItemDetailModel("
|
|
|
128 |
+ " fs.warehouseId, fs.id, sum(li.quantity), i.brand, i.modelName, i.modelNumber, i.catalogItemId) from FofoStore fs join Order o on fs.id = o.retailerId "
|
|
|
129 |
+ " join LineItem li on o.id = li.orderId join TagListing tl on tl.itemId = li.itemId "
|
| 31539 |
amit.gupta |
130 |
+ " join Item i on (i.id = tl.itemId ) where " + " fs.active = true and fs.internal = false and"
|
| 29715 |
tejbeer |
131 |
+ " o.billingTimestamp is not null and o.refundTimestamp is null and o.partnerGrnTimestamp is null"
|
| 28032 |
tejbeer |
132 |
+ " and i.catalogItemId in :catalogItemId and i.categoryId=10006 and fs.id = :fofoId group by i.catalogItemId, i.brand,i.modelName,i.modelNumber"),
|
|
|
133 |
|
|
|
134 |
@NamedQuery(name = "Order.selectAllPendingIndentOrderItemByCatalogIdFofoId", query = "select new com.spice.profitmandi.dao.model.FofoIdItemDetailModel("
|
|
|
135 |
+ " fs.warehouseId, fs.id, sum(li.quantity), i.brand, i.modelName, i.modelNumber, i.catalogItemId)"
|
|
|
136 |
+ " from FofoStore fs join Order o on fs.id = o.retailerId"
|
|
|
137 |
+ " join LineItem li on o.id = li.orderId " + " join TagListing tl on tl.itemId = li.itemId "
|
|
|
138 |
+ " join Item i on i.id = tl.itemId where "
|
| 31539 |
amit.gupta |
139 |
+ " fs.active = true and fs.internal = false and o.status in (3,4) and i.catalogItemId in :catalogItemId and i.categoryId=10006 and fs.id = :fofoId group by i.catalogItemId, i.brand,i.modelName,i.modelNumber"),
|
| 28032 |
tejbeer |
140 |
|
| 28461 |
tejbeer |
141 |
@NamedQuery(name = "Order.selectGroupByBrandLmp", query = "select new com.spice.profitmandi.dao.model.BrandWiseModel(li.brand,"
|
| 30279 |
tejbeer |
142 |
+ " DATE_FORMAT(o.billingTimestamp,:groupParameter ),sum(cast(o.totalAmount AS integer)))"
|
| 28461 |
tejbeer |
143 |
+ " from Order o join LineItem li on o.id = li.orderId join FofoStore fs on fs.id = o.retailerId where o.status in (7,9,10,12)"
|
| 31539 |
amit.gupta |
144 |
+ " and (o.billingTimestamp between :lmsStartDate and :endDate) and fs.id in :fofoId and fs.warehouseId in :warehouseId and fs.internal = false group by li.brand,DATE_FORMAT(o.billingTimestamp, :groupParameter)"),
|
| 28461 |
tejbeer |
145 |
|
| 28486 |
tejbeer |
146 |
@NamedQuery(name = "Order.selectGrnPendingOrderQtyByCatalogId", query = "select sum(case when li.quantity is null then 0 else li.quantity end)"
|
|
|
147 |
+ " from FofoStore fs join Order o on fs.id = o.retailerId "
|
|
|
148 |
+ " join LineItem li on o.id = li.orderId join TagListing tl on tl.itemId = li.itemId "
|
| 31539 |
amit.gupta |
149 |
+ " join Item i on (i.id = tl.itemId ) where fs.active = true and fs.internal = false and"
|
| 29715 |
tejbeer |
150 |
+ " o.billingTimestamp is not null and o.refundTimestamp is null and o.partnerGrnTimestamp is null"
|
| 28486 |
tejbeer |
151 |
+ " and i.catalogItemId = :catalogItemId and fs.id = :fofoId group by i.catalogItemId, fs.id"),
|
|
|
152 |
|
|
|
153 |
@NamedQuery(name = "Order.selectPendingIndentOrderQtyByCatalogId", query = "select sum(case when li.quantity is null then 0 else li.quantity end)"
|
|
|
154 |
+ " from FofoStore fs join Order o on fs.id = o.retailerId"
|
|
|
155 |
+ " join LineItem li on o.id = li.orderId " + " join TagListing tl on tl.itemId = li.itemId "
|
|
|
156 |
+ " join Item i on i.id = tl.itemId where "
|
| 31539 |
amit.gupta |
157 |
+ " fs.active = true and fs.internal = false and o.status in (3,4)and i.catalogItemId = :catalogItemId and fs.id = :fofoId group by i.catalogItemId, fs.id"),
|
| 28486 |
tejbeer |
158 |
|
| 30687 |
amit.gupta |
159 |
@NamedQuery(name = "Order.selectTodayOrders", query = "select new com.spice.profitmandi.dao.model.BrandRegionPOModel("
|
|
|
160 |
+ " case when (pr.regionId is not null) then pr.regionId else fs.warehouseId end , li.brand, "
|
| 30017 |
amit.gupta |
161 |
+ " sum(case when (o.createTimestamp between :startDate and :endDate) then cast(o.totalAmount AS integer ) else 0 end),"
|
|
|
162 |
+ " sum(case when (o.billingTimestamp is not null and (o.createTimestamp between :startDate and :endDate)) then cast(o.totalAmount AS integer) else 0 end),"
|
|
|
163 |
+ " sum(case when o.billingTimestamp is not null then cast(o.totalAmount AS integer ) else 0 end))"
|
| 30687 |
amit.gupta |
164 |
+ " from Order o join LineItem li on o.id = li.orderId join FofoStore fs on fs.id = o.retailerId"
|
| 30689 |
amit.gupta |
165 |
+ " left join PartnerRegion pr on pr.fofoId=o.retailerId and pr.regionId=18"
|
| 31539 |
amit.gupta |
166 |
+ " where o.refundTimestamp is null and ((o.createTimestamp between :startDate and :endDate) or (o.billingTimestamp between :startDate and :endDate)) and fs.internal = false and li.brand not in ('Smartdukaan','Dummy')"
|
| 30687 |
amit.gupta |
167 |
+ " group by case when (pr.regionId is not null) then pr.regionId else fs.warehouseId end, li.brand"),
|
| 29966 |
amit.gupta |
168 |
|
| 30003 |
tejbeer |
169 |
@NamedQuery(name = "Order.selectAllPendingIndentAccessoriesTvGroupByFofoId", query = "select new com.spice.profitmandi.dao.model.InStockAccessoriesTvFofoIdModel("
|
| 30017 |
amit.gupta |
170 |
+ " o.retailerId, SUM(case when c.parentCategoryId = 10011 then CAST(o.totalAmount AS integer) else 0 end), SUM(case when c.parentCategoryId = 14200 then CAST(o.totalAmount AS integer) else 0 end))"
|
| 30003 |
tejbeer |
171 |
+ " from Order o join LineItem li on o.id = li.orderId join Item i on i.id = li.itemId join Category c on c.id = i.categoryId "
|
|
|
172 |
+ " where o.retailerId in :fofoIds and o.status in (3,4) and i.categoryId != 10006 group by o.retailerId"),
|
|
|
173 |
|
|
|
174 |
@NamedQuery(name = "Order.selectAllGrnPendingAccessoriesTvGroupByFofoId", query = "select new com.spice.profitmandi.dao.model.InStockAccessoriesTvFofoIdModel("
|
| 30017 |
amit.gupta |
175 |
+ " o.retailerId, SUM(case when c.parentCategoryId = 10011 then CAST(o.totalAmount AS integer) else 0 end), SUM(case when c.parentCategoryId = 14200 then CAST(o.totalAmount AS integer) else 0 end))"
|
| 30003 |
tejbeer |
176 |
+ " from Order o join LineItem li on o.id = li.orderId join Item i on i.id = li.itemId join Category c on c.id = i.categoryId "
|
|
|
177 |
+ " where o.retailerId in :fofoIds and o.billingTimestamp is not null and o.refundTimestamp is null and o.partnerGrnTimestamp is null and i.categoryId != 10006 group by o.retailerId"),
|
|
|
178 |
|
| 31539 |
amit.gupta |
179 |
@NamedQuery(name = "Order.selectPartnersBilledBetweenDates", query = "select new com.spice.profitmandi.dao.model.PartnerSecondaryModel(fs.warehouseId, fs.id, count(o.id), sum(o.totalAmount) )" +
|
|
|
180 |
" from FofoStore fs left join Order o on (fs.id=o.retailerId and o.billingTimestamp between :startDate and :endDate " +
|
|
|
181 |
" and o.refundTimestamp is null) where" +
|
|
|
182 |
" fs.internal = false and (fs.active= true or o.retailerId is not null) group by fs.warehouseId, fs.id"),
|
|
|
183 |
|
| 30161 |
manish |
184 |
@NamedQuery(name = "Order.selectCollectionSummary", query = "select new com.spice.profitmandi.dao.model.CollectionSummary(pot.createTimestamp, "
|
|
|
185 |
+ " pot.referenceType,sum(case when po.name = 'CASH' then cast(pot.amount As int) else 0 end),"
|
|
|
186 |
+ " sum(case when po.name = 'PINELABS' then cast(pot.amount As int) else 0 end),"
|
|
|
187 |
+ " sum(case when po.name = 'BAJAJ FINSERV' then cast(pot.amount As int) else 0 end),"
|
|
|
188 |
+ " sum(case when po.name = 'HOME CREDIT' then cast(pot.amount As int) else 0 end),"
|
|
|
189 |
+ " sum(case when po.name = 'PAYTM' then cast(pot.amount As int) else 0 end),"
|
|
|
190 |
+ " sum(case when po.name = 'CAPITAL FIRST' then cast(pot.amount As int) else 0 end),"
|
|
|
191 |
+ " sum(case when po.name = 'ZEST MONEY' then cast(pot.amount As int) else 0 end),"
|
|
|
192 |
+ " sum(case when po.name = 'SAMSUNG SURE' then cast(pot.amount As int) else 0 end),sum(cast(pot.amount As int)))"
|
|
|
193 |
+ " from PaymentOptionTransaction pot join PaymentOption po on pot.paymentOptionId=po.id join com.spice.profitmandi.dao.entity.user.User u on u.id=pot.fofoId"
|
|
|
194 |
+ " join Address a on a.id=u.addressId where 1=1 and pot.fofoId = :fofoId and pot.createTimestamp between :startDate and :endDate "
|
|
|
195 |
+ " group by (pot.createTimestamp), pot.referenceType "),
|
| 30279 |
tejbeer |
196 |
|
| 21545 |
ashik.ali |
197 |
})
|
| 30110 |
tejbeer |
198 |
//@NamedNativeQuery(name = "Order.findByEmailAddress", query = "select * from transaction.`order` o where o.id = '1694173'", resultClass = Order.class)
|
|
|
199 |
|
| 30161 |
manish |
200 |
@NamedNativeQueries({
|
| 30110 |
tejbeer |
201 |
|
| 30279 |
tejbeer |
202 |
@NamedNativeQuery(name = "selectPartnerSecondaryGroupByBrand", query = "select ifnull(a.customer_id,fs.id) as id,ifnull(a.sb,brand) as brand,a.secondary_plan,sum(a.total_price) as total_price,a.auth_id, a.commited_timestamp from "
|
|
|
203 |
+ "fofo.fofo_store fs left join (select o.customer_id , li.brand as sb, li.total_price, psp.fofo_id , psp.brand, psp.secondary_plan,psp.auth_id,psp.commited_timestamp from transaction.`order` o join transaction.lineitem li on "
|
|
|
204 |
+ "(o.id = li.order_id) left join auth.partner_secondary_plan psp on (psp.fofo_id = o.customer_id and date(psp.commited_timestamp) >= :startDate and "
|
|
|
205 |
+ "psp.active = 1 and psp.brand = li.brand ) where o.customer_id in :fofoIds and o.status in (7,9,10,12) and date(o.billing_timestamp) = :startDate"
|
|
|
206 |
+ " union select if(li.brand is null, null, o.customer_id) as customer_id, li.brand as sb, li.total_price, psp.fofo_id , psp.brand, psp.secondary_plan,psp.auth_id, psp.commited_timestamp "
|
|
|
207 |
+ " from auth.partner_secondary_plan psp left join transaction.`order` o on (psp.fofo_id = o.customer_id and o.status in (7,9,10,12) and date(o.billing_timestamp) = :startDate) "
|
|
|
208 |
+ "left join transaction.lineitem li on (o.id = li.order_id and psp.brand=li.brand) where psp.fofo_id in :fofoIds and date(psp.commited_timestamp) >= :startDate "
|
|
|
209 |
+ "and psp.active = 1) a on fs.id = a.customer_id or fs.id = a.fofo_id where fs.id in :fofoIds group by id,brand;", resultSetMapping = "partnerSecondaryPlanModel"),
|
| 30161 |
manish |
210 |
|
| 30279 |
tejbeer |
211 |
@NamedNativeQuery(name = "selectPriceDropReport", query = "select fs.code, pd.id, ci.brand,ci.model_name,"
|
|
|
212 |
+ " ci.model_number,pd.affected_on, pd.amount, pd.partner_payout, pdi.imei, pdi.status, pdi.update_timestamp, pdi.rejection_reason"
|
|
|
213 |
+ " from transaction.price_drop pd join transaction.price_drop_imei pdi on pdi.price_drop_id = pd.id join (select catalog_item_id, brand, model_name, model_number from catalog.item group by catalog_item_id )"
|
|
|
214 |
+ " ci on ci.catalog_item_id=pd.catalog_id join fofo.fofo_store fs on fs.id=pdi.retailer_id where pdi.retailer_id = :fofoId and pd.affected_on between :startDate and :endDate and pd.amount > 0;", resultSetMapping = "PriceDropReportModel")
|
|
|
215 |
|
| 30161 |
manish |
216 |
})
|
|
|
217 |
|
| 30279 |
tejbeer |
218 |
@SqlResultSetMappings({
|
| 30161 |
manish |
219 |
|
| 30279 |
tejbeer |
220 |
@SqlResultSetMapping(name = "partnerSecondaryPlanModel", classes = {
|
|
|
221 |
@ConstructorResult(targetClass = PartnerSecondaryPlanModel.class, columns = {
|
| 31020 |
tejbeer |
222 |
@ColumnResult(name = "id", type = Integer.class),
|
|
|
223 |
@ColumnResult(name = "brand", type = String.class),
|
| 30279 |
tejbeer |
224 |
@ColumnResult(name = "secondary_plan", type = Long.class),
|
|
|
225 |
@ColumnResult(name = "total_price", type = Long.class),
|
|
|
226 |
@ColumnResult(name = "auth_id", type = Integer.class),
|
| 31539 |
amit.gupta |
227 |
@ColumnResult(name = "commited_timestamp", type = LocalDateTime.class)})}),
|
| 30279 |
tejbeer |
228 |
|
|
|
229 |
@SqlResultSetMapping(name = "PriceDropReportModel", classes = {
|
|
|
230 |
@ConstructorResult(targetClass = PriceDropReportModel.class, columns = {
|
|
|
231 |
@ColumnResult(name = "code", type = String.class),
|
|
|
232 |
@ColumnResult(name = "id", type = Integer.class),
|
|
|
233 |
@ColumnResult(name = "brand", type = String.class),
|
|
|
234 |
@ColumnResult(name = "model_name", type = String.class),
|
|
|
235 |
@ColumnResult(name = "model_number", type = String.class),
|
|
|
236 |
@ColumnResult(name = "affected_on", type = LocalDateTime.class),
|
|
|
237 |
@ColumnResult(name = "amount", type = Float.class),
|
|
|
238 |
@ColumnResult(name = "partner_payout", type = Float.class),
|
|
|
239 |
@ColumnResult(name = "imei", type = String.class),
|
|
|
240 |
@ColumnResult(name = "status", type = String.class),
|
|
|
241 |
@ColumnResult(name = "update_timestamp", type = LocalDateTime.class),
|
| 31539 |
amit.gupta |
242 |
@ColumnResult(name = "rejection_reason", type = String.class),})})
|
| 30279 |
tejbeer |
243 |
|
| 30161 |
manish |
244 |
})
|
|
|
245 |
|
| 27723 |
tejbeer |
246 |
public class Order implements Serializable {
|
|
|
247 |
|
| 21545 |
ashik.ali |
248 |
private static final long serialVersionUID = 1L;
|
|
|
249 |
@Id
|
| 27723 |
tejbeer |
250 |
@Column(name = "id", unique = true, updatable = false)
|
| 21545 |
ashik.ali |
251 |
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
| 21629 |
kshitij.so |
252 |
private Integer id;
|
| 21545 |
ashik.ali |
253 |
@Column(name = "warehouse_id")
|
| 21629 |
kshitij.so |
254 |
private Integer warehouseId;
|
| 21545 |
ashik.ali |
255 |
@Column(name = "seller_id")
|
| 21629 |
kshitij.so |
256 |
private Integer sellerId;
|
| 21545 |
ashik.ali |
257 |
@Column(name = "warehouse_address_id")
|
| 21629 |
kshitij.so |
258 |
private Integer warehouseAddressId;
|
| 21545 |
ashik.ali |
259 |
@Column(name = "logistics_provider_id")
|
| 21629 |
kshitij.so |
260 |
private Integer logisticsProviderId;
|
| 21614 |
kshitij.so |
261 |
@Column(name = "airwaybill_no", length = 50)
|
| 21545 |
ashik.ali |
262 |
private String airwayBillNumber;
|
|
|
263 |
@Column(name = "tracking_id", length = 50)
|
|
|
264 |
private String trackingId;
|
| 22009 |
ashik.ali |
265 |
@Convert(converter = LocalDateTimeAttributeConverter.class)
|
| 21545 |
ashik.ali |
266 |
@Column(name = "expected_delivery_time")
|
|
|
267 |
private LocalDateTime expectedDeliveryTime;
|
| 22009 |
ashik.ali |
268 |
@Convert(converter = LocalDateTimeAttributeConverter.class)
|
| 21545 |
ashik.ali |
269 |
@Column(name = "promised_delivery_time")
|
|
|
270 |
private LocalDateTime promisedDeliveryTime;
|
| 22009 |
ashik.ali |
271 |
@Convert(converter = LocalDateTimeAttributeConverter.class)
|
| 21545 |
ashik.ali |
272 |
@Column(name = "expected_shipping_time")
|
|
|
273 |
private LocalDateTime expectedShippingTime;
|
| 22009 |
ashik.ali |
274 |
@Convert(converter = LocalDateTimeAttributeConverter.class)
|
| 21545 |
ashik.ali |
275 |
@Column(name = "promised_shipping_time")
|
|
|
276 |
private LocalDateTime promisedShippingTime;
|
| 23884 |
amit.gupta |
277 |
@Convert(converter = LocalDateTimeAttributeConverter.class)
|
|
|
278 |
@Column(name = "partner_grn_timestamp")
|
|
|
279 |
private LocalDateTime partnerGrnTimestamp;
|
| 31166 |
amit.gupta |
280 |
@Transient
|
|
|
281 |
private List<String> returnedImeis;
|
| 21545 |
ashik.ali |
282 |
@Column(name = "customer_id")
|
| 21629 |
kshitij.so |
283 |
private Integer retailerId;
|
| 21545 |
ashik.ali |
284 |
@Column(name = "customer_name", length = 50)
|
|
|
285 |
private String retailerName;
|
|
|
286 |
@Column(name = "customer_mobilenumber", length = 20)
|
|
|
287 |
private String retailerMobileNumber;
|
|
|
288 |
@Column(name = "customer_pincode", length = 10)
|
|
|
289 |
private String retailerPinCode;
|
|
|
290 |
@Column(name = "customer_address1", length = 100)
|
|
|
291 |
private String retailerAddress1;
|
|
|
292 |
@Column(name = "customer_address2", length = 100)
|
|
|
293 |
private String retailerAddress2;
|
|
|
294 |
@Column(name = "customer_city", length = 100)
|
|
|
295 |
private String retailerCity;
|
|
|
296 |
@Column(name = "customer_state", length = 100)
|
|
|
297 |
private String retailerState;
|
|
|
298 |
@Column(name = "customer_email", length = 50)
|
|
|
299 |
private String retailerEmailId;
|
|
|
300 |
@Column(name = "status")
|
|
|
301 |
@Enumerated(EnumType.ORDINAL)
|
|
|
302 |
private OrderStatus status;
|
|
|
303 |
@Column(name = "statusDescription", length = 50)
|
|
|
304 |
private String statusDescription;
|
|
|
305 |
@Column(name = "total_amount")
|
| 21629 |
kshitij.so |
306 |
private Float totalAmount;
|
| 21545 |
ashik.ali |
307 |
@Column(name = "gvAmount")
|
| 21629 |
kshitij.so |
308 |
private Float gvAmount;
|
| 21545 |
ashik.ali |
309 |
@Column(name = "total_weight")
|
| 21629 |
kshitij.so |
310 |
private Float totalWeight;
|
| 21545 |
ashik.ali |
311 |
@Column(name = "invoice_number", length = 30)
|
|
|
312 |
private String invoiceNumber;
|
|
|
313 |
@Column(name = "billed_by", length = 30)
|
|
|
314 |
private String billedBy;
|
| 22009 |
ashik.ali |
315 |
@Convert(converter = LocalDateTimeAttributeConverter.class)
|
| 21545 |
ashik.ali |
316 |
@Column(name = "created_timestamp")
|
|
|
317 |
private LocalDateTime createTimestamp;
|
| 22009 |
ashik.ali |
318 |
@Convert(converter = LocalDateTimeAttributeConverter.class)
|
| 21545 |
ashik.ali |
319 |
@Column(name = "accepted_timestamp")
|
|
|
320 |
private LocalDateTime acceptedTimestamp;
|
| 22009 |
ashik.ali |
321 |
@Convert(converter = LocalDateTimeAttributeConverter.class)
|
| 21545 |
ashik.ali |
322 |
@Column(name = "billing_timestamp")
|
|
|
323 |
private LocalDateTime billingTimestamp;
|
| 22009 |
ashik.ali |
324 |
@Convert(converter = LocalDateTimeAttributeConverter.class)
|
| 21545 |
ashik.ali |
325 |
@Column(name = "shipping_timestamp")
|
|
|
326 |
private LocalDateTime shippingTimestamp;
|
| 22009 |
ashik.ali |
327 |
@Convert(converter = LocalDateTimeAttributeConverter.class)
|
| 21545 |
ashik.ali |
328 |
@Column(name = "pickup_timestamp")
|
|
|
329 |
private LocalDateTime pickupTimestamp;
|
| 22009 |
ashik.ali |
330 |
@Convert(converter = LocalDateTimeAttributeConverter.class)
|
| 21545 |
ashik.ali |
331 |
@Column(name = "delivery_timestamp")
|
|
|
332 |
private LocalDateTime deliveryTimestamp;
|
| 22009 |
ashik.ali |
333 |
@Convert(converter = LocalDateTimeAttributeConverter.class)
|
| 21545 |
ashik.ali |
334 |
@Column(name = "outofstock_timestamp")
|
|
|
335 |
private LocalDateTime outOfStockTimestamp;
|
|
|
336 |
@Column(name = "transaction_id")
|
| 27723 |
tejbeer |
337 |
private Integer transactionId;
|
| 21545 |
ashik.ali |
338 |
@Column(name = "receiver", length = 50)
|
|
|
339 |
private String receiver;
|
|
|
340 |
@Column(name = "batchNo")
|
| 21629 |
kshitij.so |
341 |
private Integer batchNumber;
|
| 21545 |
ashik.ali |
342 |
@Column(name = "serialNo")
|
| 21629 |
kshitij.so |
343 |
private Integer serialNumber;
|
| 27723 |
tejbeer |
344 |
@Column(name = "doaFlag", columnDefinition = "tinyInteger(1) default 0")
|
| 21629 |
kshitij.so |
345 |
private Boolean doaFlag;
|
| 21545 |
ashik.ali |
346 |
@Column(name = "pickupRequestNo")
|
| 21629 |
kshitij.so |
347 |
private Integer pickupRequestNumber;
|
| 27723 |
tejbeer |
348 |
|
| 31539 |
amit.gupta |
349 |
/*
|
|
|
350 |
* @Column(name = "jacket_number", length = 10) private Integer jacketNumber;
|
|
|
351 |
*/
|
| 21545 |
ashik.ali |
352 |
@Column(name = "new_order_id")
|
| 21629 |
kshitij.so |
353 |
private Integer newOrderId;
|
| 21545 |
ashik.ali |
354 |
@Column(name = "doa_auth_timestamp")
|
|
|
355 |
private LocalDateTime doaAuthTimestamp;
|
| 22009 |
ashik.ali |
356 |
@Convert(converter = LocalDateTimeAttributeConverter.class)
|
| 21545 |
ashik.ali |
357 |
@Column(name = "doa_pickup_timestamp")
|
|
|
358 |
private LocalDateTime doaPickupTimestamp;
|
| 22009 |
ashik.ali |
359 |
@Convert(converter = LocalDateTimeAttributeConverter.class)
|
| 21545 |
ashik.ali |
360 |
@Column(name = "received_return_timestamp")
|
|
|
361 |
private LocalDateTime receiverReturnTimestamp;
|
| 22009 |
ashik.ali |
362 |
@Convert(converter = LocalDateTimeAttributeConverter.class)
|
| 21545 |
ashik.ali |
363 |
@Column(name = "reship_timestamp")
|
|
|
364 |
private LocalDateTime reShipTimestamp;
|
| 22009 |
ashik.ali |
365 |
@Convert(converter = LocalDateTimeAttributeConverter.class)
|
| 21545 |
ashik.ali |
366 |
@Column(name = "refund_timestamp")
|
|
|
367 |
private LocalDateTime refundTimestamp;
|
|
|
368 |
@Column(name = "purchase_order_id")
|
| 21629 |
kshitij.so |
369 |
private Integer purchaseOrderId;
|
| 27723 |
tejbeer |
370 |
@Column(name = "cod", columnDefinition = "tinyInteger(1) default 0")
|
| 21629 |
kshitij.so |
371 |
private Boolean cod;
|
| 22009 |
ashik.ali |
372 |
@Convert(converter = LocalDateTimeAttributeConverter.class)
|
| 21545 |
ashik.ali |
373 |
@Column(name = "verification_timestamp")
|
|
|
374 |
private LocalDateTime verificationTimestamp;
|
| 21629 |
kshitij.so |
375 |
@Column(name = "refunded_by", length = 30)
|
| 21545 |
ashik.ali |
376 |
private String refundBy;
|
|
|
377 |
@Column(name = "refund_reason", length = 256)
|
|
|
378 |
private String refundReason;
|
| 22009 |
ashik.ali |
379 |
@Convert(converter = LocalDateTimeAttributeConverter.class)
|
| 21545 |
ashik.ali |
380 |
@Column(name = "cod_reconciliation_timestamp")
|
|
|
381 |
private LocalDateTime codReconciliationTimestamp;
|
| 21629 |
kshitij.so |
382 |
private Integer previousStatus;
|
| 21545 |
ashik.ali |
383 |
@Column(name = "vendorId")
|
| 21629 |
kshitij.so |
384 |
private Integer vendorId;
|
| 21545 |
ashik.ali |
385 |
@Column(name = "delayReasonText", length = 250)
|
|
|
386 |
private String delayReasonText;
|
|
|
387 |
@Column(name = "doa_logistics_provider_id")
|
| 21629 |
kshitij.so |
388 |
private Integer doaLogisticsProviderId;
|
| 27723 |
tejbeer |
389 |
|
| 31539 |
amit.gupta |
390 |
/*
|
|
|
391 |
* @Column(name = "delay_reason") private DelayReason delayReason;
|
|
|
392 |
*/
|
| 27723 |
tejbeer |
393 |
@Column(name = "vendor_paid", columnDefinition = "tinyInteger(1) default 0")
|
| 21629 |
kshitij.so |
394 |
private Boolean vendorPaid;
|
| 22009 |
ashik.ali |
395 |
@Convert(converter = LocalDateTimeAttributeConverter.class)
|
| 21545 |
ashik.ali |
396 |
@Column(name = "local_connected_timestamp")
|
|
|
397 |
private LocalDateTime localConnectedTimestamp;
|
| 22009 |
ashik.ali |
398 |
@Convert(converter = LocalDateTimeAttributeConverter.class)
|
| 21545 |
ashik.ali |
399 |
@Column(name = "reached_destination_timestamp")
|
|
|
400 |
private LocalDateTime reachedDestinationTimestamp;
|
| 22009 |
ashik.ali |
401 |
@Convert(converter = LocalDateTimeAttributeConverter.class)
|
| 21545 |
ashik.ali |
402 |
@Column(name = "first_dlvyatmp_timestamp")
|
|
|
403 |
private LocalDateTime firstDlvyatmpTimestamp;
|
|
|
404 |
@Column(name = "originalOrderId")
|
| 21629 |
kshitij.so |
405 |
private Integer originalOrderId;
|
| 21545 |
ashik.ali |
406 |
@Column(name = "fulfilmentWarehouseId")
|
| 21629 |
kshitij.so |
407 |
private Integer fulfilmentWarehouseId;
|
| 21545 |
ashik.ali |
408 |
@Column(name = "orderType")
|
| 21629 |
kshitij.so |
409 |
private Integer orderType;
|
| 21545 |
ashik.ali |
410 |
@Column(name = "pickupStoreId")
|
| 21629 |
kshitij.so |
411 |
private Integer pickupStoreId;
|
| 27723 |
tejbeer |
412 |
@Column(name = "otg", columnDefinition = "tinyInteger(1) default 0")
|
| 21629 |
kshitij.so |
413 |
private Boolean otg;
|
| 22009 |
ashik.ali |
414 |
@Convert(converter = LocalDateTimeAttributeConverter.class)
|
| 21545 |
ashik.ali |
415 |
@Column(name = "courier_delivery_time")
|
|
|
416 |
private LocalDateTime courierDeliveryTimestamp;
|
|
|
417 |
@Column(name = "insurer")
|
| 21629 |
kshitij.so |
418 |
private Integer insurer;
|
| 21545 |
ashik.ali |
419 |
@Column(name = "insuranceAmount")
|
| 21629 |
kshitij.so |
420 |
private Float insuranceAmount;
|
| 21545 |
ashik.ali |
421 |
@Column(name = "freebieItemId")
|
| 21629 |
kshitij.so |
422 |
private Integer freebieItemId;
|
| 21545 |
ashik.ali |
423 |
@Column(name = "source")
|
| 21629 |
kshitij.so |
424 |
private Integer source;
|
| 21545 |
ashik.ali |
425 |
@Column(name = "advanceAmount")
|
| 21629 |
kshitij.so |
426 |
private Float advanceAmount;
|
| 21545 |
ashik.ali |
427 |
@Column(name = "storeId")
|
| 21629 |
kshitij.so |
428 |
private Integer storeId;
|
| 21545 |
ashik.ali |
429 |
@Column(name = "productCondition")
|
| 21629 |
kshitij.so |
430 |
private Integer productCondition;
|
| 21545 |
ashik.ali |
431 |
@Column(name = "dataProtectionInsurer")
|
| 21629 |
kshitij.so |
432 |
private Integer dataProtectionInsurer;
|
| 21545 |
ashik.ali |
433 |
@Column(name = "dataProtectionAmount")
|
| 21629 |
kshitij.so |
434 |
private Integer dataProtectionAmount;
|
| 21545 |
ashik.ali |
435 |
@Column(name = "taxType")
|
| 21629 |
kshitij.so |
436 |
@Enumerated(EnumType.ORDINAL)
|
| 21545 |
ashik.ali |
437 |
private TaxType taxType;
|
|
|
438 |
@Column(name = "logisticsTransactionId", length = 100)
|
|
|
439 |
private String logisticsTransactionId;
|
|
|
440 |
@Column(name = "shippingCost")
|
| 21629 |
kshitij.so |
441 |
private Float shippingCost;
|
| 21545 |
ashik.ali |
442 |
@Column(name = "codCharges")
|
| 21629 |
kshitij.so |
443 |
private Float codCharges;
|
| 21545 |
ashik.ali |
444 |
@Column(name = "wallet_amount")
|
| 21629 |
kshitij.so |
445 |
private Float walletAmount;
|
| 21545 |
ashik.ali |
446 |
@Column(name = "net_payable_amount")
|
| 21629 |
kshitij.so |
447 |
private Float netPayableAmount;
|
| 21545 |
ashik.ali |
448 |
@Column(name = "shippingRefund")
|
| 21629 |
kshitij.so |
449 |
private Float shippingRefund;
|
| 30289 |
amit.gupta |
450 |
@Column(name = "irn_generated")
|
| 30321 |
amit.gupta |
451 |
private Boolean irnGenerated;
|
| 31020 |
tejbeer |
452 |
@Column(name = "shipment_hold")
|
|
|
453 |
private Boolean shipmentHold;
|
| 27723 |
tejbeer |
454 |
@ManyToOne(cascade = CascadeType.ALL, fetch = FetchType.EAGER)
|
| 28677 |
amit.gupta |
455 |
@JoinColumn(name = "id", insertable = false, updatable = false, nullable = false, referencedColumnName = "order_id")
|
| 21653 |
ashik.ali |
456 |
private LineItem lineItem;
|
| 27723 |
tejbeer |
457 |
|
| 31539 |
amit.gupta |
458 |
public Order() {
|
|
|
459 |
}
|
|
|
460 |
|
|
|
461 |
public LocalDateTime getPartnerGrnTimestamp() {
|
|
|
462 |
return partnerGrnTimestamp;
|
|
|
463 |
}
|
|
|
464 |
|
|
|
465 |
public void setPartnerGrnTimestamp(LocalDateTime partnerGrnTimestamp) {
|
|
|
466 |
this.partnerGrnTimestamp = partnerGrnTimestamp;
|
|
|
467 |
}
|
|
|
468 |
|
|
|
469 |
public List<String> getReturnedImeis() {
|
|
|
470 |
return returnedImeis;
|
|
|
471 |
}
|
|
|
472 |
|
|
|
473 |
public void setReturnedImeis(List<String> returnedImeis) {
|
|
|
474 |
this.returnedImeis = returnedImeis;
|
|
|
475 |
}
|
|
|
476 |
|
| 21629 |
kshitij.so |
477 |
public Integer getId() {
|
| 21545 |
ashik.ali |
478 |
return id;
|
|
|
479 |
}
|
| 27723 |
tejbeer |
480 |
|
| 21629 |
kshitij.so |
481 |
public void setId(Integer id) {
|
| 21545 |
ashik.ali |
482 |
this.id = id;
|
|
|
483 |
}
|
| 27723 |
tejbeer |
484 |
|
| 21629 |
kshitij.so |
485 |
public Integer getWarehouseId() {
|
| 21545 |
ashik.ali |
486 |
return warehouseId;
|
|
|
487 |
}
|
| 27723 |
tejbeer |
488 |
|
| 21629 |
kshitij.so |
489 |
public void setWarehouseId(Integer warehouseId) {
|
| 21545 |
ashik.ali |
490 |
this.warehouseId = warehouseId;
|
|
|
491 |
}
|
| 27723 |
tejbeer |
492 |
|
| 21629 |
kshitij.so |
493 |
public Integer getSellerId() {
|
| 21545 |
ashik.ali |
494 |
return sellerId;
|
|
|
495 |
}
|
| 27723 |
tejbeer |
496 |
|
| 21629 |
kshitij.so |
497 |
public void setSellerId(Integer sellerId) {
|
| 21545 |
ashik.ali |
498 |
this.sellerId = sellerId;
|
|
|
499 |
}
|
| 27723 |
tejbeer |
500 |
|
| 21629 |
kshitij.so |
501 |
public Integer getWarehouseAddressId() {
|
| 21545 |
ashik.ali |
502 |
return warehouseAddressId;
|
|
|
503 |
}
|
| 27723 |
tejbeer |
504 |
|
| 21629 |
kshitij.so |
505 |
public void setWarehouseAddressId(Integer warehouseAddressId) {
|
| 21545 |
ashik.ali |
506 |
this.warehouseAddressId = warehouseAddressId;
|
|
|
507 |
}
|
| 27723 |
tejbeer |
508 |
|
| 21629 |
kshitij.so |
509 |
public Integer getLogisticsProviderId() {
|
| 21545 |
ashik.ali |
510 |
return logisticsProviderId;
|
|
|
511 |
}
|
| 27723 |
tejbeer |
512 |
|
| 21629 |
kshitij.so |
513 |
public void setLogisticsProviderId(Integer logisticsProviderId) {
|
| 21545 |
ashik.ali |
514 |
this.logisticsProviderId = logisticsProviderId;
|
|
|
515 |
}
|
| 27723 |
tejbeer |
516 |
|
| 21545 |
ashik.ali |
517 |
public String getAirwayBillNumber() {
|
|
|
518 |
return airwayBillNumber;
|
|
|
519 |
}
|
| 27723 |
tejbeer |
520 |
|
| 21545 |
ashik.ali |
521 |
public void setAirwayBillNumber(String airwayBillNumber) {
|
|
|
522 |
this.airwayBillNumber = airwayBillNumber;
|
|
|
523 |
}
|
| 27723 |
tejbeer |
524 |
|
| 21545 |
ashik.ali |
525 |
public String getTrackingId() {
|
|
|
526 |
return trackingId;
|
|
|
527 |
}
|
| 27723 |
tejbeer |
528 |
|
| 21545 |
ashik.ali |
529 |
public void setTrackingId(String trackingId) {
|
|
|
530 |
this.trackingId = trackingId;
|
|
|
531 |
}
|
| 27723 |
tejbeer |
532 |
|
| 21545 |
ashik.ali |
533 |
public LocalDateTime getExpectedDeliveryTime() {
|
|
|
534 |
return expectedDeliveryTime;
|
|
|
535 |
}
|
| 27723 |
tejbeer |
536 |
|
| 21545 |
ashik.ali |
537 |
public void setExpectedDeliveryTime(LocalDateTime expectedDeliveryTime) {
|
|
|
538 |
this.expectedDeliveryTime = expectedDeliveryTime;
|
|
|
539 |
}
|
| 27723 |
tejbeer |
540 |
|
| 21545 |
ashik.ali |
541 |
public LocalDateTime getPromisedDeliveryTime() {
|
|
|
542 |
return promisedDeliveryTime;
|
|
|
543 |
}
|
| 27723 |
tejbeer |
544 |
|
| 21545 |
ashik.ali |
545 |
public void setPromisedDeliveryTime(LocalDateTime promisedDeliveryTime) {
|
|
|
546 |
this.promisedDeliveryTime = promisedDeliveryTime;
|
|
|
547 |
}
|
| 27723 |
tejbeer |
548 |
|
| 21545 |
ashik.ali |
549 |
public LocalDateTime getExpectedShippingTime() {
|
|
|
550 |
return expectedShippingTime;
|
|
|
551 |
}
|
| 27723 |
tejbeer |
552 |
|
| 21545 |
ashik.ali |
553 |
public void setExpectedShippingTime(LocalDateTime expectedShippingTime) {
|
|
|
554 |
this.expectedShippingTime = expectedShippingTime;
|
|
|
555 |
}
|
| 27723 |
tejbeer |
556 |
|
| 21545 |
ashik.ali |
557 |
public LocalDateTime getPromisedShippingTime() {
|
|
|
558 |
return promisedShippingTime;
|
|
|
559 |
}
|
| 27723 |
tejbeer |
560 |
|
| 21545 |
ashik.ali |
561 |
public void setPromisedShippingTime(LocalDateTime promisedShippingTime) {
|
|
|
562 |
this.promisedShippingTime = promisedShippingTime;
|
|
|
563 |
}
|
| 27723 |
tejbeer |
564 |
|
| 21629 |
kshitij.so |
565 |
public Integer getRetailerId() {
|
| 21545 |
ashik.ali |
566 |
return retailerId;
|
|
|
567 |
}
|
| 27723 |
tejbeer |
568 |
|
| 21629 |
kshitij.so |
569 |
public void setRetailerId(Integer retailerId) {
|
| 21545 |
ashik.ali |
570 |
this.retailerId = retailerId;
|
|
|
571 |
}
|
| 27723 |
tejbeer |
572 |
|
| 21545 |
ashik.ali |
573 |
public String getRetailerName() {
|
|
|
574 |
return retailerName;
|
|
|
575 |
}
|
| 27723 |
tejbeer |
576 |
|
| 21545 |
ashik.ali |
577 |
public void setRetailerName(String retailerName) {
|
|
|
578 |
this.retailerName = retailerName;
|
|
|
579 |
}
|
| 27723 |
tejbeer |
580 |
|
| 21545 |
ashik.ali |
581 |
public String getRetailerMobileNumber() {
|
|
|
582 |
return retailerMobileNumber;
|
|
|
583 |
}
|
| 27723 |
tejbeer |
584 |
|
| 21545 |
ashik.ali |
585 |
public void setRetailerMobileNumber(String retailerMobileNumber) {
|
|
|
586 |
this.retailerMobileNumber = retailerMobileNumber;
|
|
|
587 |
}
|
| 27723 |
tejbeer |
588 |
|
| 21545 |
ashik.ali |
589 |
public String getRetailerPinCode() {
|
|
|
590 |
return retailerPinCode;
|
|
|
591 |
}
|
| 27723 |
tejbeer |
592 |
|
| 21545 |
ashik.ali |
593 |
public void setRetailerPinCode(String retailerPinCode) {
|
|
|
594 |
this.retailerPinCode = retailerPinCode;
|
|
|
595 |
}
|
| 27723 |
tejbeer |
596 |
|
| 21545 |
ashik.ali |
597 |
public String getRetailerAddress1() {
|
|
|
598 |
return retailerAddress1;
|
|
|
599 |
}
|
| 27723 |
tejbeer |
600 |
|
| 21545 |
ashik.ali |
601 |
public void setRetailerAddress1(String retailerAddress1) {
|
|
|
602 |
this.retailerAddress1 = retailerAddress1;
|
|
|
603 |
}
|
| 27723 |
tejbeer |
604 |
|
| 21545 |
ashik.ali |
605 |
public String getRetailerAddress2() {
|
|
|
606 |
return retailerAddress2;
|
|
|
607 |
}
|
| 27723 |
tejbeer |
608 |
|
| 21545 |
ashik.ali |
609 |
public void setRetailerAddress2(String retailerAddress2) {
|
|
|
610 |
this.retailerAddress2 = retailerAddress2;
|
|
|
611 |
}
|
| 27723 |
tejbeer |
612 |
|
| 21545 |
ashik.ali |
613 |
public String getRetailerCity() {
|
|
|
614 |
return retailerCity;
|
|
|
615 |
}
|
| 27723 |
tejbeer |
616 |
|
| 21545 |
ashik.ali |
617 |
public void setRetailerCity(String retailerCity) {
|
|
|
618 |
this.retailerCity = retailerCity;
|
|
|
619 |
}
|
| 27723 |
tejbeer |
620 |
|
| 21545 |
ashik.ali |
621 |
public String getRetailerState() {
|
|
|
622 |
return retailerState;
|
|
|
623 |
}
|
| 27723 |
tejbeer |
624 |
|
| 21545 |
ashik.ali |
625 |
public void setRetailerState(String retailerState) {
|
|
|
626 |
this.retailerState = retailerState;
|
|
|
627 |
}
|
| 27723 |
tejbeer |
628 |
|
| 21545 |
ashik.ali |
629 |
public String getRetailerEmailId() {
|
|
|
630 |
return retailerEmailId;
|
|
|
631 |
}
|
| 27723 |
tejbeer |
632 |
|
| 21545 |
ashik.ali |
633 |
public void setRetailerEmailId(String retailerEmailId) {
|
|
|
634 |
this.retailerEmailId = retailerEmailId;
|
|
|
635 |
}
|
| 27723 |
tejbeer |
636 |
|
| 21545 |
ashik.ali |
637 |
public OrderStatus getStatus() {
|
|
|
638 |
return status;
|
|
|
639 |
}
|
| 27723 |
tejbeer |
640 |
|
| 21545 |
ashik.ali |
641 |
public void setStatus(OrderStatus status) {
|
|
|
642 |
this.status = status;
|
|
|
643 |
}
|
| 27723 |
tejbeer |
644 |
|
| 21545 |
ashik.ali |
645 |
public String getStatusDescription() {
|
|
|
646 |
return statusDescription;
|
|
|
647 |
}
|
| 27723 |
tejbeer |
648 |
|
| 21545 |
ashik.ali |
649 |
public void setStatusDescription(String statusDescription) {
|
|
|
650 |
this.statusDescription = statusDescription;
|
|
|
651 |
}
|
| 27723 |
tejbeer |
652 |
|
| 21629 |
kshitij.so |
653 |
public Float getTotalAmount() {
|
| 21545 |
ashik.ali |
654 |
return totalAmount;
|
|
|
655 |
}
|
| 27723 |
tejbeer |
656 |
|
| 21629 |
kshitij.so |
657 |
public void setTotalAmount(Float totalAmount) {
|
| 21545 |
ashik.ali |
658 |
this.totalAmount = totalAmount;
|
|
|
659 |
}
|
| 27723 |
tejbeer |
660 |
|
| 21629 |
kshitij.so |
661 |
public Float getGvAmount() {
|
| 21545 |
ashik.ali |
662 |
return gvAmount;
|
|
|
663 |
}
|
| 27723 |
tejbeer |
664 |
|
| 21629 |
kshitij.so |
665 |
public void setGvAmount(Float gvAmount) {
|
| 21545 |
ashik.ali |
666 |
this.gvAmount = gvAmount;
|
|
|
667 |
}
|
| 27723 |
tejbeer |
668 |
|
| 21629 |
kshitij.so |
669 |
public Float getTotalWeight() {
|
| 21545 |
ashik.ali |
670 |
return totalWeight;
|
|
|
671 |
}
|
| 27723 |
tejbeer |
672 |
|
| 21629 |
kshitij.so |
673 |
public void setTotalWeight(Float totalWeight) {
|
| 21545 |
ashik.ali |
674 |
this.totalWeight = totalWeight;
|
|
|
675 |
}
|
| 27723 |
tejbeer |
676 |
|
| 21545 |
ashik.ali |
677 |
public String getInvoiceNumber() {
|
|
|
678 |
return invoiceNumber;
|
|
|
679 |
}
|
| 27723 |
tejbeer |
680 |
|
| 21545 |
ashik.ali |
681 |
public void setInvoiceNumber(String invoiceNumber) {
|
|
|
682 |
this.invoiceNumber = invoiceNumber;
|
|
|
683 |
}
|
| 27723 |
tejbeer |
684 |
|
| 21545 |
ashik.ali |
685 |
public String getBilledBy() {
|
|
|
686 |
return billedBy;
|
|
|
687 |
}
|
| 27723 |
tejbeer |
688 |
|
| 21545 |
ashik.ali |
689 |
public void setBilledBy(String billedBy) {
|
|
|
690 |
this.billedBy = billedBy;
|
|
|
691 |
}
|
| 27723 |
tejbeer |
692 |
|
| 21545 |
ashik.ali |
693 |
public LocalDateTime getCreateTimestamp() {
|
|
|
694 |
return createTimestamp;
|
|
|
695 |
}
|
| 27723 |
tejbeer |
696 |
|
| 21545 |
ashik.ali |
697 |
public void setCreateTimestamp(LocalDateTime createTimestamp) {
|
|
|
698 |
this.createTimestamp = createTimestamp;
|
|
|
699 |
}
|
| 27723 |
tejbeer |
700 |
|
| 21545 |
ashik.ali |
701 |
public LocalDateTime getAcceptedTimestamp() {
|
|
|
702 |
return acceptedTimestamp;
|
|
|
703 |
}
|
| 27723 |
tejbeer |
704 |
|
| 21545 |
ashik.ali |
705 |
public void setAcceptedTimestamp(LocalDateTime acceptedTimestamp) {
|
|
|
706 |
this.acceptedTimestamp = acceptedTimestamp;
|
|
|
707 |
}
|
| 27723 |
tejbeer |
708 |
|
| 21545 |
ashik.ali |
709 |
public LocalDateTime getBillingTimestamp() {
|
|
|
710 |
return billingTimestamp;
|
|
|
711 |
}
|
| 27723 |
tejbeer |
712 |
|
| 21545 |
ashik.ali |
713 |
public void setBillingTimestamp(LocalDateTime billingTimestamp) {
|
|
|
714 |
this.billingTimestamp = billingTimestamp;
|
|
|
715 |
}
|
| 27723 |
tejbeer |
716 |
|
| 21545 |
ashik.ali |
717 |
public LocalDateTime getShippingTimestamp() {
|
|
|
718 |
return shippingTimestamp;
|
|
|
719 |
}
|
| 27723 |
tejbeer |
720 |
|
| 21545 |
ashik.ali |
721 |
public void setShippingTimestamp(LocalDateTime shippingTimestamp) {
|
|
|
722 |
this.shippingTimestamp = shippingTimestamp;
|
|
|
723 |
}
|
| 27723 |
tejbeer |
724 |
|
| 21545 |
ashik.ali |
725 |
public LocalDateTime getPickupTimestamp() {
|
|
|
726 |
return pickupTimestamp;
|
|
|
727 |
}
|
| 27723 |
tejbeer |
728 |
|
| 21545 |
ashik.ali |
729 |
public void setPickupTimestamp(LocalDateTime pickupTimestamp) {
|
|
|
730 |
this.pickupTimestamp = pickupTimestamp;
|
|
|
731 |
}
|
| 27723 |
tejbeer |
732 |
|
| 21545 |
ashik.ali |
733 |
public LocalDateTime getDeliveryTimestamp() {
|
|
|
734 |
return deliveryTimestamp;
|
|
|
735 |
}
|
| 27723 |
tejbeer |
736 |
|
| 21545 |
ashik.ali |
737 |
public void setDeliveryTimestamp(LocalDateTime deliveryTimestamp) {
|
|
|
738 |
this.deliveryTimestamp = deliveryTimestamp;
|
|
|
739 |
}
|
| 27723 |
tejbeer |
740 |
|
| 21545 |
ashik.ali |
741 |
public LocalDateTime getOutOfStockTimestamp() {
|
|
|
742 |
return outOfStockTimestamp;
|
|
|
743 |
}
|
| 27723 |
tejbeer |
744 |
|
| 21545 |
ashik.ali |
745 |
public void setOutOfStockTimestamp(LocalDateTime outOfStockTimestamp) {
|
|
|
746 |
this.outOfStockTimestamp = outOfStockTimestamp;
|
|
|
747 |
}
|
| 27723 |
tejbeer |
748 |
|
| 21629 |
kshitij.so |
749 |
public Integer getTransactionId() {
|
| 21545 |
ashik.ali |
750 |
return transactionId;
|
|
|
751 |
}
|
| 27723 |
tejbeer |
752 |
|
| 21629 |
kshitij.so |
753 |
public void setTransactionId(Integer transactionId) {
|
| 21545 |
ashik.ali |
754 |
this.transactionId = transactionId;
|
|
|
755 |
}
|
| 27723 |
tejbeer |
756 |
|
|
|
757 |
/*
|
|
|
758 |
* public Integer getJacketNumber() { return jacketNumber; } public void
|
|
|
759 |
* setJacketNumber(Integer jacketNumber) { this.jacketNumber = jacketNumber; }
|
|
|
760 |
*/
|
| 21545 |
ashik.ali |
761 |
public String getReceiver() {
|
|
|
762 |
return receiver;
|
|
|
763 |
}
|
| 27723 |
tejbeer |
764 |
|
| 21545 |
ashik.ali |
765 |
public void setReceiver(String receiver) {
|
|
|
766 |
this.receiver = receiver;
|
|
|
767 |
}
|
| 27723 |
tejbeer |
768 |
|
| 21629 |
kshitij.so |
769 |
public Integer getBatchNumber() {
|
| 21545 |
ashik.ali |
770 |
return batchNumber;
|
|
|
771 |
}
|
| 27723 |
tejbeer |
772 |
|
| 21629 |
kshitij.so |
773 |
public void setBatchNumber(Integer batchNumber) {
|
| 21545 |
ashik.ali |
774 |
this.batchNumber = batchNumber;
|
|
|
775 |
}
|
| 27723 |
tejbeer |
776 |
|
| 21629 |
kshitij.so |
777 |
public Integer getSerialNumber() {
|
| 21545 |
ashik.ali |
778 |
return serialNumber;
|
|
|
779 |
}
|
| 27723 |
tejbeer |
780 |
|
| 21629 |
kshitij.so |
781 |
public void setSerialNumber(Integer serialNumber) {
|
| 21545 |
ashik.ali |
782 |
this.serialNumber = serialNumber;
|
|
|
783 |
}
|
| 27723 |
tejbeer |
784 |
|
| 31020 |
tejbeer |
785 |
public Boolean getShipmentHold() {
|
|
|
786 |
return shipmentHold;
|
|
|
787 |
}
|
|
|
788 |
|
|
|
789 |
public void setShipmentHold(Boolean shipmentHold) {
|
|
|
790 |
this.shipmentHold = shipmentHold;
|
|
|
791 |
}
|
|
|
792 |
|
| 21629 |
kshitij.so |
793 |
public Boolean isDoaFlag() {
|
| 21545 |
ashik.ali |
794 |
return doaFlag;
|
|
|
795 |
}
|
| 27723 |
tejbeer |
796 |
|
| 21629 |
kshitij.so |
797 |
public void setDoaFlag(Boolean doaFlag) {
|
| 21545 |
ashik.ali |
798 |
this.doaFlag = doaFlag;
|
|
|
799 |
}
|
| 27723 |
tejbeer |
800 |
|
| 21629 |
kshitij.so |
801 |
public Integer getPickupRequestNumber() {
|
| 21545 |
ashik.ali |
802 |
return pickupRequestNumber;
|
|
|
803 |
}
|
| 27723 |
tejbeer |
804 |
|
| 21629 |
kshitij.so |
805 |
public void setPickupRequestNumber(Integer pickupRequestNumber) {
|
| 21545 |
ashik.ali |
806 |
this.pickupRequestNumber = pickupRequestNumber;
|
|
|
807 |
}
|
| 27723 |
tejbeer |
808 |
|
| 21629 |
kshitij.so |
809 |
public Integer getNewOrderId() {
|
| 21545 |
ashik.ali |
810 |
return newOrderId;
|
|
|
811 |
}
|
| 27723 |
tejbeer |
812 |
|
| 21629 |
kshitij.so |
813 |
public void setNewOrderId(Integer newOrderId) {
|
| 21545 |
ashik.ali |
814 |
this.newOrderId = newOrderId;
|
|
|
815 |
}
|
| 27723 |
tejbeer |
816 |
|
| 21545 |
ashik.ali |
817 |
public LocalDateTime getDoaAuthTimestamp() {
|
|
|
818 |
return doaAuthTimestamp;
|
|
|
819 |
}
|
| 27723 |
tejbeer |
820 |
|
| 21545 |
ashik.ali |
821 |
public void setDoaAuthTimestamp(LocalDateTime doaAuthTimestamp) {
|
|
|
822 |
this.doaAuthTimestamp = doaAuthTimestamp;
|
|
|
823 |
}
|
| 27723 |
tejbeer |
824 |
|
| 21545 |
ashik.ali |
825 |
public LocalDateTime getDoaPickupTimestamp() {
|
|
|
826 |
return doaPickupTimestamp;
|
|
|
827 |
}
|
| 27723 |
tejbeer |
828 |
|
| 21545 |
ashik.ali |
829 |
public void setDoaPickupTimestamp(LocalDateTime doaPickupTimestamp) {
|
|
|
830 |
this.doaPickupTimestamp = doaPickupTimestamp;
|
|
|
831 |
}
|
| 27723 |
tejbeer |
832 |
|
| 21545 |
ashik.ali |
833 |
public LocalDateTime getReceiverReturnTimestamp() {
|
|
|
834 |
return receiverReturnTimestamp;
|
|
|
835 |
}
|
| 27723 |
tejbeer |
836 |
|
| 21545 |
ashik.ali |
837 |
public void setReceiverReturnTimestamp(LocalDateTime receiverReturnTimestamp) {
|
|
|
838 |
this.receiverReturnTimestamp = receiverReturnTimestamp;
|
|
|
839 |
}
|
| 27723 |
tejbeer |
840 |
|
| 21545 |
ashik.ali |
841 |
public LocalDateTime getReShipTimestamp() {
|
|
|
842 |
return reShipTimestamp;
|
|
|
843 |
}
|
| 27723 |
tejbeer |
844 |
|
| 21545 |
ashik.ali |
845 |
public void setReShipTimestamp(LocalDateTime reShipTimestamp) {
|
|
|
846 |
this.reShipTimestamp = reShipTimestamp;
|
|
|
847 |
}
|
| 27723 |
tejbeer |
848 |
|
| 21545 |
ashik.ali |
849 |
public LocalDateTime getRefundTimestamp() {
|
|
|
850 |
return refundTimestamp;
|
|
|
851 |
}
|
| 27723 |
tejbeer |
852 |
|
| 21545 |
ashik.ali |
853 |
public void setRefundTimestamp(LocalDateTime refundTimestamp) {
|
|
|
854 |
this.refundTimestamp = refundTimestamp;
|
|
|
855 |
}
|
| 27723 |
tejbeer |
856 |
|
| 21629 |
kshitij.so |
857 |
public Integer getPurchaseOrderId() {
|
| 21545 |
ashik.ali |
858 |
return purchaseOrderId;
|
|
|
859 |
}
|
| 27723 |
tejbeer |
860 |
|
| 21629 |
kshitij.so |
861 |
public void setPurchaseOrderId(Integer purchaseOrderId) {
|
| 21545 |
ashik.ali |
862 |
this.purchaseOrderId = purchaseOrderId;
|
|
|
863 |
}
|
| 27723 |
tejbeer |
864 |
|
| 21629 |
kshitij.so |
865 |
public Boolean isCod() {
|
| 21545 |
ashik.ali |
866 |
return cod;
|
|
|
867 |
}
|
| 27723 |
tejbeer |
868 |
|
| 21629 |
kshitij.so |
869 |
public void setCod(Boolean cod) {
|
| 21545 |
ashik.ali |
870 |
this.cod = cod;
|
|
|
871 |
}
|
| 27723 |
tejbeer |
872 |
|
| 21545 |
ashik.ali |
873 |
public LocalDateTime getVerificationTimestamp() {
|
|
|
874 |
return verificationTimestamp;
|
|
|
875 |
}
|
| 27723 |
tejbeer |
876 |
|
| 21545 |
ashik.ali |
877 |
public void setVerificationTimestamp(LocalDateTime verificationTimestamp) {
|
|
|
878 |
this.verificationTimestamp = verificationTimestamp;
|
|
|
879 |
}
|
| 27723 |
tejbeer |
880 |
|
| 21545 |
ashik.ali |
881 |
public String getRefundBy() {
|
|
|
882 |
return refundBy;
|
|
|
883 |
}
|
| 27723 |
tejbeer |
884 |
|
| 21545 |
ashik.ali |
885 |
public void setRefundBy(String refundBy) {
|
|
|
886 |
this.refundBy = refundBy;
|
|
|
887 |
}
|
| 27723 |
tejbeer |
888 |
|
| 21545 |
ashik.ali |
889 |
public String getRefundReason() {
|
|
|
890 |
return refundReason;
|
|
|
891 |
}
|
| 27723 |
tejbeer |
892 |
|
| 21545 |
ashik.ali |
893 |
public void setRefundReason(String refundReason) {
|
|
|
894 |
this.refundReason = refundReason;
|
|
|
895 |
}
|
| 27723 |
tejbeer |
896 |
|
|
|
897 |
/*
|
|
|
898 |
* public DelayReason getDelayReason() { return delayReason; } public void
|
|
|
899 |
* setDelayReason(DelayReason delayReason) { this.delayReason = delayReason; }
|
|
|
900 |
*/
|
| 21545 |
ashik.ali |
901 |
public LocalDateTime getCodReconciliationTimestamp() {
|
|
|
902 |
return codReconciliationTimestamp;
|
|
|
903 |
}
|
| 27723 |
tejbeer |
904 |
|
| 21545 |
ashik.ali |
905 |
public void setCodReconciliationTimestamp(LocalDateTime codReconciliationTimestamp) {
|
|
|
906 |
this.codReconciliationTimestamp = codReconciliationTimestamp;
|
|
|
907 |
}
|
| 27723 |
tejbeer |
908 |
|
| 21629 |
kshitij.so |
909 |
public Integer getPreviousStatus() {
|
| 21545 |
ashik.ali |
910 |
return previousStatus;
|
|
|
911 |
}
|
| 27723 |
tejbeer |
912 |
|
| 21629 |
kshitij.so |
913 |
public void setPreviousStatus(Integer previousStatus) {
|
| 21545 |
ashik.ali |
914 |
this.previousStatus = previousStatus;
|
|
|
915 |
}
|
| 27723 |
tejbeer |
916 |
|
| 21629 |
kshitij.so |
917 |
public Integer getVendorId() {
|
| 21545 |
ashik.ali |
918 |
return vendorId;
|
|
|
919 |
}
|
| 27723 |
tejbeer |
920 |
|
| 21629 |
kshitij.so |
921 |
public void setVendorId(Integer vendorId) {
|
| 21545 |
ashik.ali |
922 |
this.vendorId = vendorId;
|
|
|
923 |
}
|
| 27723 |
tejbeer |
924 |
|
| 21545 |
ashik.ali |
925 |
public String getDelayReasonText() {
|
|
|
926 |
return delayReasonText;
|
|
|
927 |
}
|
| 27723 |
tejbeer |
928 |
|
| 21545 |
ashik.ali |
929 |
public void setDelayReasonText(String delayReasonText) {
|
|
|
930 |
this.delayReasonText = delayReasonText;
|
|
|
931 |
}
|
| 27723 |
tejbeer |
932 |
|
| 21629 |
kshitij.so |
933 |
public Integer getDoaLogisticsProviderId() {
|
| 21545 |
ashik.ali |
934 |
return doaLogisticsProviderId;
|
|
|
935 |
}
|
| 27723 |
tejbeer |
936 |
|
| 21629 |
kshitij.so |
937 |
public void setDoaLogisticsProviderId(Integer doaLogisticsProviderId) {
|
| 21545 |
ashik.ali |
938 |
this.doaLogisticsProviderId = doaLogisticsProviderId;
|
|
|
939 |
}
|
| 27723 |
tejbeer |
940 |
|
| 21629 |
kshitij.so |
941 |
public Boolean isVendorPaid() {
|
| 21545 |
ashik.ali |
942 |
return vendorPaid;
|
|
|
943 |
}
|
| 27723 |
tejbeer |
944 |
|
| 21629 |
kshitij.so |
945 |
public void setVendorPaid(Boolean vendorPaid) {
|
| 21545 |
ashik.ali |
946 |
this.vendorPaid = vendorPaid;
|
|
|
947 |
}
|
| 27723 |
tejbeer |
948 |
|
| 21545 |
ashik.ali |
949 |
public LocalDateTime getLocalConnectedTimestamp() {
|
|
|
950 |
return localConnectedTimestamp;
|
|
|
951 |
}
|
| 27723 |
tejbeer |
952 |
|
| 21545 |
ashik.ali |
953 |
public void setLocalConnectedTimestamp(LocalDateTime localConnectedTimestamp) {
|
|
|
954 |
this.localConnectedTimestamp = localConnectedTimestamp;
|
|
|
955 |
}
|
| 27723 |
tejbeer |
956 |
|
| 21545 |
ashik.ali |
957 |
public LocalDateTime getReachedDestinationTimestamp() {
|
|
|
958 |
return reachedDestinationTimestamp;
|
|
|
959 |
}
|
| 27723 |
tejbeer |
960 |
|
| 21545 |
ashik.ali |
961 |
public void setReachedDestinationTimestamp(LocalDateTime reachedDestinationTimestamp) {
|
|
|
962 |
this.reachedDestinationTimestamp = reachedDestinationTimestamp;
|
|
|
963 |
}
|
| 27723 |
tejbeer |
964 |
|
| 21545 |
ashik.ali |
965 |
public LocalDateTime getFirstDlvyatmpTimestamp() {
|
|
|
966 |
return firstDlvyatmpTimestamp;
|
|
|
967 |
}
|
| 27723 |
tejbeer |
968 |
|
| 21545 |
ashik.ali |
969 |
public void setFirstDlvyatmpTimestamp(LocalDateTime firstDlvyatmpTimestamp) {
|
|
|
970 |
this.firstDlvyatmpTimestamp = firstDlvyatmpTimestamp;
|
|
|
971 |
}
|
| 27723 |
tejbeer |
972 |
|
| 21629 |
kshitij.so |
973 |
public Integer getOriginalOrderId() {
|
| 21545 |
ashik.ali |
974 |
return originalOrderId;
|
|
|
975 |
}
|
| 27723 |
tejbeer |
976 |
|
| 21629 |
kshitij.so |
977 |
public void setOriginalOrderId(Integer originalOrderId) {
|
| 21545 |
ashik.ali |
978 |
this.originalOrderId = originalOrderId;
|
|
|
979 |
}
|
| 27723 |
tejbeer |
980 |
|
| 21629 |
kshitij.so |
981 |
public Integer getFulfilmentWarehouseId() {
|
| 21545 |
ashik.ali |
982 |
return fulfilmentWarehouseId;
|
|
|
983 |
}
|
| 27723 |
tejbeer |
984 |
|
| 21629 |
kshitij.so |
985 |
public void setFulfilmentWarehouseId(Integer fulfilmentWarehouseId) {
|
| 21545 |
ashik.ali |
986 |
this.fulfilmentWarehouseId = fulfilmentWarehouseId;
|
|
|
987 |
}
|
| 27723 |
tejbeer |
988 |
|
| 21629 |
kshitij.so |
989 |
public Integer getOrderType() {
|
| 21545 |
ashik.ali |
990 |
return orderType;
|
|
|
991 |
}
|
| 27723 |
tejbeer |
992 |
|
| 21629 |
kshitij.so |
993 |
public void setOrderType(Integer orderType) {
|
| 21545 |
ashik.ali |
994 |
this.orderType = orderType;
|
|
|
995 |
}
|
| 27723 |
tejbeer |
996 |
|
| 21629 |
kshitij.so |
997 |
public Integer getPickupStoreId() {
|
| 21545 |
ashik.ali |
998 |
return pickupStoreId;
|
|
|
999 |
}
|
| 27723 |
tejbeer |
1000 |
|
| 21629 |
kshitij.so |
1001 |
public void setPickupStoreId(Integer pickupStoreId) {
|
| 21545 |
ashik.ali |
1002 |
this.pickupStoreId = pickupStoreId;
|
|
|
1003 |
}
|
| 27723 |
tejbeer |
1004 |
|
| 21629 |
kshitij.so |
1005 |
public Boolean isOtg() {
|
| 21545 |
ashik.ali |
1006 |
return otg;
|
|
|
1007 |
}
|
| 27723 |
tejbeer |
1008 |
|
| 21629 |
kshitij.so |
1009 |
public void setOtg(Boolean otg) {
|
| 21545 |
ashik.ali |
1010 |
this.otg = otg;
|
|
|
1011 |
}
|
| 27723 |
tejbeer |
1012 |
|
| 21545 |
ashik.ali |
1013 |
public LocalDateTime getCourierDeliveryTimestamp() {
|
|
|
1014 |
return courierDeliveryTimestamp;
|
|
|
1015 |
}
|
| 27723 |
tejbeer |
1016 |
|
| 21545 |
ashik.ali |
1017 |
public void setCourierDeliveryTimestamp(LocalDateTime courierDeliveryTimestamp) {
|
|
|
1018 |
this.courierDeliveryTimestamp = courierDeliveryTimestamp;
|
|
|
1019 |
}
|
| 27723 |
tejbeer |
1020 |
|
| 21629 |
kshitij.so |
1021 |
public Integer getInsurer() {
|
| 21545 |
ashik.ali |
1022 |
return insurer;
|
|
|
1023 |
}
|
| 27723 |
tejbeer |
1024 |
|
| 21629 |
kshitij.so |
1025 |
public void setInsurer(Integer insurer) {
|
| 21545 |
ashik.ali |
1026 |
this.insurer = insurer;
|
|
|
1027 |
}
|
| 27723 |
tejbeer |
1028 |
|
| 21629 |
kshitij.so |
1029 |
public Float getInsuranceAmount() {
|
| 21545 |
ashik.ali |
1030 |
return insuranceAmount;
|
|
|
1031 |
}
|
| 27723 |
tejbeer |
1032 |
|
| 21629 |
kshitij.so |
1033 |
public void setInsuranceAmount(Float insuranceAmount) {
|
| 21545 |
ashik.ali |
1034 |
this.insuranceAmount = insuranceAmount;
|
|
|
1035 |
}
|
| 27723 |
tejbeer |
1036 |
|
| 21629 |
kshitij.so |
1037 |
public Integer getFreebieItemId() {
|
| 21545 |
ashik.ali |
1038 |
return freebieItemId;
|
|
|
1039 |
}
|
| 27723 |
tejbeer |
1040 |
|
| 21629 |
kshitij.so |
1041 |
public void setFreebieItemId(Integer freebieItemId) {
|
| 21545 |
ashik.ali |
1042 |
this.freebieItemId = freebieItemId;
|
|
|
1043 |
}
|
| 27723 |
tejbeer |
1044 |
|
| 21629 |
kshitij.so |
1045 |
public Integer getSource() {
|
| 21545 |
ashik.ali |
1046 |
return source;
|
|
|
1047 |
}
|
| 27723 |
tejbeer |
1048 |
|
| 21629 |
kshitij.so |
1049 |
public void setSource(Integer source) {
|
| 21545 |
ashik.ali |
1050 |
this.source = source;
|
|
|
1051 |
}
|
| 27723 |
tejbeer |
1052 |
|
| 21629 |
kshitij.so |
1053 |
public Float getAdvanceAmount() {
|
| 21545 |
ashik.ali |
1054 |
return advanceAmount;
|
|
|
1055 |
}
|
| 27723 |
tejbeer |
1056 |
|
| 21629 |
kshitij.so |
1057 |
public void setAdvanceAmount(Float advanceAmount) {
|
| 21545 |
ashik.ali |
1058 |
this.advanceAmount = advanceAmount;
|
|
|
1059 |
}
|
| 27723 |
tejbeer |
1060 |
|
| 21629 |
kshitij.so |
1061 |
public Integer getStoreId() {
|
| 21545 |
ashik.ali |
1062 |
return storeId;
|
|
|
1063 |
}
|
| 27723 |
tejbeer |
1064 |
|
| 21629 |
kshitij.so |
1065 |
public void setStoreId(Integer storeId) {
|
| 21545 |
ashik.ali |
1066 |
this.storeId = storeId;
|
|
|
1067 |
}
|
| 27723 |
tejbeer |
1068 |
|
| 21629 |
kshitij.so |
1069 |
public Integer getProductCondition() {
|
| 21545 |
ashik.ali |
1070 |
return productCondition;
|
|
|
1071 |
}
|
| 27723 |
tejbeer |
1072 |
|
| 21629 |
kshitij.so |
1073 |
public void setProductCondition(Integer productCondition) {
|
| 21545 |
ashik.ali |
1074 |
this.productCondition = productCondition;
|
|
|
1075 |
}
|
| 27723 |
tejbeer |
1076 |
|
| 21629 |
kshitij.so |
1077 |
public Integer getDataProtectionInsurer() {
|
| 21545 |
ashik.ali |
1078 |
return dataProtectionInsurer;
|
|
|
1079 |
}
|
| 27723 |
tejbeer |
1080 |
|
| 21629 |
kshitij.so |
1081 |
public void setDataProtectionInsurer(Integer dataProtectionInsurer) {
|
| 21545 |
ashik.ali |
1082 |
this.dataProtectionInsurer = dataProtectionInsurer;
|
|
|
1083 |
}
|
| 27723 |
tejbeer |
1084 |
|
| 21629 |
kshitij.so |
1085 |
public Integer getDataProtectionAmount() {
|
| 21545 |
ashik.ali |
1086 |
return dataProtectionAmount;
|
|
|
1087 |
}
|
| 27723 |
tejbeer |
1088 |
|
| 21629 |
kshitij.so |
1089 |
public void setDataProtectionAmount(Integer dataProtectionAmount) {
|
| 21545 |
ashik.ali |
1090 |
this.dataProtectionAmount = dataProtectionAmount;
|
|
|
1091 |
}
|
| 27723 |
tejbeer |
1092 |
|
| 21545 |
ashik.ali |
1093 |
public TaxType getTaxType() {
|
|
|
1094 |
return taxType;
|
|
|
1095 |
}
|
| 27723 |
tejbeer |
1096 |
|
| 21545 |
ashik.ali |
1097 |
public void setTaxType(TaxType taxType) {
|
|
|
1098 |
this.taxType = taxType;
|
|
|
1099 |
}
|
| 27723 |
tejbeer |
1100 |
|
| 21545 |
ashik.ali |
1101 |
public String getLogisticsTransactionId() {
|
|
|
1102 |
return logisticsTransactionId;
|
|
|
1103 |
}
|
| 27723 |
tejbeer |
1104 |
|
| 21545 |
ashik.ali |
1105 |
public void setLogisticsTransactionId(String logisticsTransactionId) {
|
|
|
1106 |
this.logisticsTransactionId = logisticsTransactionId;
|
|
|
1107 |
}
|
| 27723 |
tejbeer |
1108 |
|
| 21629 |
kshitij.so |
1109 |
public Float getShippingCost() {
|
| 21545 |
ashik.ali |
1110 |
return shippingCost;
|
|
|
1111 |
}
|
| 27723 |
tejbeer |
1112 |
|
| 21629 |
kshitij.so |
1113 |
public void setShippingCost(Float shippingCost) {
|
| 21545 |
ashik.ali |
1114 |
this.shippingCost = shippingCost;
|
|
|
1115 |
}
|
| 27723 |
tejbeer |
1116 |
|
| 21629 |
kshitij.so |
1117 |
public Float getCodCharges() {
|
| 21545 |
ashik.ali |
1118 |
return codCharges;
|
|
|
1119 |
}
|
| 27723 |
tejbeer |
1120 |
|
| 21629 |
kshitij.so |
1121 |
public void setCodCharges(Float codCharges) {
|
| 21545 |
ashik.ali |
1122 |
this.codCharges = codCharges;
|
|
|
1123 |
}
|
| 27723 |
tejbeer |
1124 |
|
| 21629 |
kshitij.so |
1125 |
public Float getWalletAmount() {
|
| 21545 |
ashik.ali |
1126 |
return walletAmount;
|
|
|
1127 |
}
|
| 27723 |
tejbeer |
1128 |
|
| 21629 |
kshitij.so |
1129 |
public void setWalletAmount(Float walletAmount) {
|
| 21545 |
ashik.ali |
1130 |
this.walletAmount = walletAmount;
|
|
|
1131 |
}
|
| 27723 |
tejbeer |
1132 |
|
| 21629 |
kshitij.so |
1133 |
public Float getNetPayableAmount() {
|
| 21545 |
ashik.ali |
1134 |
return netPayableAmount;
|
|
|
1135 |
}
|
| 27723 |
tejbeer |
1136 |
|
| 21629 |
kshitij.so |
1137 |
public void setNetPayableAmount(Float netPayableAmount) {
|
| 21545 |
ashik.ali |
1138 |
this.netPayableAmount = netPayableAmount;
|
|
|
1139 |
}
|
| 27723 |
tejbeer |
1140 |
|
| 21629 |
kshitij.so |
1141 |
public Float getShippingRefund() {
|
| 21545 |
ashik.ali |
1142 |
return shippingRefund;
|
|
|
1143 |
}
|
| 27723 |
tejbeer |
1144 |
|
| 21629 |
kshitij.so |
1145 |
public void setShippingRefund(Float shippingRefund) {
|
| 21545 |
ashik.ali |
1146 |
this.shippingRefund = shippingRefund;
|
|
|
1147 |
}
|
| 27723 |
tejbeer |
1148 |
|
| 21653 |
ashik.ali |
1149 |
public LineItem getLineItem() {
|
|
|
1150 |
return lineItem;
|
|
|
1151 |
}
|
| 27723 |
tejbeer |
1152 |
|
| 21653 |
ashik.ali |
1153 |
public void setLineItem(LineItem lineItem) {
|
|
|
1154 |
this.lineItem = lineItem;
|
|
|
1155 |
}
|
| 27723 |
tejbeer |
1156 |
|
|
|
1157 |
public String getFormattedDate() {
|
|
|
1158 |
DateTimeFormatter formatter = DateTimeFormatter.ofPattern("dd-MM-yyyy HH:mm");
|
| 23075 |
ashik.ali |
1159 |
return this.createTimestamp.format(formatter);
|
| 27723 |
tejbeer |
1160 |
}
|
|
|
1161 |
|
| 21545 |
ashik.ali |
1162 |
@Override
|
| 21924 |
ashik.ali |
1163 |
public int hashCode() {
|
|
|
1164 |
final int prime = 31;
|
|
|
1165 |
int result = 1;
|
|
|
1166 |
result = prime * result + ((id == null) ? 0 : id.hashCode());
|
|
|
1167 |
return result;
|
|
|
1168 |
}
|
| 27723 |
tejbeer |
1169 |
|
| 21924 |
ashik.ali |
1170 |
@Override
|
|
|
1171 |
public boolean equals(Object obj) {
|
|
|
1172 |
if (this == obj)
|
|
|
1173 |
return true;
|
|
|
1174 |
if (obj == null)
|
|
|
1175 |
return false;
|
|
|
1176 |
if (getClass() != obj.getClass())
|
|
|
1177 |
return false;
|
|
|
1178 |
Order other = (Order) obj;
|
|
|
1179 |
if (id == null) {
|
|
|
1180 |
if (other.id != null)
|
|
|
1181 |
return false;
|
|
|
1182 |
} else if (!id.equals(other.id))
|
|
|
1183 |
return false;
|
|
|
1184 |
return true;
|
|
|
1185 |
}
|
| 27723 |
tejbeer |
1186 |
|
| 30289 |
amit.gupta |
1187 |
public Boolean isIrnGenerated() {
|
|
|
1188 |
return irnGenerated;
|
|
|
1189 |
}
|
|
|
1190 |
|
|
|
1191 |
public void setIrnGenerated(boolean irnGenerated) {
|
|
|
1192 |
this.irnGenerated = irnGenerated;
|
|
|
1193 |
}
|
|
|
1194 |
|
| 21924 |
ashik.ali |
1195 |
@Override
|
| 21545 |
ashik.ali |
1196 |
public String toString() {
|
| 30820 |
amit.gupta |
1197 |
return "Order [id=" + id + "]";
|
| 21545 |
ashik.ali |
1198 |
}
|
| 27723 |
tejbeer |
1199 |
|
| 21545 |
ashik.ali |
1200 |
}
|