| 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;
|
| 35155 |
ranu |
4 |
import com.spice.profitmandi.dao.model.*;
|
| 33396 |
amit.gupta |
5 |
import com.spice.profitmandi.model.WarehouseItemQtyModel;
|
| 29966 |
amit.gupta |
6 |
import in.shop2020.model.v1.order.OrderStatus;
|
|
|
7 |
import in.shop2020.model.v1.order.TaxType;
|
|
|
8 |
|
| 32417 |
amit.gupta |
9 |
import javax.persistence.*;
|
|
|
10 |
import java.io.Serializable;
|
|
|
11 |
import java.time.LocalDateTime;
|
|
|
12 |
import java.time.format.DateTimeFormatter;
|
|
|
13 |
import java.util.List;
|
|
|
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
|
| 31860 |
tejbeer |
22 |
@Table(name = "transaction.`order`")
|
|
|
23 |
@NamedQueries({@NamedQuery(name = "Order.selectAll", query = "select o from Order o"), @NamedQuery(name = "Order.selectById", query = "select o from Order o where o.id= :id"), @NamedQuery(name = "Order.selectByTransactionId", query = "select t.id, t.createTimestamp, o.retailerAddress1, o.retailerAddress2, o.retailerCity, " + "o.retailerPinCode, o.retailerState, o.shippingCost, o.statusDescription, o.invoiceNumber, o.airwayBillNumber, o.totalAmount, li.brand, li.modelName, " + "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 " + "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"),
|
| 33873 |
ranu |
24 |
@NamedQuery(name = "Order.partnerStockPoAndGrnPending",
|
|
|
25 |
query = "select new com.spice.profitmandi.dao.model.PoAndGrnPendingPartnerStockModel" +
|
|
|
26 |
"(li.itemId, odr.partnerGrnTimestamp, odr.billingTimestamp) " +
|
|
|
27 |
"FROM Order odr " +
|
|
|
28 |
"JOIN LineItem li on li.orderId = odr.id " +
|
|
|
29 |
"WHERE odr.retailerId = (:fofoId) " +
|
|
|
30 |
"AND odr.refundTimestamp is null " +
|
|
|
31 |
"AND (odr.billingTimestamp is null OR (odr.billingTimestamp is not null AND odr.partnerGrnTimestamp is null))"),
|
| 27723 |
tejbeer |
32 |
|
| 31860 |
tejbeer |
33 |
@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"),
|
| 27723 |
tejbeer |
34 |
|
| 31860 |
tejbeer |
35 |
@NamedQuery(name = "Order.selectAllBilledOrderGroupByBrand", query = "select new com.spice.profitmandi.dao.model.SecondaryOrderBillingModel(li.brand, " + "sum(case when o.billingTimestamp >= :today then CAST(o.totalAmount AS integer) else 0 end)," + "sum(case when o.billingTimestamp >= :threedays and o.billingTimestamp < :endDate then CAST(o.totalAmount AS integer) else 0 end)," + "sum(case when concat(year(o.billingTimestamp ), month(o.billingTimestamp ))= :mtd then CAST(o.totalAmount AS integer) else 0 end)," + "sum(case when o.billingTimestamp between :lmtdStartDate and :lmtdEndDate then CAST(o.totalAmount AS integer) else 0 end)," + "sum(case when o.billingTimestamp between :lmtdStartDate and :lmsEndDate then CAST(o.totalAmount AS integer) else 0 end)," + " sum(case when o.billingTimestamp >= :today then li.quantity else 0 end)," + " sum(case when o.billingTimestamp >= :threedays and o.billingTimestamp < :endDate then li.quantity else 0 end)," + " sum(case when concat(year(o.billingTimestamp), month(o.billingTimestamp))= :mtd then li.quantity else 0 end)," + " sum(case when o.billingTimestamp between :lmtdStartDate and :lmtdEndDate then li.quantity else 0 end)," + " sum(case when o.billingTimestamp between :lmtdStartDate and :lmsEndDate then li.quantity else 0 end)" + " )" + " 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)" + " and o.billingTimestamp >= :lmtdStartDate and fs.warehouseId in :warehouseId and fs.internal = false group by li.brand"),
|
| 27723 |
tejbeer |
36 |
|
| 31860 |
tejbeer |
37 |
@NamedQuery(name = "Order.selectAllBilledOrderGroupByBrandFofoId", query = "select new com.spice.profitmandi.dao.model.BrandWiseModel(li.brand," + " DATE_FORMAT(o.billingTimestamp, '%m-%Y'),sum(cast(o.totalAmount AS integer)))" + " 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)" + " and o.billingTimestamp >= :startDate and o.retailerId =:fofoId group by li.brand,DATE_FORMAT(o.billingTimestamp, '%m-%Y')"),
|
| 28439 |
tejbeer |
38 |
|
| 34849 |
ranu |
39 |
@NamedQuery(name = "Order.selectAllBilledByCategoryOrderGroupByBrandFofoId", query = "select new com.spice.profitmandi.dao.model.BrandWiseModel(li.brand," + " DATE_FORMAT(o.billingTimestamp, '%m-%Y'),sum(cast((li.unitPrice * li.quantity) AS integer)))" + " from Order o join LineItem li on o.id = li.orderId join FofoStore fs on fs.id = o.retailerId join Item i on i.id = li.itemId where o.billingTimestamp >= :startDate and o.billingTimestamp <= :endDate and o.retailerId =:fofoId and i.categoryId in (:categoryIds) group by li.brand,DATE_FORMAT(o.billingTimestamp, '%m-%Y')"),
|
| 34721 |
ranu |
40 |
|
| 33430 |
amit.gupta |
41 |
@NamedQuery(name = "Order.selectSecondaryGroupByYearMonth", query = "select new com.spice.profitmandi.dao.model.PartnerMonthlySaleModel(o.retailerId," + " DATE_FORMAT(o.billingTimestamp, '%m-%Y'),sum(cast(o.totalAmount AS integer)))" + " from Order o join LineItem li on o.id = li.orderId join FofoStore fs on fs.id = o.retailerId where o.billingTimestamp between :startDate and :endDate and o.retailerId in :fofoIds group by o.retailerId, DATE_FORMAT(o.billingTimestamp, '%m-%Y')"),
|
| 31361 |
amit.gupta |
42 |
|
| 31860 |
tejbeer |
43 |
@NamedQuery(name = "Order.selectAllBilledOrderGroupByBrandWarehouse", query = "select new com.spice.profitmandi.dao.model.SecondaryWarehouseWiseOrderBilllingModel(fs.warehouseId,date(o.billingTimestamp), li.brand, " + "sum(CAST(o.totalAmount AS integer)),sum( li.quantity))" + " 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)" + " 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 |
44 |
|
| 31860 |
tejbeer |
45 |
@NamedQuery(name = "Order.selectAllBilledOrderItemByBrand", query = "select new com.spice.profitmandi.dao.model.SecondaryOrderItemBillingModel(o.retailerName,li.brand,i.modelName, " + " i.modelNumber, i.color," + "o.totalAmount," + " li.quantity)" + " 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)" + " 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 |
46 |
|
| 31860 |
tejbeer |
47 |
@NamedQuery(name = "Order.selectTodayBilledOrderItemByBrand", query = "select new com.spice.profitmandi.dao.model.SecondaryOrderItemBillingModel(o.retailerName,li.brand,i.modelName, " + " i.modelNumber, i.color," + "o.totalAmount," + " li.quantity)" + " 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)" + " and o.billingTimestamp >= :startDate and fs.warehouseId in :warehouseId and li.brand in :brand order by li.itemId desc"),
|
| 27738 |
tejbeer |
48 |
|
| 31860 |
tejbeer |
49 |
@NamedQuery(name = "Order.selectAllBilledOrderBrandByFofoId", query = "select new com.spice.profitmandi.dao.model.InStockBrandModel(li.brand," + " Sum(li.quantity),Sum(CAST(o.totalAmount AS integer)))" + " from Order o join LineItem li on o.id = li.orderId where o.status in (7,9,10,12)" + " and o.billingTimestamp >= :startDate and o.billingTimestamp <= :endDate and o.retailerId = :fofoId group by li.brand"),
|
| 27893 |
tejbeer |
50 |
|
| 31860 |
tejbeer |
51 |
@NamedQuery(name = "Order.selectAllBilledOrderBrandItemByFofoId", query = "select new com.spice.profitmandi.dao.model.InStockBrandItemModel(" + " i.brand, i.modelName, i.modelNumber, i.color,Sum(li.quantity), Sum(CAST(o.totalAmount AS integer)))" + " 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)" + " and o.billingTimestamp >= :startDate and o.billingTimestamp <= :endDate and o.retailerId = :fofoId group by i.id"),
|
| 27893 |
tejbeer |
52 |
|
| 31860 |
tejbeer |
53 |
@NamedQuery(name = "Order.selectAllGrnPendingOrderByCatalogId", query = "select new com.spice.profitmandi.dao.model.FofoIdQtyModel(" + " fs.warehouseId,fs.id,sum(li.quantity )) from FofoStore fs join Order o on fs.id = o.retailerId " + " join LineItem li on o.id = li.orderId join TagListing tl on tl.itemId = li.itemId " + " join Item i on (i.id = tl.itemId ) where " + " fs.active = false and fs.internal = true and" + " o.billingTimestamp is not null and o.refundTimestamp is null and o.partnerGrnTimestamp is null" + " and i.catalogItemId in :catalogItemId group by fs.id"),
|
| 28004 |
tejbeer |
54 |
|
| 31860 |
tejbeer |
55 |
@NamedQuery(name = "Order.selectAllPendingIndentOrderByCatalogId", query = "select new com.spice.profitmandi.dao.model.FofoIdQtyModel(" + " fs.warehouseId,fs.id,sum(case when li.quantity is null then 0 else li.quantity end))" + " from FofoStore fs join Order o on fs.id = o.retailerId" + " join LineItem li on o.id = li.orderId " + " join TagListing tl on tl.itemId = li.itemId " + " join Item i on i.id = tl.itemId where " + " fs.active = false and fs.internal = true and o.status in (3,4) and i.catalogItemId in :catalogItemId group by fs.id"),
|
| 28004 |
tejbeer |
56 |
|
| 31860 |
tejbeer |
57 |
@NamedQuery(name = "Order.selectGrnPendingOrdersByCatalogId", query = "select new com.spice.profitmandi.dao.model.FofoIdCatalogQtyModel(" + " fs.warehouseId,fs.id,i.catalogItemId,sum(li.quantity )) from FofoStore fs join Order o on fs.id = o.retailerId " + " join LineItem li on o.id = li.orderId join TagListing tl on tl.itemId = li.itemId " + " join Item i on (i.id = tl.itemId ) where " + " fs.active = true and fs.internal = false and" + " o.billingTimestamp is not null and o.refundTimestamp is null and o.partnerGrnTimestamp is null" + " and i.catalogItemId in :catalogItemId and fs.warehouseId in :warehouseId group by i.catalogItemId, fs.id"),
|
| 28474 |
tejbeer |
58 |
|
| 31860 |
tejbeer |
59 |
@NamedQuery(name = "Order.selectPendingIndentOrdersByCatalogId", query = "select new com.spice.profitmandi.dao.model.FofoIdCatalogQtyModel(" + " fs.warehouseId,fs.id,i.catalogItemId,sum(case when li.quantity is null then 0 else li.quantity end))" + " from FofoStore fs join Order o on fs.id = o.retailerId" + " join LineItem li on o.id = li.orderId " + " join TagListing tl on tl.itemId = li.itemId " + " join Item i on i.id = tl.itemId where " + " 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 |
60 |
|
| 31860 |
tejbeer |
61 |
@NamedQuery(name = "Order.selectFirstBilling", query = "select new com.spice.profitmandi.dao.model.FofoFirstBillingModel(fs.id, min(o.billingTimestamp) )" + " from FofoStore fs join Order o on fs.id = o.retailerId group by fs.id"),
|
| 30673 |
amit.gupta |
62 |
|
| 36327 |
amit |
63 |
@NamedQuery(name = "Order.selectFirstBillingByRetailer",
|
|
|
64 |
query = "select min(o.billingTimestamp) from Order o " +
|
|
|
65 |
"where o.retailerId = :retailerId and o.billingTimestamp >= :minDate"),
|
|
|
66 |
|
| 31860 |
tejbeer |
67 |
@NamedQuery(name = "Order.selectAllGrnPendingOrderByRange", query = "select new com.spice.profitmandi.dao.model.FofoIdItemDetailModel(" + " 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 " + " join LineItem li on o.id = li.orderId join TagListing tl on tl.itemId = li.itemId " + " join Item i on (i.id = tl.itemId ) where fs.active = true and fs.internal = false and" + " o.billingTimestamp is not null and o.refundTimestamp is null and o.partnerGrnTimestamp is null" + " 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 |
68 |
|
| 34813 |
aman |
69 |
// query = "select o.*,tl.sellingPrice as tlSellingPrice" +
|
|
|
70 |
// "from FofoStore fs " +
|
|
|
71 |
@NamedQuery(
|
|
|
72 |
name = "Order.selectGrnPendingByFofoIdForAllMobile",
|
|
|
73 |
query = "select o " +
|
|
|
74 |
"from FofoStore fs " +
|
|
|
75 |
"join Order o on fs.id = o.retailerId " +
|
|
|
76 |
"join LineItem li on o.id = li.orderId " +
|
|
|
77 |
"join TagListing tl on tl.itemId = li.itemId " +
|
|
|
78 |
"join Item i on i.id = tl.itemId " +
|
|
|
79 |
"where fs.active = true and fs.internal = false " +
|
|
|
80 |
"and fs.id = :fofoId " +
|
|
|
81 |
"and o.billingTimestamp is not null " +
|
|
|
82 |
"and o.refundTimestamp is null " +
|
|
|
83 |
"and o.partnerGrnTimestamp is null " +
|
|
|
84 |
"and i.categoryId = 10006 " +
|
|
|
85 |
"group by o.id"
|
|
|
86 |
),
|
| 31860 |
tejbeer |
87 |
@NamedQuery(name = "Order.selectAllPendingIndentOrderByRange", query = "select new com.spice.profitmandi.dao.model.FofoIdItemDetailModel(" + " 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)" + " from FofoStore fs join Order o on fs.id = o.retailerId" + " join LineItem li on o.id = li.orderId " + " join TagListing tl on tl.itemId = li.itemId " + " join Item i on i.id = tl.itemId where " + " 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 |
88 |
|
| 31860 |
tejbeer |
89 |
@NamedQuery(name = "Order.selectAllGrnPendingOrderItemByCatalogIdFofoId", query = "select new com.spice.profitmandi.dao.model.FofoIdItemDetailModel(" + " 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 " + " join LineItem li on o.id = li.orderId join TagListing tl on tl.itemId = li.itemId " + " join Item i on (i.id = tl.itemId ) where " + " fs.active = true and fs.internal = false and" + " o.billingTimestamp is not null and o.refundTimestamp is null and o.partnerGrnTimestamp is null" + " 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 |
90 |
|
| 31860 |
tejbeer |
91 |
@NamedQuery(name = "Order.selectAllPendingIndentOrderItemByCatalogIdFofoId", query = "select new com.spice.profitmandi.dao.model.FofoIdItemDetailModel(" + " 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" + " join LineItem li on o.id = li.orderId " + " join TagListing tl on tl.itemId = li.itemId " + " join Item i on i.id = tl.itemId where " + " 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 |
92 |
|
| 31860 |
tejbeer |
93 |
@NamedQuery(name = "Order.selectGroupByBrandLmp", query = "select new com.spice.profitmandi.dao.model.BrandWiseModel(li.brand," + " DATE_FORMAT(o.billingTimestamp,:groupParameter ),sum(cast(o.totalAmount AS integer)))" + " 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)" + " 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 |
94 |
|
| 31860 |
tejbeer |
95 |
@NamedQuery(name = "Order.selectGrnPendingOrderQtyByCatalogId", query = "select sum(case when li.quantity is null then 0 else li.quantity end)" + " from FofoStore fs join Order o on fs.id = o.retailerId " + " join LineItem li on o.id = li.orderId join TagListing tl on tl.itemId = li.itemId " + " join Item i on (i.id = tl.itemId ) where fs.active = true and fs.internal = false and" + " o.billingTimestamp is not null and o.refundTimestamp is null and o.partnerGrnTimestamp is null" + " and i.catalogItemId = :catalogItemId and fs.id = :fofoId group by i.catalogItemId, fs.id"),
|
| 28486 |
tejbeer |
96 |
|
| 31860 |
tejbeer |
97 |
@NamedQuery(name = "Order.selectPendingIndentOrderQtyByCatalogId", query = "select sum(case when li.quantity is null then 0 else li.quantity end)" + " from FofoStore fs join Order o on fs.id = o.retailerId" + " join LineItem li on o.id = li.orderId " + " join TagListing tl on tl.itemId = li.itemId " + " join Item i on i.id = tl.itemId where " + " 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 |
98 |
|
| 33947 |
ranu |
99 |
@NamedQuery(name = "Order.selectTodayOrders", query = "select new com.spice.profitmandi.dao.model.BrandRegionPOModel(" + " case when (pr.regionId is not null) then pr.regionId else fs.warehouseId end , li.brand, " + " sum(case when (o.createTimestamp between :startDate and :endDate and o.refundTimestamp is null) then cast(o.totalAmount AS integer ) else 0 end)," + " sum(case when (o.billingTimestamp is not null and (o.createTimestamp between :startDate and :endDate)) then cast(o.totalAmount AS integer) else 0 end)," + " sum(case when o.billingTimestamp is not null then cast(o.totalAmount AS integer ) else 0 end))" + " from Order o join LineItem li on o.id = li.orderId join FofoStore fs on fs.id = o.retailerId" + " left join PartnerRegion pr on pr.fofoId=o.retailerId and pr.regionId=18" + " 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')" + " group by case when (pr.regionId is not null) then pr.regionId else fs.warehouseId end, li.brand"),
|
| 35155 |
ranu |
100 |
/* @NamedQuery(name = "Order.selectTodayOrdersRBM", query = "select new com.spice.profitmandi.dao.model.BrandAuthUserPOModel( p.authUserId," +
|
|
|
101 |
" li.brand," +
|
|
|
102 |
" sum(case" +
|
|
|
103 |
" when (o.createTimestamp between :startDate and :endDate and o.refundTimestamp is null) then cast(o.totalAmount AS integer )" +
|
|
|
104 |
" else 0 end)," +
|
|
|
105 |
" sum(case" +
|
|
|
106 |
" when o.billingTimestamp is not null and (o.createTimestamp between :startDate and :endDate)" +
|
|
|
107 |
" then cast(o.totalAmount AS integer )" +
|
|
|
108 |
" else 0 end)," +
|
| 33801 |
amit.gupta |
109 |
" sum(case when o.billingTimestamp is not null then cast(o.totalAmount AS integer ) else 0 end)," +
|
| 35155 |
ranu |
110 |
" cast (count(distinct o.retailerId) as int))" +
|
|
|
111 |
"from Order o" +
|
|
|
112 |
" join LineItem li" +
|
|
|
113 |
" on o.id = li.orderId" +
|
|
|
114 |
" join FofoStore fs on fs.id = o.retailerId" +
|
|
|
115 |
" join PartnerPosition pp on pp.fofoId = o.retailerId" +
|
|
|
116 |
" join Position p on p.id = pp.positionId" +
|
|
|
117 |
"where o.refundTimestamp is null" +
|
|
|
118 |
" and ((o.createTimestamp between :startDate and :endDate) or (o.billingTimestamp between :startDate and :endDate))" +
|
|
|
119 |
" and fs.internal = false" +
|
|
|
120 |
" and p.categoryId = :categoryId" +
|
|
|
121 |
" and p.escalationType = :escalationType" +
|
|
|
122 |
" and li.brand not in ('Smartdukaan', 'Dummy', 'FOC', 'Live Demo')" +
|
| 35154 |
ranu |
123 |
"group by p.authUserId, li.brand"),
|
| 35155 |
ranu |
124 |
*/
|
|
|
125 |
@NamedQuery(name = "Order.selectTodayPartnersBilledRBM", query = "select new com.spice.profitmandi.dao.model.AuthIdPartnerCountModel( p.authUserId," +
|
|
|
126 |
" cast (count(distinct o.retailerId) as int))" +
|
|
|
127 |
"from Order o" +
|
|
|
128 |
" join LineItem li" +
|
|
|
129 |
" on o.id = li.orderId" +
|
|
|
130 |
" join FofoStore fs on fs.id = o.retailerId" +
|
|
|
131 |
" join PartnerPosition pp on pp.fofoId = o.retailerId" +
|
|
|
132 |
" join Position p on p.id = pp.positionId" +
|
|
|
133 |
" where o.refundTimestamp is null" +
|
|
|
134 |
" and (o.createTimestamp between :startDate and :endDate)" +
|
|
|
135 |
" and fs.internal = false" +
|
|
|
136 |
" and p.categoryId = 18" +
|
|
|
137 |
" and p.escalationType = 'L1'" +
|
|
|
138 |
" and li.brand not in ('Smartdukaan', 'Dummy', 'FOC', 'Live Demo')" +
|
| 33805 |
amit.gupta |
139 |
"group by p.authUserId"),
|
|
|
140 |
|
| 31860 |
tejbeer |
141 |
@NamedQuery(name = "Order.selectAllPendingIndentAccessoriesTvGroupByFofoId", query = "select new com.spice.profitmandi.dao.model.InStockAccessoriesTvFofoIdModel(" + " 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))" + " 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 " + " where o.retailerId in :fofoIds and o.status in (3,4) and i.categoryId != 10006 group by o.retailerId"),
|
| 30003 |
tejbeer |
142 |
|
| 35490 |
ranu |
143 |
@NamedQuery(name = "Order.selectAllQtyPendingIndentAccessoriesTvGroupByFofoId", query = "select new com.spice.profitmandi.dao.model.InStockAccessoriesTvQtyFofoIdModel(" + " o.retailerId, SUM(case when c.parentCategoryId = 10011 then CAST(li.quantity AS integer) else 0 end), SUM(case when c.parentCategoryId = 14200 then CAST(li.quantity AS integer) else 0 end))" + " 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 " + " where o.retailerId in :fofoIds and o.status in (3,4) and i.categoryId != 10006 group by o.retailerId"),
|
|
|
144 |
|
| 31860 |
tejbeer |
145 |
@NamedQuery(name = "Order.selectAllGrnPendingAccessoriesTvGroupByFofoId", query = "select new com.spice.profitmandi.dao.model.InStockAccessoriesTvFofoIdModel(" + " 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))" + " 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 " + " 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"),
|
| 30003 |
tejbeer |
146 |
|
| 35490 |
ranu |
147 |
@NamedQuery(name = "Order.selectAllQtyGrnPendingAccessoriesTvGroupByFofoId", query = "select new com.spice.profitmandi.dao.model.InStockAccessoriesTvQtyFofoIdModel(" + " o.retailerId, SUM(case when c.parentCategoryId = 10011 then CAST(li.quantity AS integer) else 0 end), SUM(case when c.parentCategoryId = 14200 then CAST(li.quantity AS integer) else 0 end))" + " 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 " + " 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"),
|
|
|
148 |
|
| 31860 |
tejbeer |
149 |
@NamedQuery(name = "Order.selectPartnersBilledBetweenDates", query = "select new com.spice.profitmandi.dao.model.PartnerSecondaryModel(fs.warehouseId, fs.id, count(o.id), sum(o.totalAmount) )" + " from FofoStore fs left join Order o on (fs.id=o.retailerId and o.billingTimestamp between :startDate and :endDate " + " and o.refundTimestamp is null) where" + " fs.internal = false and (fs.active= true or o.retailerId is not null) group by fs.warehouseId, fs.id"),
|
| 31539 |
amit.gupta |
150 |
|
| 36470 |
ranu |
151 |
@NamedQuery(name = "Order.selectCollectionSummary", query = "select new com.spice.profitmandi.dao.model.CollectionSummary(pot.createTimestamp, "
|
|
|
152 |
+ " pot.referenceType,"
|
|
|
153 |
+ " sum(case when po.name = 'CASH' then cast(pot.amount As int) else 0 end),"
|
|
|
154 |
+ " sum(case when po.name = 'PINELABS' then cast(pot.amount As int) else 0 end),"
|
|
|
155 |
+ " sum(case when po.name = 'BAJAJ FINSERV' then cast(pot.amount As int) else 0 end),"
|
|
|
156 |
+ " sum(case when po.name = 'HOME CREDIT' then cast(pot.amount As int) else 0 end),"
|
|
|
157 |
+ " sum(case when po.name = 'PAYTM' then cast(pot.amount As int) else 0 end),"
|
|
|
158 |
+ " sum(case when po.name = 'CAPITAL FIRST' then cast(pot.amount As int) else 0 end),"
|
|
|
159 |
+ " sum(case when po.name = 'ZEST MONEY' then cast(pot.amount As int) else 0 end),"
|
|
|
160 |
+ " sum(case when po.name = 'SAMSUNG SURE' then cast(pot.amount As int) else 0 end),"
|
|
|
161 |
+ " sum(case when po.name = 'MOBIKWIK' then cast(pot.amount As int) else 0 end),"
|
|
|
162 |
+ " sum(case when po.name = 'BENOW' then cast(pot.amount As int) else 0 end),"
|
|
|
163 |
+ " sum(case when po.name = 'RAZOR PAY SWP' then cast(pot.amount As int) else 0 end),"
|
|
|
164 |
+ " sum(case when po.name = 'IDFC (CF)' then cast(pot.amount As int) else 0 end),"
|
|
|
165 |
+ " sum(case when po.name = 'HDB' then cast(pot.amount As int) else 0 end),"
|
|
|
166 |
+ " sum(case when po.name = 'UPI PAYMENT' then cast(pot.amount As int) else 0 end),"
|
|
|
167 |
+ " sum(case when po.name = 'ACCOUNT TRANSFER' then cast(pot.amount As int) else 0 end),"
|
|
|
168 |
+ " sum(case when po.name = 'ONLINE' then cast(pot.amount As int) else 0 end),"
|
|
|
169 |
+ " sum(case when po.name = 'TVS' then cast(pot.amount As int) else 0 end),"
|
|
|
170 |
+ " sum(case when po.name = 'CLEVERPE' then cast(pot.amount As int) else 0 end),"
|
|
|
171 |
+ " sum(case when po.name = 'AMAZON PAY' then cast(pot.amount As int) else 0 end),"
|
|
|
172 |
+ " sum(case when po.name = 'SAMSUNG UPGRADE' then cast(pot.amount As int) else 0 end),"
|
|
|
173 |
+ " sum(cast(pot.amount As int)))"
|
|
|
174 |
+ " from PaymentOptionTransaction pot join PaymentOption po on pot.paymentOptionId=po.id"
|
|
|
175 |
+ " join com.spice.profitmandi.dao.entity.user.User u on u.id=pot.fofoId"
|
|
|
176 |
+ " join Address a on a.id=u.addressId where 1=1 and pot.fofoId = :fofoId"
|
|
|
177 |
+ " and pot.createTimestamp between :startDate and :endDate"
|
|
|
178 |
+ " group by (pot.createTimestamp), pot.referenceType "),
|
| 30279 |
tejbeer |
179 |
|
| 31860 |
tejbeer |
180 |
|
| 34641 |
ranu |
181 |
@NamedQuery(name = "Order.getLastOrderByFofoId", query = "select COALESCE(Max(o.id),0) from Order o where o.retailerId = :fofoId and o.status in (7,9,10,12)"),
|
| 31860 |
tejbeer |
182 |
|
| 32478 |
amit.gupta |
183 |
@NamedQuery(name = "Order.selectOrderValueByCreateDateGroupByFofoId", query = "select new com.spice.profitmandi.common.model.IdAmountModel(o.retailerId, sum(o.totalAmount)) from Order o where o.retailerId in :retailerIds and o.status in :status and o.createTimestamp between :startDate and :endDate group by o.retailerId"),
|
| 34715 |
ranu |
184 |
|
|
|
185 |
@NamedQuery(name = "Order.selectOrderValueByBillingDateGroupByFofoId", query = "select new com.spice.profitmandi.common.model.IdAmountModel(o.retailerId, sum(o.totalAmount)) from Order o where o.retailerId in :retailerIds and o.billingTimestamp between :startDate and :endDate group by o.retailerId"),
|
|
|
186 |
|
| 33189 |
amit.gupta |
187 |
@NamedQuery(name = "Order.selectOrdersByBilledDateCatalogId",
|
|
|
188 |
query = "select new com.spice.profitmandi.common.model.GrnPendingDataModel(" +
|
|
|
189 |
"o.retailerId, fs.code, o.retailerName, o.invoiceNumber, o.billingTimestamp, l.itemId, l.brand, l.modelName, l.modelNumber, l.color, " +
|
|
|
190 |
"l.unitPrice, lii.serialNumber, v.name, wi.created, ai.activationTimestamp, ai.createTimestamp)" +
|
| 31860 |
tejbeer |
191 |
|
| 33189 |
amit.gupta |
192 |
"from Order o join FofoStore fs on fs.id = o.retailerId" +
|
|
|
193 |
" join LineItem l on l.orderId = o.id" +
|
|
|
194 |
" join LineItemImei lii on lii.lineItemId = l.id" +
|
|
|
195 |
" join Warehouse w on w.id = o.fulfilmentWarehouseId" +
|
|
|
196 |
" join Vendor v on v.id = w.vendor" +
|
|
|
197 |
" join WarehouseInventoryItem wi on wi.serialNumber = lii.serialNumber" +
|
|
|
198 |
" join WarehouseScan ws on (ws.orderId = o.id and ws.type = 'SALE' and wi.id = ws.inventoryItemId)" +
|
| 33202 |
amit.gupta |
199 |
" join Item i on i.id=l.itemId " +
|
|
|
200 |
" left join ActivatedImei ai on ai.serialNumber = lii.serialNumber " +
|
|
|
201 |
"where fs.internal=false and i.catalogItemId=:catalogId and o.billingTimestamp >= :startDate " +
|
|
|
202 |
"and (:endDate is null or o.billingTimestamp < :endDate) and (o.refundTimestamp is null or o.refundTimestamp <= :endDate)"),
|
| 33443 |
ranu |
203 |
@NamedQuery(
|
|
|
204 |
name = "Order.selectAllLiveDemoBrandItemsByBillingDate",
|
|
|
205 |
query = "select new com.spice.profitmandi.dao.model.LiveDemoOrderLineItemModel (" +
|
|
|
206 |
"o.id, " +
|
|
|
207 |
"o.invoiceNumber, " +
|
|
|
208 |
"o.billingTimestamp, " +
|
|
|
209 |
"o.retailerName, " +
|
|
|
210 |
"o.retailerCity, " +
|
|
|
211 |
"o.retailerPinCode, " +
|
|
|
212 |
"o.retailerState, " +
|
|
|
213 |
"lii.serialNumber, " +
|
|
|
214 |
"li.modelNumber, " +
|
|
|
215 |
"li.modelName, " +
|
|
|
216 |
"li.brand," +
|
|
|
217 |
"li.itemId )" +
|
|
|
218 |
"FROM Order o JOIN LineItem li on o.id = li.orderId " +
|
|
|
219 |
"JOIN LineItemImei lii on li.id = lii.lineItemId " +
|
|
|
220 |
"WHERE li.brand = 'Live Demo' " +
|
|
|
221 |
"AND o.billingTimestamp between :startDate and :endDate"
|
| 33464 |
ranu |
222 |
),
|
|
|
223 |
|
|
|
224 |
@NamedQuery(
|
|
|
225 |
name = "Order.selectTodayPocoBilling",
|
|
|
226 |
query = "select new com.spice.profitmandi.dao.model.LiveDemoOrderLineItemModel (" +
|
|
|
227 |
"o.id, " +
|
|
|
228 |
"o.invoiceNumber, " +
|
|
|
229 |
"o.billingTimestamp, " +
|
|
|
230 |
"o.retailerName, " +
|
|
|
231 |
"o.retailerCity, " +
|
|
|
232 |
"o.retailerPinCode, " +
|
|
|
233 |
"o.retailerState, " +
|
|
|
234 |
"lii.serialNumber, " +
|
|
|
235 |
"li.modelNumber, " +
|
|
|
236 |
"li.modelName, " +
|
|
|
237 |
"li.brand," +
|
|
|
238 |
"li.itemId )" +
|
|
|
239 |
"FROM Order o JOIN LineItem li on o.id = li.orderId " +
|
|
|
240 |
"JOIN LineItemImei lii on li.id = lii.lineItemId " +
|
|
|
241 |
"JOIN FofoStore fs on fs.id=o.retailerId "+
|
|
|
242 |
"WHERE li.brand = 'POCO' " +
|
|
|
243 |
"AND fs.internal = false " +
|
|
|
244 |
"AND o.billingTimestamp between :startDate and :endDate"
|
| 33443 |
ranu |
245 |
)
|
| 32478 |
amit.gupta |
246 |
|
| 33189 |
amit.gupta |
247 |
|
| 33443 |
ranu |
248 |
|
| 21545 |
ashik.ali |
249 |
})
|
| 30110 |
tejbeer |
250 |
//@NamedNativeQuery(name = "Order.findByEmailAddress", query = "select * from transaction.`order` o where o.id = '1694173'", resultClass = Order.class)
|
|
|
251 |
|
| 30161 |
manish |
252 |
@NamedNativeQueries({
|
| 30110 |
tejbeer |
253 |
|
| 31860 |
tejbeer |
254 |
@NamedNativeQuery(name = "Order.selectAllOrderWeight", query = "select i.catalog_item_id from transaction.`order` o join transaction.lineitem li on o.id = li.order_id " + "join catalog.item i on i.id = li.item_id " + "where date(o.created_timestamp) between :startDate and :endDate and o.status = 12 and i.hsnCode = '85171300' and i.brand != 'Live Demo'" + " group by i.catalog_item_id order by sum((datediff(now(),o.created_timestamp)/30)*li.quantity) desc"),
|
| 31604 |
tejbeer |
255 |
|
| 35631 |
ranu |
256 |
@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 " + "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 " + "(o.id = li.order_id) left join auth.partner_secondary_plan psp on (psp.fofo_id = o.customer_id and psp.commited_timestamp >= :startDate and " + "psp.active = 1 and psp.brand = li.brand ) where o.customer_id in :fofoIds and o.status in (7,9,10,12) and o.billing_timestamp >= :startDate and o.billing_timestamp < :nextDate" + " 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 " + " 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 o.billing_timestamp >= :startDate and o.billing_timestamp < :nextDate) " + "left join transaction.lineitem li on (o.id = li.order_id and psp.brand=li.brand) where psp.fofo_id in :fofoIds and psp.commited_timestamp >= :startDate " + "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 |
257 |
|
| 33145 |
tejus.loha |
258 |
@NamedNativeQuery(name = "selectPriceDropReport", query = "select fs.code, pd.id, ci.brand,ci.model_name,"
|
|
|
259 |
+ " ci.model_number,pd.affected_on, pd.amount, pd.partner_payout, pdi.imei, pdi.status, pdi.update_timestamp, pdi.rejection_reason,pdi.credit_timestamp,pdi.reject_timestamp"
|
|
|
260 |
+ " from transaction.price_drop pd join transaction.price_drop_imei pdi on pdi.price_drop_id = pd.id "
|
|
|
261 |
+ " join (select catalog_item_id, brand, model_name, model_number from catalog.item group by catalog_item_id )"
|
|
|
262 |
+ " 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;",
|
|
|
263 |
resultSetMapping = "PriceDropReportModel"),
|
| 30279 |
tejbeer |
264 |
|
| 32044 |
tejbeer |
265 |
@NamedNativeQuery(name = "Order.selectCreateToBillingAvg", query = "select o.customer_id, avg(DATEDIFF(o.billing_timestamp,o.created_timestamp)) as average from transaction.`order` o join fofo.fofo_store fs on o.customer_id = fs.id where date(o.created_timestamp) between :startDate and :endDate and o.billing_timestamp is not null and fs.internal = 0 group by o.customer_id", resultSetMapping = "BillingDaysAvg"),
|
| 31860 |
tejbeer |
266 |
|
| 32044 |
tejbeer |
267 |
@NamedNativeQuery(name = "Order.selectBillingToDeliverAvg", query = "select o.customer_id, avg(DATEDIFF(o.delivery_timestamp,o.billing_timestamp)) as average from transaction.`order` o join fofo.fofo_store fs on o.customer_id = fs.id where date(o.created_timestamp) between :startDate and :endDate and o.billing_timestamp is not null and o.delivery_timestamp is not null and fs.internal = 0 group by o.customer_id", resultSetMapping = "BillingDaysAvg"),
|
|
|
268 |
|
|
|
269 |
|
|
|
270 |
@NamedNativeQuery(name = "Order.getLastOrders", query = "select o.customer_id, Max(o.created_timestamp) as maxdate from transaction.`order` o join fofo.fofo_store fs on fs.id = o.customer_id where o.status in (7,9,10,12) and o.delivery_timestamp is not null and fs.internal = 0 group by o.customer_id", resultSetMapping = "LastSaleDays"),
|
|
|
271 |
|
| 33396 |
amit.gupta |
272 |
@NamedNativeQuery(name = "Order.itemAvailability", query = "select grouped.item_id, " +
|
|
|
273 |
" grouped.vendor_warehouse_id, " +
|
|
|
274 |
" sum(grouped.availability) as availability, " +
|
|
|
275 |
" sum(grouped.reserved) as reserved, " +
|
|
|
276 |
" sum(grouped.availability - grouped.reserved) as net_availability " +
|
|
|
277 |
"from (select l.item_id, " +
|
|
|
278 |
" o.fulfilmentWarehouseId as vendor_warehouse_id, " +
|
|
|
279 |
" 0 as availability, " +
|
|
|
280 |
" sum(l.quantity) as reserved " +
|
|
|
281 |
" from fofo.fofo_store fs " +
|
|
|
282 |
" join transaction.order o on o.customer_id = fs.id " +
|
|
|
283 |
" join transaction.lineitem l on l.order_id = o.id " +
|
|
|
284 |
" join catalog.item i on i.id = l.item_id " +
|
|
|
285 |
" where o.status in (3, 4) " +
|
|
|
286 |
" and l.item_id in :itemIds " +
|
|
|
287 |
" and o.warehouse_id = :warehouseId " +
|
|
|
288 |
" group by l.item_id, o.warehouse_id, o.fulfilmentWarehouseId " +
|
|
|
289 |
" union " +
|
|
|
290 |
" select ii.itemId AS item_id, " +
|
|
|
291 |
" ii.currentWarehouseId, " +
|
|
|
292 |
" sum((case " +
|
|
|
293 |
" when (s2.type in ('SALE', 'LOST_IN_WAREHOUSE', 'PURCHASE_RETURN', 'MARKED_USED', 'MARKED_BAD')) " +
|
|
|
294 |
" then -(s2.quantity) " +
|
|
|
295 |
" when (s2.type in ('PURCHASE', 'SALE_RET', 'MARKED_GOOD')) then s2.quantity end)) AS availability, " +
|
|
|
296 |
" 0 as reserved " +
|
|
|
297 |
" from ((warehouse.scanNew s1 join warehouse.scanNew s2 " +
|
|
|
298 |
" on ((s1.inventoryItemId = s2.inventoryItemId))) join warehouse.inventoryItem ii " +
|
|
|
299 |
" on ((ii.id = s2.inventoryItemId)) join catalog.item i on i.id = ii.itemId) " +
|
|
|
300 |
" where ((s1.type = 'PURCHASE') and (s1.scannedAt >= '2017-07-01')) " +
|
|
|
301 |
" and ii.itemId in :itemIds " +
|
|
|
302 |
" and ii.physicalWarehouseId = :warehouseId " +
|
|
|
303 |
" group by ii.itemId, ii.currentWarehouseId) as grouped " +
|
|
|
304 |
"group by item_id, vendor_warehouse_id", resultSetMapping = "itemAvailabilityReservationMapping"),
|
| 32044 |
tejbeer |
305 |
|
| 35155 |
ranu |
306 |
@NamedNativeQuery(
|
| 35153 |
ranu |
307 |
name = "Order.selectTodayOrdersRBM",
|
| 35473 |
amit |
308 |
query = "SELECT auth_user_id, brand, " +
|
|
|
309 |
" SUM(today_po_value) AS today_po_value, " +
|
|
|
310 |
" SUM(today_billed_value) AS today_billed_value, " +
|
|
|
311 |
" SUM(total_billed_value) AS total_billed_value, " +
|
|
|
312 |
" COUNT(DISTINCT customer_id) AS partner_count " +
|
|
|
313 |
"FROM ( " +
|
| 35475 |
amit |
314 |
" SELECT p.auth_user_id, li.brand, o.customer_id, " +
|
| 35473 |
amit |
315 |
" CASE WHEN o.refund_timestamp IS NULL THEN o.total_amount ELSE 0 END AS today_po_value, " +
|
|
|
316 |
" CASE WHEN o.billing_timestamp IS NOT NULL THEN o.total_amount ELSE 0 END AS today_billed_value, " +
|
|
|
317 |
" CASE WHEN o.billing_timestamp IS NOT NULL THEN o.total_amount ELSE 0 END AS total_billed_value " +
|
|
|
318 |
" FROM transaction.`order` o " +
|
|
|
319 |
" JOIN transaction.lineitem li ON o.id = li.order_id " +
|
|
|
320 |
" JOIN fofo.fofo_store fs ON fs.id = o.customer_id " +
|
| 35475 |
amit |
321 |
" JOIN cs.partner_position ps ON ps.partner_id = fs.id " +
|
|
|
322 |
" JOIN cs.position p ON p.id = ps.position_id AND p.category_id = :categoryId AND p.escalation_type = :escalationType " +
|
|
|
323 |
" WHERE o.refund_timestamp IS NULL AND o.created_timestamp BETWEEN :startDate AND :endDate " +
|
|
|
324 |
" AND fs.internal = FALSE AND li.brand NOT IN ('Smartdukaan', 'Dummy', 'FOC', 'Live Demo') " +
|
| 35473 |
amit |
325 |
" UNION ALL " +
|
| 35475 |
amit |
326 |
" SELECT p.auth_user_id, li.brand, o.customer_id, 0, 0, " +
|
|
|
327 |
" CASE WHEN o.billing_timestamp IS NOT NULL THEN o.total_amount ELSE 0 END " +
|
| 35473 |
amit |
328 |
" FROM transaction.`order` o " +
|
|
|
329 |
" JOIN transaction.lineitem li ON o.id = li.order_id " +
|
|
|
330 |
" JOIN fofo.fofo_store fs ON fs.id = o.customer_id " +
|
| 35475 |
amit |
331 |
" JOIN cs.partner_position ps ON ps.partner_id = fs.id " +
|
|
|
332 |
" JOIN cs.position p ON p.id = ps.position_id AND p.category_id = :categoryId AND p.escalation_type = :escalationType " +
|
|
|
333 |
" WHERE o.refund_timestamp IS NULL AND o.billing_timestamp BETWEEN :startDate AND :endDate " +
|
| 35473 |
amit |
334 |
" AND o.created_timestamp NOT BETWEEN :startDate AND :endDate " +
|
| 35475 |
amit |
335 |
" AND fs.internal = FALSE AND li.brand NOT IN ('Smartdukaan', 'Dummy', 'FOC', 'Live Demo') " +
|
|
|
336 |
" UNION ALL " +
|
|
|
337 |
" SELECT p.auth_user_id, li.brand, o.customer_id, " +
|
|
|
338 |
" CASE WHEN o.refund_timestamp IS NULL THEN o.total_amount ELSE 0 END, " +
|
|
|
339 |
" CASE WHEN o.billing_timestamp IS NOT NULL THEN o.total_amount ELSE 0 END, " +
|
|
|
340 |
" CASE WHEN o.billing_timestamp IS NOT NULL THEN o.total_amount ELSE 0 END " +
|
|
|
341 |
" FROM transaction.`order` o " +
|
|
|
342 |
" JOIN transaction.lineitem li ON o.id = li.order_id " +
|
|
|
343 |
" JOIN fofo.fofo_store fs ON fs.id = o.customer_id " +
|
|
|
344 |
" JOIN cs.partner_region pr ON pr.fofo_id = fs.id " +
|
|
|
345 |
" JOIN cs.partner_position ps ON ps.partner_id = 0 AND ps.region_id = pr.region_id " +
|
|
|
346 |
" JOIN cs.position p ON p.id = ps.position_id AND p.category_id = :categoryId AND p.escalation_type = :escalationType " +
|
|
|
347 |
" WHERE o.refund_timestamp IS NULL AND o.created_timestamp BETWEEN :startDate AND :endDate " +
|
|
|
348 |
" AND fs.internal = FALSE AND li.brand NOT IN ('Smartdukaan', 'Dummy', 'FOC', 'Live Demo') " +
|
|
|
349 |
" UNION ALL " +
|
|
|
350 |
" SELECT p.auth_user_id, li.brand, o.customer_id, 0, 0, " +
|
|
|
351 |
" CASE WHEN o.billing_timestamp IS NOT NULL THEN o.total_amount ELSE 0 END " +
|
|
|
352 |
" FROM transaction.`order` o " +
|
|
|
353 |
" JOIN transaction.lineitem li ON o.id = li.order_id " +
|
|
|
354 |
" JOIN fofo.fofo_store fs ON fs.id = o.customer_id " +
|
|
|
355 |
" JOIN cs.partner_region pr ON pr.fofo_id = fs.id " +
|
|
|
356 |
" JOIN cs.partner_position ps ON ps.partner_id = 0 AND ps.region_id = pr.region_id " +
|
|
|
357 |
" JOIN cs.position p ON p.id = ps.position_id AND p.category_id = :categoryId AND p.escalation_type = :escalationType " +
|
|
|
358 |
" WHERE o.refund_timestamp IS NULL AND o.billing_timestamp BETWEEN :startDate AND :endDate " +
|
|
|
359 |
" AND o.created_timestamp NOT BETWEEN :startDate AND :endDate " +
|
|
|
360 |
" AND fs.internal = FALSE AND li.brand NOT IN ('Smartdukaan', 'Dummy', 'FOC', 'Live Demo') " +
|
| 35473 |
amit |
361 |
") AS combined " +
|
|
|
362 |
"GROUP BY auth_user_id, brand " +
|
|
|
363 |
"ORDER BY auth_user_id, brand",
|
| 35153 |
ranu |
364 |
resultSetMapping = "TodayPoByAuthUsers"
|
| 35172 |
ranu |
365 |
),
|
|
|
366 |
|
|
|
367 |
@NamedNativeQuery(
|
|
|
368 |
name = "Order.selectTodayOrdersModelWise",
|
|
|
369 |
query = "SELECT o.created_timestamp,o.customer_name,fs.code,fs.warehouse_id, li.brand,concat(i.model_name, ' ', i.model_number) as modal,i.catalog_item_id ,coalesce(cc.status, '-') as status,sum(li.quantity) as quantity," +
|
|
|
370 |
" SUM(" +
|
|
|
371 |
" CASE" +
|
|
|
372 |
" WHEN (o.created_timestamp BETWEEN :startDate AND :endDate and o.refund_timestamp is null)" +
|
|
|
373 |
" AND o.refund_timestamp IS NULL" +
|
|
|
374 |
" THEN o.total_amount" +
|
|
|
375 |
" ELSE 0" +
|
|
|
376 |
" END" +
|
|
|
377 |
" ) AS today_po_value," +
|
|
|
378 |
" SUM(" +
|
|
|
379 |
" CASE" +
|
|
|
380 |
" WHEN o.billing_timestamp IS NOT NULL" +
|
|
|
381 |
" AND (o.created_timestamp BETWEEN :startDate AND :endDate)" +
|
|
|
382 |
" THEN o.total_amount" +
|
|
|
383 |
" ELSE 0" +
|
|
|
384 |
" END" +
|
|
|
385 |
" ) AS today_billed_value" +
|
|
|
386 |
" FROM transaction.`order` o" +
|
|
|
387 |
" JOIN transaction.lineitem li" +
|
|
|
388 |
" ON o.id = li.order_id" +
|
|
|
389 |
" JOIN fofo.fofo_store fs ON fs.id = o.customer_id" +
|
|
|
390 |
" join catalog.item i on i.id = li.item_id" +
|
|
|
391 |
" join catalog.catagoriesd_catalog cc on i.catalog_item_id = cc.catalog_id AND cc.end_date IS NULL" +
|
|
|
392 |
" WHERE o.refund_timestamp IS NULL" +
|
|
|
393 |
" AND (" +
|
|
|
394 |
" (o.created_timestamp BETWEEN :startDate AND :endDate)" +
|
|
|
395 |
" OR (o.billing_timestamp BETWEEN :startDate AND :endDate)" +
|
|
|
396 |
" )" +
|
|
|
397 |
" AND fs.internal = FALSE" +
|
|
|
398 |
" AND fs.active = TRUE" +
|
|
|
399 |
" AND li.brand NOT IN ('Smartdukaan', 'Dummy', 'FOC', 'Live Demo')" +
|
|
|
400 |
"GROUP BY o.customer_id, i.catalog_item_id",
|
|
|
401 |
resultSetMapping = "TodayPoByCatalog"
|
| 35474 |
amit |
402 |
),
|
|
|
403 |
|
|
|
404 |
@NamedNativeQuery(
|
|
|
405 |
name = "Order.selectTodayOrdersNative",
|
|
|
406 |
query = "SELECT " +
|
|
|
407 |
" COALESCE(pr.region_id, fs.warehouse_id) AS warehouse_id, " +
|
|
|
408 |
" combined.brand, " +
|
|
|
409 |
" SUM(combined.today_po_value) AS today_po_value, " +
|
|
|
410 |
" SUM(combined.today_billed_value) AS today_billed_value, " +
|
|
|
411 |
" SUM(combined.total_billed_value) AS total_billed_value " +
|
|
|
412 |
"FROM ( " +
|
|
|
413 |
" SELECT " +
|
|
|
414 |
" o.customer_id, " +
|
|
|
415 |
" li.brand, " +
|
|
|
416 |
" CASE WHEN o.refund_timestamp IS NULL THEN o.total_amount ELSE 0 END AS today_po_value, " +
|
|
|
417 |
" CASE WHEN o.billing_timestamp IS NOT NULL THEN o.total_amount ELSE 0 END AS today_billed_value, " +
|
|
|
418 |
" CASE WHEN o.billing_timestamp IS NOT NULL THEN o.total_amount ELSE 0 END AS total_billed_value " +
|
|
|
419 |
" FROM transaction.`order` o " +
|
|
|
420 |
" JOIN transaction.lineitem li ON o.id = li.order_id " +
|
|
|
421 |
" JOIN fofo.fofo_store fs2 ON fs2.id = o.customer_id " +
|
|
|
422 |
" WHERE o.refund_timestamp IS NULL " +
|
|
|
423 |
" AND o.created_timestamp BETWEEN :startDate AND :endDate " +
|
|
|
424 |
" AND fs2.internal = FALSE " +
|
|
|
425 |
" AND li.brand NOT IN ('Smartdukaan', 'Dummy') " +
|
|
|
426 |
" UNION ALL " +
|
|
|
427 |
" SELECT " +
|
|
|
428 |
" o.customer_id, " +
|
|
|
429 |
" li.brand, " +
|
|
|
430 |
" 0 AS today_po_value, " +
|
|
|
431 |
" 0 AS today_billed_value, " +
|
|
|
432 |
" CASE WHEN o.billing_timestamp IS NOT NULL THEN o.total_amount ELSE 0 END AS total_billed_value " +
|
|
|
433 |
" FROM transaction.`order` o " +
|
|
|
434 |
" JOIN transaction.lineitem li ON o.id = li.order_id " +
|
|
|
435 |
" JOIN fofo.fofo_store fs2 ON fs2.id = o.customer_id " +
|
|
|
436 |
" WHERE o.refund_timestamp IS NULL " +
|
|
|
437 |
" AND o.billing_timestamp BETWEEN :startDate AND :endDate " +
|
|
|
438 |
" AND o.created_timestamp NOT BETWEEN :startDate AND :endDate " +
|
|
|
439 |
" AND fs2.internal = FALSE " +
|
|
|
440 |
" AND li.brand NOT IN ('Smartdukaan', 'Dummy') " +
|
|
|
441 |
") AS combined " +
|
|
|
442 |
"JOIN fofo.fofo_store fs ON fs.id = combined.customer_id " +
|
|
|
443 |
"LEFT JOIN cs.partner_region pr ON pr.fofo_id = combined.customer_id AND pr.region_id = 18 " +
|
|
|
444 |
"GROUP BY COALESCE(pr.region_id, fs.warehouse_id), combined.brand " +
|
|
|
445 |
"ORDER BY warehouse_id, combined.brand",
|
|
|
446 |
resultSetMapping = "TodayPoByRegion"
|
| 35155 |
ranu |
447 |
)
|
| 33396 |
amit.gupta |
448 |
|
| 30161 |
manish |
449 |
})
|
|
|
450 |
|
| 30279 |
tejbeer |
451 |
@SqlResultSetMappings({
|
| 33396 |
amit.gupta |
452 |
@SqlResultSetMapping(name = "itemAvailabilityReservationMapping", classes = {@ConstructorResult(targetClass = WarehouseItemQtyModel.class,
|
|
|
453 |
columns = {@ColumnResult(name = "item_id", type = Integer.class), @ColumnResult(name = "vendor_warehouse_id", type = Integer.class),
|
|
|
454 |
@ColumnResult(name = "availability", type = Integer.class),
|
|
|
455 |
@ColumnResult(name = "reserved", type = Integer.class), @ColumnResult(name = "net_availability", type = Integer.class)})}),
|
| 30161 |
manish |
456 |
|
| 31860 |
tejbeer |
457 |
@SqlResultSetMapping(name = "partnerSecondaryPlanModel", classes = {@ConstructorResult(targetClass = PartnerSecondaryPlanModel.class, columns = {@ColumnResult(name = "id", type = Integer.class), @ColumnResult(name = "brand", type = String.class), @ColumnResult(name = "secondary_plan", type = Long.class), @ColumnResult(name = "total_price", type = Long.class), @ColumnResult(name = "auth_id", type = Integer.class), @ColumnResult(name = "commited_timestamp", type = LocalDateTime.class)})}),
|
| 30279 |
tejbeer |
458 |
|
| 33145 |
tejus.loha |
459 |
@SqlResultSetMapping(name = "PriceDropReportModel", classes = {@ConstructorResult(targetClass = PriceDropReportModel.class, columns = {@ColumnResult(name = "code", type = String.class), @ColumnResult(name = "id", type = Integer.class), @ColumnResult(name = "brand", type = String.class), @ColumnResult(name = "model_name", type = String.class), @ColumnResult(name = "model_number", type = String.class), @ColumnResult(name = "affected_on", type = LocalDateTime.class), @ColumnResult(name = "amount", type = Float.class), @ColumnResult(name = "partner_payout", type = Float.class), @ColumnResult(name = "imei", type = String.class), @ColumnResult(name = "status", type = String.class), @ColumnResult(name = "update_timestamp", type = LocalDateTime.class), @ColumnResult(name = "rejection_reason", type = String.class), @ColumnResult(name = "credit_timestamp", type = LocalDateTime.class), @ColumnResult(name = "reject_timestamp", type = LocalDateTime.class)})}),
|
| 30279 |
tejbeer |
460 |
|
| 32044 |
tejbeer |
461 |
@SqlResultSetMapping(name = "BillingDaysAvg", classes = {@ConstructorResult(targetClass = BillingDaysAvg.class, columns = {@ColumnResult(name = "customer_id", type = Integer.class), @ColumnResult(name = "average", type = Long.class)})}),
|
|
|
462 |
|
| 35153 |
ranu |
463 |
@SqlResultSetMapping(name = "LastSaleDays", classes = {@ConstructorResult(targetClass = LastSaleDateModel.class, columns = {@ColumnResult(name = "customer_id", type = Integer.class), @ColumnResult(name = "maxdate", type = LocalDateTime.class)})}),
|
|
|
464 |
@SqlResultSetMapping(name = "TodayPoByAuthUsers",
|
| 35155 |
ranu |
465 |
classes = @ConstructorResult(
|
|
|
466 |
targetClass = BrandAuthUserPOModel.class,
|
| 35153 |
ranu |
467 |
columns = {
|
| 35155 |
ranu |
468 |
@ColumnResult(name = "auth_user_id", type = Integer.class),
|
| 35153 |
ranu |
469 |
@ColumnResult(name = "brand", type = String.class),
|
| 35155 |
ranu |
470 |
@ColumnResult(name = "today_po_value", type = Long.class),
|
|
|
471 |
@ColumnResult(name = "today_billed_value", type = Long.class),
|
|
|
472 |
@ColumnResult(name = "total_billed_value", type = Long.class),
|
|
|
473 |
@ColumnResult(name = "partner_count", type = Integer.class)
|
|
|
474 |
}
|
|
|
475 |
)
|
| 35172 |
ranu |
476 |
),
|
|
|
477 |
|
|
|
478 |
@SqlResultSetMapping(name = "TodayPoByCatalog",
|
|
|
479 |
classes = @ConstructorResult(
|
|
|
480 |
targetClass = ModelWisePartnerPoModel.class,
|
|
|
481 |
columns = {
|
|
|
482 |
@ColumnResult(name = "created_timestamp", type = LocalDateTime.class),
|
|
|
483 |
@ColumnResult(name = "customer_name", type = String.class),
|
|
|
484 |
@ColumnResult(name = "code", type = String.class),
|
|
|
485 |
@ColumnResult(name = "warehouse_id", type = Integer.class),
|
|
|
486 |
@ColumnResult(name = "brand", type = String.class),
|
|
|
487 |
@ColumnResult(name = "modal", type = String.class),
|
|
|
488 |
@ColumnResult(name = "catalog_item_id", type = Integer.class),
|
|
|
489 |
@ColumnResult(name = "status", type = String.class),
|
|
|
490 |
@ColumnResult(name = "quantity", type = Long.class),
|
|
|
491 |
@ColumnResult(name = "today_po_value", type = Long.class),
|
|
|
492 |
@ColumnResult(name = "today_billed_value", type = Long.class)
|
|
|
493 |
}
|
|
|
494 |
)
|
| 35474 |
amit |
495 |
),
|
|
|
496 |
|
|
|
497 |
@SqlResultSetMapping(name = "TodayPoByRegion",
|
|
|
498 |
classes = @ConstructorResult(
|
|
|
499 |
targetClass = BrandRegionPOModel.class,
|
|
|
500 |
columns = {
|
|
|
501 |
@ColumnResult(name = "warehouse_id", type = Integer.class),
|
|
|
502 |
@ColumnResult(name = "brand", type = String.class),
|
|
|
503 |
@ColumnResult(name = "today_po_value", type = Long.class),
|
|
|
504 |
@ColumnResult(name = "today_billed_value", type = Long.class),
|
|
|
505 |
@ColumnResult(name = "total_billed_value", type = Long.class)
|
|
|
506 |
}
|
|
|
507 |
)
|
| 35155 |
ranu |
508 |
)
|
| 35154 |
ranu |
509 |
|
| 30161 |
manish |
510 |
})
|
|
|
511 |
|
| 35155 |
ranu |
512 |
|
| 27723 |
tejbeer |
513 |
public class Order implements Serializable {
|
|
|
514 |
|
| 31860 |
tejbeer |
515 |
private static final long serialVersionUID = 1L;
|
|
|
516 |
@Id
|
|
|
517 |
@Column(name = "id", unique = true, updatable = false)
|
|
|
518 |
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
|
|
519 |
private Integer id;
|
|
|
520 |
@Column(name = "warehouse_id")
|
|
|
521 |
private Integer warehouseId;
|
|
|
522 |
@Column(name = "seller_id")
|
|
|
523 |
private Integer sellerId;
|
|
|
524 |
@Column(name = "warehouse_address_id")
|
|
|
525 |
private Integer warehouseAddressId;
|
|
|
526 |
@Column(name = "logistics_provider_id")
|
|
|
527 |
private Integer logisticsProviderId;
|
|
|
528 |
@Column(name = "airwaybill_no", length = 50)
|
|
|
529 |
private String airwayBillNumber;
|
|
|
530 |
@Column(name = "tracking_id", length = 50)
|
|
|
531 |
private String trackingId;
|
|
|
532 |
@Convert(converter = LocalDateTimeAttributeConverter.class)
|
|
|
533 |
@Column(name = "expected_delivery_time")
|
|
|
534 |
private LocalDateTime expectedDeliveryTime;
|
|
|
535 |
@Convert(converter = LocalDateTimeAttributeConverter.class)
|
|
|
536 |
@Column(name = "promised_delivery_time")
|
|
|
537 |
private LocalDateTime promisedDeliveryTime;
|
|
|
538 |
@Convert(converter = LocalDateTimeAttributeConverter.class)
|
|
|
539 |
@Column(name = "expected_shipping_time")
|
|
|
540 |
private LocalDateTime expectedShippingTime;
|
|
|
541 |
@Convert(converter = LocalDateTimeAttributeConverter.class)
|
|
|
542 |
@Column(name = "promised_shipping_time")
|
|
|
543 |
private LocalDateTime promisedShippingTime;
|
|
|
544 |
@Convert(converter = LocalDateTimeAttributeConverter.class)
|
|
|
545 |
@Column(name = "partner_grn_timestamp")
|
|
|
546 |
private LocalDateTime partnerGrnTimestamp;
|
|
|
547 |
@Transient
|
|
|
548 |
private List<String> returnedImeis;
|
|
|
549 |
@Column(name = "customer_id")
|
|
|
550 |
private Integer retailerId;
|
|
|
551 |
@Column(name = "customer_name", length = 50)
|
|
|
552 |
private String retailerName;
|
|
|
553 |
@Column(name = "customer_mobilenumber", length = 20)
|
|
|
554 |
private String retailerMobileNumber;
|
|
|
555 |
@Column(name = "customer_pincode", length = 10)
|
|
|
556 |
private String retailerPinCode;
|
|
|
557 |
@Column(name = "customer_address1", length = 100)
|
|
|
558 |
private String retailerAddress1;
|
|
|
559 |
@Column(name = "customer_address2", length = 100)
|
|
|
560 |
private String retailerAddress2;
|
|
|
561 |
@Column(name = "customer_city", length = 100)
|
|
|
562 |
private String retailerCity;
|
|
|
563 |
@Column(name = "customer_state", length = 100)
|
|
|
564 |
private String retailerState;
|
|
|
565 |
@Column(name = "customer_email", length = 50)
|
|
|
566 |
private String retailerEmailId;
|
|
|
567 |
@Column(name = "status")
|
|
|
568 |
@Enumerated(EnumType.ORDINAL)
|
|
|
569 |
private OrderStatus status;
|
|
|
570 |
@Column(name = "statusDescription", length = 50)
|
|
|
571 |
private String statusDescription;
|
|
|
572 |
@Column(name = "total_amount")
|
|
|
573 |
private Float totalAmount;
|
|
|
574 |
@Column(name = "gvAmount")
|
|
|
575 |
private Float gvAmount;
|
|
|
576 |
@Column(name = "total_weight")
|
|
|
577 |
private Float totalWeight;
|
|
|
578 |
@Column(name = "invoice_number", length = 30)
|
|
|
579 |
private String invoiceNumber;
|
|
|
580 |
@Column(name = "billed_by", length = 30)
|
|
|
581 |
private String billedBy;
|
|
|
582 |
@Convert(converter = LocalDateTimeAttributeConverter.class)
|
|
|
583 |
@Column(name = "created_timestamp")
|
|
|
584 |
private LocalDateTime createTimestamp;
|
|
|
585 |
@Convert(converter = LocalDateTimeAttributeConverter.class)
|
|
|
586 |
@Column(name = "accepted_timestamp")
|
|
|
587 |
private LocalDateTime acceptedTimestamp;
|
|
|
588 |
@Convert(converter = LocalDateTimeAttributeConverter.class)
|
|
|
589 |
@Column(name = "billing_timestamp")
|
|
|
590 |
private LocalDateTime billingTimestamp;
|
|
|
591 |
@Convert(converter = LocalDateTimeAttributeConverter.class)
|
|
|
592 |
@Column(name = "shipping_timestamp")
|
|
|
593 |
private LocalDateTime shippingTimestamp;
|
|
|
594 |
@Convert(converter = LocalDateTimeAttributeConverter.class)
|
|
|
595 |
@Column(name = "pickup_timestamp")
|
|
|
596 |
private LocalDateTime pickupTimestamp;
|
|
|
597 |
@Convert(converter = LocalDateTimeAttributeConverter.class)
|
|
|
598 |
@Column(name = "delivery_timestamp")
|
|
|
599 |
private LocalDateTime deliveryTimestamp;
|
|
|
600 |
@Convert(converter = LocalDateTimeAttributeConverter.class)
|
|
|
601 |
@Column(name = "outofstock_timestamp")
|
|
|
602 |
private LocalDateTime outOfStockTimestamp;
|
|
|
603 |
@Column(name = "transaction_id")
|
|
|
604 |
private Integer transactionId;
|
|
|
605 |
@Column(name = "receiver", length = 50)
|
|
|
606 |
private String receiver;
|
|
|
607 |
@Column(name = "batchNo")
|
|
|
608 |
private Integer batchNumber;
|
|
|
609 |
@Column(name = "serialNo")
|
|
|
610 |
private Integer serialNumber;
|
|
|
611 |
@Column(name = "doaFlag", columnDefinition = "tinyInteger(1) default 0")
|
|
|
612 |
private Boolean doaFlag;
|
|
|
613 |
@Column(name = "pickupRequestNo")
|
|
|
614 |
private Integer pickupRequestNumber;
|
| 27723 |
tejbeer |
615 |
|
| 33052 |
amit.gupta |
616 |
@Column(name = "jacket_number", length = 10)
|
| 34754 |
ranu |
617 |
private Long jacketNumber;
|
| 33052 |
amit.gupta |
618 |
|
|
|
619 |
public Boolean getDoaFlag() {
|
|
|
620 |
return doaFlag;
|
|
|
621 |
}
|
|
|
622 |
|
| 34754 |
ranu |
623 |
public Long getJacketNumber() {
|
| 33052 |
amit.gupta |
624 |
return jacketNumber;
|
|
|
625 |
}
|
|
|
626 |
|
| 34754 |
ranu |
627 |
public void setJacketNumber(Long jacketNumber) {
|
| 33052 |
amit.gupta |
628 |
this.jacketNumber = jacketNumber;
|
|
|
629 |
}
|
|
|
630 |
|
|
|
631 |
public Boolean getCod() {
|
|
|
632 |
return cod;
|
|
|
633 |
}
|
|
|
634 |
|
|
|
635 |
public Boolean getVendorPaid() {
|
|
|
636 |
return vendorPaid;
|
|
|
637 |
}
|
|
|
638 |
|
|
|
639 |
public Boolean getOtg() {
|
|
|
640 |
return otg;
|
|
|
641 |
}
|
|
|
642 |
|
|
|
643 |
public Boolean getIrnGenerated() {
|
|
|
644 |
return irnGenerated;
|
|
|
645 |
}
|
|
|
646 |
|
|
|
647 |
public void setIrnGenerated(Boolean irnGenerated) {
|
|
|
648 |
this.irnGenerated = irnGenerated;
|
|
|
649 |
}
|
|
|
650 |
|
| 31860 |
tejbeer |
651 |
@Column(name = "new_order_id")
|
|
|
652 |
private Integer newOrderId;
|
|
|
653 |
@Column(name = "doa_auth_timestamp")
|
|
|
654 |
private LocalDateTime doaAuthTimestamp;
|
|
|
655 |
@Convert(converter = LocalDateTimeAttributeConverter.class)
|
|
|
656 |
@Column(name = "doa_pickup_timestamp")
|
|
|
657 |
private LocalDateTime doaPickupTimestamp;
|
|
|
658 |
@Convert(converter = LocalDateTimeAttributeConverter.class)
|
|
|
659 |
@Column(name = "received_return_timestamp")
|
|
|
660 |
private LocalDateTime receiverReturnTimestamp;
|
|
|
661 |
@Convert(converter = LocalDateTimeAttributeConverter.class)
|
|
|
662 |
@Column(name = "reship_timestamp")
|
|
|
663 |
private LocalDateTime reShipTimestamp;
|
|
|
664 |
@Convert(converter = LocalDateTimeAttributeConverter.class)
|
|
|
665 |
@Column(name = "refund_timestamp")
|
|
|
666 |
private LocalDateTime refundTimestamp;
|
|
|
667 |
@Column(name = "purchase_order_id")
|
|
|
668 |
private Integer purchaseOrderId;
|
|
|
669 |
@Column(name = "cod", columnDefinition = "tinyInteger(1) default 0")
|
|
|
670 |
private Boolean cod;
|
|
|
671 |
@Convert(converter = LocalDateTimeAttributeConverter.class)
|
|
|
672 |
@Column(name = "verification_timestamp")
|
|
|
673 |
private LocalDateTime verificationTimestamp;
|
|
|
674 |
@Column(name = "refunded_by", length = 30)
|
|
|
675 |
private String refundBy;
|
|
|
676 |
@Column(name = "refund_reason", length = 256)
|
|
|
677 |
private String refundReason;
|
|
|
678 |
@Convert(converter = LocalDateTimeAttributeConverter.class)
|
|
|
679 |
@Column(name = "cod_reconciliation_timestamp")
|
|
|
680 |
private LocalDateTime codReconciliationTimestamp;
|
|
|
681 |
private Integer previousStatus;
|
|
|
682 |
@Column(name = "vendorId")
|
|
|
683 |
private Integer vendorId;
|
|
|
684 |
@Column(name = "delayReasonText", length = 250)
|
|
|
685 |
private String delayReasonText;
|
|
|
686 |
@Column(name = "doa_logistics_provider_id")
|
|
|
687 |
private Integer doaLogisticsProviderId;
|
| 27723 |
tejbeer |
688 |
|
| 31860 |
tejbeer |
689 |
/*
|
|
|
690 |
* @Column(name = "delay_reason") private DelayReason delayReason;
|
|
|
691 |
*/
|
|
|
692 |
@Column(name = "vendor_paid", columnDefinition = "tinyInteger(1) default 0")
|
|
|
693 |
private Boolean vendorPaid;
|
|
|
694 |
@Convert(converter = LocalDateTimeAttributeConverter.class)
|
|
|
695 |
@Column(name = "local_connected_timestamp")
|
|
|
696 |
private LocalDateTime localConnectedTimestamp;
|
|
|
697 |
@Convert(converter = LocalDateTimeAttributeConverter.class)
|
|
|
698 |
@Column(name = "reached_destination_timestamp")
|
|
|
699 |
private LocalDateTime reachedDestinationTimestamp;
|
|
|
700 |
@Convert(converter = LocalDateTimeAttributeConverter.class)
|
|
|
701 |
@Column(name = "first_dlvyatmp_timestamp")
|
|
|
702 |
private LocalDateTime firstDlvyatmpTimestamp;
|
|
|
703 |
@Column(name = "originalOrderId")
|
|
|
704 |
private Integer originalOrderId;
|
|
|
705 |
@Column(name = "fulfilmentWarehouseId")
|
|
|
706 |
private Integer fulfilmentWarehouseId;
|
|
|
707 |
@Column(name = "orderType")
|
|
|
708 |
private Integer orderType;
|
|
|
709 |
@Column(name = "pickupStoreId")
|
|
|
710 |
private Integer pickupStoreId;
|
|
|
711 |
@Column(name = "otg", columnDefinition = "tinyInteger(1) default 0")
|
|
|
712 |
private Boolean otg;
|
|
|
713 |
@Convert(converter = LocalDateTimeAttributeConverter.class)
|
|
|
714 |
@Column(name = "courier_delivery_time")
|
|
|
715 |
private LocalDateTime courierDeliveryTimestamp;
|
|
|
716 |
@Column(name = "insurer")
|
|
|
717 |
private Integer insurer;
|
|
|
718 |
@Column(name = "insuranceAmount")
|
|
|
719 |
private Float insuranceAmount;
|
|
|
720 |
@Column(name = "freebieItemId")
|
|
|
721 |
private Integer freebieItemId;
|
|
|
722 |
@Column(name = "source")
|
|
|
723 |
private Integer source;
|
|
|
724 |
@Column(name = "advanceAmount")
|
|
|
725 |
private Float advanceAmount;
|
|
|
726 |
@Column(name = "storeId")
|
|
|
727 |
private Integer storeId;
|
|
|
728 |
@Column(name = "productCondition")
|
|
|
729 |
private Integer productCondition;
|
|
|
730 |
@Column(name = "dataProtectionInsurer")
|
|
|
731 |
private Integer dataProtectionInsurer;
|
|
|
732 |
@Column(name = "dataProtectionAmount")
|
|
|
733 |
private Integer dataProtectionAmount;
|
|
|
734 |
@Column(name = "taxType")
|
|
|
735 |
@Enumerated(EnumType.ORDINAL)
|
|
|
736 |
private TaxType taxType;
|
|
|
737 |
@Column(name = "logisticsTransactionId", length = 100)
|
|
|
738 |
private String logisticsTransactionId;
|
|
|
739 |
@Column(name = "shippingCost")
|
|
|
740 |
private Float shippingCost;
|
|
|
741 |
@Column(name = "codCharges")
|
|
|
742 |
private Float codCharges;
|
|
|
743 |
@Column(name = "wallet_amount")
|
|
|
744 |
private Float walletAmount;
|
|
|
745 |
@Column(name = "net_payable_amount")
|
|
|
746 |
private Float netPayableAmount;
|
|
|
747 |
@Column(name = "shippingRefund")
|
|
|
748 |
private Float shippingRefund;
|
|
|
749 |
@Column(name = "irn_generated")
|
|
|
750 |
private Boolean irnGenerated;
|
|
|
751 |
@Column(name = "shipment_hold")
|
|
|
752 |
private Boolean shipmentHold;
|
|
|
753 |
@ManyToOne(cascade = CascadeType.ALL, fetch = FetchType.EAGER)
|
|
|
754 |
@JoinColumn(name = "id", insertable = false, updatable = false, nullable = false, referencedColumnName = "order_id")
|
|
|
755 |
private LineItem lineItem;
|
| 27723 |
tejbeer |
756 |
|
| 31860 |
tejbeer |
757 |
public Order() {
|
|
|
758 |
}
|
| 31539 |
amit.gupta |
759 |
|
| 31860 |
tejbeer |
760 |
public LocalDateTime getPartnerGrnTimestamp() {
|
|
|
761 |
return partnerGrnTimestamp;
|
|
|
762 |
}
|
| 31539 |
amit.gupta |
763 |
|
| 31860 |
tejbeer |
764 |
public void setPartnerGrnTimestamp(LocalDateTime partnerGrnTimestamp) {
|
|
|
765 |
this.partnerGrnTimestamp = partnerGrnTimestamp;
|
|
|
766 |
}
|
| 31539 |
amit.gupta |
767 |
|
| 31860 |
tejbeer |
768 |
public List<String> getReturnedImeis() {
|
|
|
769 |
return returnedImeis;
|
|
|
770 |
}
|
| 31539 |
amit.gupta |
771 |
|
| 31860 |
tejbeer |
772 |
public void setReturnedImeis(List<String> returnedImeis) {
|
|
|
773 |
this.returnedImeis = returnedImeis;
|
|
|
774 |
}
|
| 31539 |
amit.gupta |
775 |
|
| 31860 |
tejbeer |
776 |
public Integer getId() {
|
|
|
777 |
return id;
|
|
|
778 |
}
|
| 27723 |
tejbeer |
779 |
|
| 31860 |
tejbeer |
780 |
public void setId(Integer id) {
|
|
|
781 |
this.id = id;
|
|
|
782 |
}
|
| 27723 |
tejbeer |
783 |
|
| 31860 |
tejbeer |
784 |
public Integer getWarehouseId() {
|
|
|
785 |
return warehouseId;
|
|
|
786 |
}
|
| 27723 |
tejbeer |
787 |
|
| 31860 |
tejbeer |
788 |
public void setWarehouseId(Integer warehouseId) {
|
|
|
789 |
this.warehouseId = warehouseId;
|
|
|
790 |
}
|
| 27723 |
tejbeer |
791 |
|
| 31860 |
tejbeer |
792 |
public Integer getSellerId() {
|
|
|
793 |
return sellerId;
|
|
|
794 |
}
|
| 27723 |
tejbeer |
795 |
|
| 31860 |
tejbeer |
796 |
public void setSellerId(Integer sellerId) {
|
|
|
797 |
this.sellerId = sellerId;
|
|
|
798 |
}
|
| 27723 |
tejbeer |
799 |
|
| 31860 |
tejbeer |
800 |
public Integer getWarehouseAddressId() {
|
|
|
801 |
return warehouseAddressId;
|
|
|
802 |
}
|
| 27723 |
tejbeer |
803 |
|
| 31860 |
tejbeer |
804 |
public void setWarehouseAddressId(Integer warehouseAddressId) {
|
|
|
805 |
this.warehouseAddressId = warehouseAddressId;
|
|
|
806 |
}
|
| 27723 |
tejbeer |
807 |
|
| 31860 |
tejbeer |
808 |
public Integer getLogisticsProviderId() {
|
|
|
809 |
return logisticsProviderId;
|
|
|
810 |
}
|
| 27723 |
tejbeer |
811 |
|
| 31860 |
tejbeer |
812 |
public void setLogisticsProviderId(Integer logisticsProviderId) {
|
|
|
813 |
this.logisticsProviderId = logisticsProviderId;
|
|
|
814 |
}
|
| 27723 |
tejbeer |
815 |
|
| 31860 |
tejbeer |
816 |
public String getAirwayBillNumber() {
|
|
|
817 |
return airwayBillNumber;
|
|
|
818 |
}
|
| 27723 |
tejbeer |
819 |
|
| 31860 |
tejbeer |
820 |
public void setAirwayBillNumber(String airwayBillNumber) {
|
|
|
821 |
this.airwayBillNumber = airwayBillNumber;
|
|
|
822 |
}
|
| 27723 |
tejbeer |
823 |
|
| 31860 |
tejbeer |
824 |
public String getTrackingId() {
|
|
|
825 |
return trackingId;
|
|
|
826 |
}
|
| 27723 |
tejbeer |
827 |
|
| 31860 |
tejbeer |
828 |
public void setTrackingId(String trackingId) {
|
|
|
829 |
this.trackingId = trackingId;
|
|
|
830 |
}
|
| 27723 |
tejbeer |
831 |
|
| 31860 |
tejbeer |
832 |
public LocalDateTime getExpectedDeliveryTime() {
|
|
|
833 |
return expectedDeliveryTime;
|
|
|
834 |
}
|
| 27723 |
tejbeer |
835 |
|
| 31860 |
tejbeer |
836 |
public void setExpectedDeliveryTime(LocalDateTime expectedDeliveryTime) {
|
|
|
837 |
this.expectedDeliveryTime = expectedDeliveryTime;
|
|
|
838 |
}
|
| 27723 |
tejbeer |
839 |
|
| 31860 |
tejbeer |
840 |
public LocalDateTime getPromisedDeliveryTime() {
|
|
|
841 |
return promisedDeliveryTime;
|
|
|
842 |
}
|
| 27723 |
tejbeer |
843 |
|
| 31860 |
tejbeer |
844 |
public void setPromisedDeliveryTime(LocalDateTime promisedDeliveryTime) {
|
|
|
845 |
this.promisedDeliveryTime = promisedDeliveryTime;
|
|
|
846 |
}
|
| 27723 |
tejbeer |
847 |
|
| 31860 |
tejbeer |
848 |
public LocalDateTime getExpectedShippingTime() {
|
|
|
849 |
return expectedShippingTime;
|
|
|
850 |
}
|
| 27723 |
tejbeer |
851 |
|
| 31860 |
tejbeer |
852 |
public void setExpectedShippingTime(LocalDateTime expectedShippingTime) {
|
|
|
853 |
this.expectedShippingTime = expectedShippingTime;
|
|
|
854 |
}
|
| 27723 |
tejbeer |
855 |
|
| 31860 |
tejbeer |
856 |
public LocalDateTime getPromisedShippingTime() {
|
|
|
857 |
return promisedShippingTime;
|
|
|
858 |
}
|
| 27723 |
tejbeer |
859 |
|
| 31860 |
tejbeer |
860 |
public void setPromisedShippingTime(LocalDateTime promisedShippingTime) {
|
|
|
861 |
this.promisedShippingTime = promisedShippingTime;
|
|
|
862 |
}
|
| 27723 |
tejbeer |
863 |
|
| 31860 |
tejbeer |
864 |
public Integer getRetailerId() {
|
|
|
865 |
return retailerId;
|
|
|
866 |
}
|
| 27723 |
tejbeer |
867 |
|
| 31860 |
tejbeer |
868 |
public void setRetailerId(Integer retailerId) {
|
|
|
869 |
this.retailerId = retailerId;
|
|
|
870 |
}
|
| 27723 |
tejbeer |
871 |
|
| 31860 |
tejbeer |
872 |
public String getRetailerName() {
|
|
|
873 |
return retailerName;
|
|
|
874 |
}
|
| 27723 |
tejbeer |
875 |
|
| 31860 |
tejbeer |
876 |
public void setRetailerName(String retailerName) {
|
|
|
877 |
this.retailerName = retailerName;
|
|
|
878 |
}
|
| 27723 |
tejbeer |
879 |
|
| 31860 |
tejbeer |
880 |
public String getRetailerMobileNumber() {
|
|
|
881 |
return retailerMobileNumber;
|
|
|
882 |
}
|
| 27723 |
tejbeer |
883 |
|
| 31860 |
tejbeer |
884 |
public void setRetailerMobileNumber(String retailerMobileNumber) {
|
|
|
885 |
this.retailerMobileNumber = retailerMobileNumber;
|
|
|
886 |
}
|
| 27723 |
tejbeer |
887 |
|
| 31860 |
tejbeer |
888 |
public String getRetailerPinCode() {
|
|
|
889 |
return retailerPinCode;
|
|
|
890 |
}
|
| 27723 |
tejbeer |
891 |
|
| 31860 |
tejbeer |
892 |
public void setRetailerPinCode(String retailerPinCode) {
|
|
|
893 |
this.retailerPinCode = retailerPinCode;
|
|
|
894 |
}
|
| 27723 |
tejbeer |
895 |
|
| 31860 |
tejbeer |
896 |
public String getRetailerAddress1() {
|
|
|
897 |
return retailerAddress1;
|
|
|
898 |
}
|
| 27723 |
tejbeer |
899 |
|
| 31860 |
tejbeer |
900 |
public void setRetailerAddress1(String retailerAddress1) {
|
|
|
901 |
this.retailerAddress1 = retailerAddress1;
|
|
|
902 |
}
|
| 27723 |
tejbeer |
903 |
|
| 31860 |
tejbeer |
904 |
public String getRetailerAddress2() {
|
|
|
905 |
return retailerAddress2;
|
|
|
906 |
}
|
| 27723 |
tejbeer |
907 |
|
| 31860 |
tejbeer |
908 |
public void setRetailerAddress2(String retailerAddress2) {
|
|
|
909 |
this.retailerAddress2 = retailerAddress2;
|
|
|
910 |
}
|
| 27723 |
tejbeer |
911 |
|
| 31860 |
tejbeer |
912 |
public String getRetailerCity() {
|
|
|
913 |
return retailerCity;
|
|
|
914 |
}
|
| 27723 |
tejbeer |
915 |
|
| 31860 |
tejbeer |
916 |
public void setRetailerCity(String retailerCity) {
|
|
|
917 |
this.retailerCity = retailerCity;
|
|
|
918 |
}
|
| 27723 |
tejbeer |
919 |
|
| 31860 |
tejbeer |
920 |
public String getRetailerState() {
|
|
|
921 |
return retailerState;
|
|
|
922 |
}
|
| 27723 |
tejbeer |
923 |
|
| 31860 |
tejbeer |
924 |
public void setRetailerState(String retailerState) {
|
|
|
925 |
this.retailerState = retailerState;
|
|
|
926 |
}
|
| 27723 |
tejbeer |
927 |
|
| 31860 |
tejbeer |
928 |
public String getRetailerEmailId() {
|
|
|
929 |
return retailerEmailId;
|
|
|
930 |
}
|
| 27723 |
tejbeer |
931 |
|
| 31860 |
tejbeer |
932 |
public void setRetailerEmailId(String retailerEmailId) {
|
|
|
933 |
this.retailerEmailId = retailerEmailId;
|
|
|
934 |
}
|
| 27723 |
tejbeer |
935 |
|
| 31860 |
tejbeer |
936 |
public OrderStatus getStatus() {
|
|
|
937 |
return status;
|
|
|
938 |
}
|
| 27723 |
tejbeer |
939 |
|
| 31860 |
tejbeer |
940 |
public void setStatus(OrderStatus status) {
|
|
|
941 |
this.status = status;
|
|
|
942 |
}
|
| 27723 |
tejbeer |
943 |
|
| 31860 |
tejbeer |
944 |
public String getStatusDescription() {
|
|
|
945 |
return statusDescription;
|
|
|
946 |
}
|
| 27723 |
tejbeer |
947 |
|
| 31860 |
tejbeer |
948 |
public void setStatusDescription(String statusDescription) {
|
|
|
949 |
this.statusDescription = statusDescription;
|
|
|
950 |
}
|
| 27723 |
tejbeer |
951 |
|
| 31860 |
tejbeer |
952 |
public Float getTotalAmount() {
|
|
|
953 |
return totalAmount;
|
|
|
954 |
}
|
| 27723 |
tejbeer |
955 |
|
| 31860 |
tejbeer |
956 |
public void setTotalAmount(Float totalAmount) {
|
|
|
957 |
this.totalAmount = totalAmount;
|
|
|
958 |
}
|
| 27723 |
tejbeer |
959 |
|
| 31860 |
tejbeer |
960 |
public Float getGvAmount() {
|
|
|
961 |
return gvAmount;
|
|
|
962 |
}
|
| 27723 |
tejbeer |
963 |
|
| 31860 |
tejbeer |
964 |
public void setGvAmount(Float gvAmount) {
|
|
|
965 |
this.gvAmount = gvAmount;
|
|
|
966 |
}
|
| 27723 |
tejbeer |
967 |
|
| 31860 |
tejbeer |
968 |
public Float getTotalWeight() {
|
|
|
969 |
return totalWeight;
|
|
|
970 |
}
|
| 27723 |
tejbeer |
971 |
|
| 31860 |
tejbeer |
972 |
public void setTotalWeight(Float totalWeight) {
|
|
|
973 |
this.totalWeight = totalWeight;
|
|
|
974 |
}
|
| 27723 |
tejbeer |
975 |
|
| 31860 |
tejbeer |
976 |
public String getInvoiceNumber() {
|
|
|
977 |
return invoiceNumber;
|
|
|
978 |
}
|
| 27723 |
tejbeer |
979 |
|
| 31860 |
tejbeer |
980 |
public void setInvoiceNumber(String invoiceNumber) {
|
|
|
981 |
this.invoiceNumber = invoiceNumber;
|
|
|
982 |
}
|
| 27723 |
tejbeer |
983 |
|
| 31860 |
tejbeer |
984 |
public String getBilledBy() {
|
|
|
985 |
return billedBy;
|
|
|
986 |
}
|
| 27723 |
tejbeer |
987 |
|
| 31860 |
tejbeer |
988 |
public void setBilledBy(String billedBy) {
|
|
|
989 |
this.billedBy = billedBy;
|
|
|
990 |
}
|
| 27723 |
tejbeer |
991 |
|
| 31860 |
tejbeer |
992 |
public LocalDateTime getCreateTimestamp() {
|
|
|
993 |
return createTimestamp;
|
|
|
994 |
}
|
| 27723 |
tejbeer |
995 |
|
| 31860 |
tejbeer |
996 |
public void setCreateTimestamp(LocalDateTime createTimestamp) {
|
|
|
997 |
this.createTimestamp = createTimestamp;
|
|
|
998 |
}
|
| 27723 |
tejbeer |
999 |
|
| 31860 |
tejbeer |
1000 |
public LocalDateTime getAcceptedTimestamp() {
|
|
|
1001 |
return acceptedTimestamp;
|
|
|
1002 |
}
|
| 27723 |
tejbeer |
1003 |
|
| 31860 |
tejbeer |
1004 |
public void setAcceptedTimestamp(LocalDateTime acceptedTimestamp) {
|
|
|
1005 |
this.acceptedTimestamp = acceptedTimestamp;
|
|
|
1006 |
}
|
| 27723 |
tejbeer |
1007 |
|
| 31860 |
tejbeer |
1008 |
public LocalDateTime getBillingTimestamp() {
|
|
|
1009 |
return billingTimestamp;
|
|
|
1010 |
}
|
| 27723 |
tejbeer |
1011 |
|
| 31860 |
tejbeer |
1012 |
public void setBillingTimestamp(LocalDateTime billingTimestamp) {
|
|
|
1013 |
this.billingTimestamp = billingTimestamp;
|
|
|
1014 |
}
|
| 27723 |
tejbeer |
1015 |
|
| 31860 |
tejbeer |
1016 |
public LocalDateTime getShippingTimestamp() {
|
|
|
1017 |
return shippingTimestamp;
|
|
|
1018 |
}
|
| 27723 |
tejbeer |
1019 |
|
| 31860 |
tejbeer |
1020 |
public void setShippingTimestamp(LocalDateTime shippingTimestamp) {
|
|
|
1021 |
this.shippingTimestamp = shippingTimestamp;
|
|
|
1022 |
}
|
| 27723 |
tejbeer |
1023 |
|
| 31860 |
tejbeer |
1024 |
public LocalDateTime getPickupTimestamp() {
|
|
|
1025 |
return pickupTimestamp;
|
|
|
1026 |
}
|
| 27723 |
tejbeer |
1027 |
|
| 31860 |
tejbeer |
1028 |
public void setPickupTimestamp(LocalDateTime pickupTimestamp) {
|
|
|
1029 |
this.pickupTimestamp = pickupTimestamp;
|
|
|
1030 |
}
|
| 27723 |
tejbeer |
1031 |
|
| 31860 |
tejbeer |
1032 |
public LocalDateTime getDeliveryTimestamp() {
|
|
|
1033 |
return deliveryTimestamp;
|
|
|
1034 |
}
|
| 27723 |
tejbeer |
1035 |
|
| 31860 |
tejbeer |
1036 |
public void setDeliveryTimestamp(LocalDateTime deliveryTimestamp) {
|
|
|
1037 |
this.deliveryTimestamp = deliveryTimestamp;
|
|
|
1038 |
}
|
| 27723 |
tejbeer |
1039 |
|
| 31860 |
tejbeer |
1040 |
public LocalDateTime getOutOfStockTimestamp() {
|
|
|
1041 |
return outOfStockTimestamp;
|
|
|
1042 |
}
|
| 27723 |
tejbeer |
1043 |
|
| 31860 |
tejbeer |
1044 |
public void setOutOfStockTimestamp(LocalDateTime outOfStockTimestamp) {
|
|
|
1045 |
this.outOfStockTimestamp = outOfStockTimestamp;
|
|
|
1046 |
}
|
| 27723 |
tejbeer |
1047 |
|
| 31860 |
tejbeer |
1048 |
public Integer getTransactionId() {
|
|
|
1049 |
return transactionId;
|
|
|
1050 |
}
|
| 27723 |
tejbeer |
1051 |
|
| 31860 |
tejbeer |
1052 |
public void setTransactionId(Integer transactionId) {
|
|
|
1053 |
this.transactionId = transactionId;
|
|
|
1054 |
}
|
| 27723 |
tejbeer |
1055 |
|
| 31860 |
tejbeer |
1056 |
/*
|
|
|
1057 |
* public Integer getJacketNumber() { return jacketNumber; } public void
|
|
|
1058 |
* setJacketNumber(Integer jacketNumber) { this.jacketNumber = jacketNumber; }
|
|
|
1059 |
*/
|
|
|
1060 |
public String getReceiver() {
|
|
|
1061 |
return receiver;
|
|
|
1062 |
}
|
| 27723 |
tejbeer |
1063 |
|
| 31860 |
tejbeer |
1064 |
public void setReceiver(String receiver) {
|
|
|
1065 |
this.receiver = receiver;
|
|
|
1066 |
}
|
| 27723 |
tejbeer |
1067 |
|
| 31860 |
tejbeer |
1068 |
public Integer getBatchNumber() {
|
|
|
1069 |
return batchNumber;
|
|
|
1070 |
}
|
| 27723 |
tejbeer |
1071 |
|
| 31860 |
tejbeer |
1072 |
public void setBatchNumber(Integer batchNumber) {
|
|
|
1073 |
this.batchNumber = batchNumber;
|
|
|
1074 |
}
|
| 27723 |
tejbeer |
1075 |
|
| 31860 |
tejbeer |
1076 |
public Integer getSerialNumber() {
|
|
|
1077 |
return serialNumber;
|
|
|
1078 |
}
|
| 27723 |
tejbeer |
1079 |
|
| 31860 |
tejbeer |
1080 |
public void setSerialNumber(Integer serialNumber) {
|
|
|
1081 |
this.serialNumber = serialNumber;
|
|
|
1082 |
}
|
| 27723 |
tejbeer |
1083 |
|
| 31860 |
tejbeer |
1084 |
public Boolean getShipmentHold() {
|
|
|
1085 |
return shipmentHold;
|
|
|
1086 |
}
|
| 31020 |
tejbeer |
1087 |
|
| 31860 |
tejbeer |
1088 |
public void setShipmentHold(Boolean shipmentHold) {
|
|
|
1089 |
this.shipmentHold = shipmentHold;
|
|
|
1090 |
}
|
| 31020 |
tejbeer |
1091 |
|
| 31860 |
tejbeer |
1092 |
public Boolean isDoaFlag() {
|
|
|
1093 |
return doaFlag;
|
|
|
1094 |
}
|
| 27723 |
tejbeer |
1095 |
|
| 31860 |
tejbeer |
1096 |
public void setDoaFlag(Boolean doaFlag) {
|
|
|
1097 |
this.doaFlag = doaFlag;
|
|
|
1098 |
}
|
| 27723 |
tejbeer |
1099 |
|
| 31860 |
tejbeer |
1100 |
public Integer getPickupRequestNumber() {
|
|
|
1101 |
return pickupRequestNumber;
|
|
|
1102 |
}
|
| 27723 |
tejbeer |
1103 |
|
| 31860 |
tejbeer |
1104 |
public void setPickupRequestNumber(Integer pickupRequestNumber) {
|
|
|
1105 |
this.pickupRequestNumber = pickupRequestNumber;
|
|
|
1106 |
}
|
| 27723 |
tejbeer |
1107 |
|
| 31860 |
tejbeer |
1108 |
public Integer getNewOrderId() {
|
|
|
1109 |
return newOrderId;
|
|
|
1110 |
}
|
| 27723 |
tejbeer |
1111 |
|
| 31860 |
tejbeer |
1112 |
public void setNewOrderId(Integer newOrderId) {
|
|
|
1113 |
this.newOrderId = newOrderId;
|
|
|
1114 |
}
|
| 27723 |
tejbeer |
1115 |
|
| 31860 |
tejbeer |
1116 |
public LocalDateTime getDoaAuthTimestamp() {
|
|
|
1117 |
return doaAuthTimestamp;
|
|
|
1118 |
}
|
| 27723 |
tejbeer |
1119 |
|
| 31860 |
tejbeer |
1120 |
public void setDoaAuthTimestamp(LocalDateTime doaAuthTimestamp) {
|
|
|
1121 |
this.doaAuthTimestamp = doaAuthTimestamp;
|
|
|
1122 |
}
|
| 27723 |
tejbeer |
1123 |
|
| 31860 |
tejbeer |
1124 |
public LocalDateTime getDoaPickupTimestamp() {
|
|
|
1125 |
return doaPickupTimestamp;
|
|
|
1126 |
}
|
| 27723 |
tejbeer |
1127 |
|
| 31860 |
tejbeer |
1128 |
public void setDoaPickupTimestamp(LocalDateTime doaPickupTimestamp) {
|
|
|
1129 |
this.doaPickupTimestamp = doaPickupTimestamp;
|
|
|
1130 |
}
|
| 27723 |
tejbeer |
1131 |
|
| 31860 |
tejbeer |
1132 |
public LocalDateTime getReceiverReturnTimestamp() {
|
|
|
1133 |
return receiverReturnTimestamp;
|
|
|
1134 |
}
|
| 27723 |
tejbeer |
1135 |
|
| 31860 |
tejbeer |
1136 |
public void setReceiverReturnTimestamp(LocalDateTime receiverReturnTimestamp) {
|
|
|
1137 |
this.receiverReturnTimestamp = receiverReturnTimestamp;
|
|
|
1138 |
}
|
| 27723 |
tejbeer |
1139 |
|
| 31860 |
tejbeer |
1140 |
public LocalDateTime getReShipTimestamp() {
|
|
|
1141 |
return reShipTimestamp;
|
|
|
1142 |
}
|
| 27723 |
tejbeer |
1143 |
|
| 31860 |
tejbeer |
1144 |
public void setReShipTimestamp(LocalDateTime reShipTimestamp) {
|
|
|
1145 |
this.reShipTimestamp = reShipTimestamp;
|
|
|
1146 |
}
|
| 27723 |
tejbeer |
1147 |
|
| 31860 |
tejbeer |
1148 |
public LocalDateTime getRefundTimestamp() {
|
|
|
1149 |
return refundTimestamp;
|
|
|
1150 |
}
|
| 27723 |
tejbeer |
1151 |
|
| 31860 |
tejbeer |
1152 |
public void setRefundTimestamp(LocalDateTime refundTimestamp) {
|
|
|
1153 |
this.refundTimestamp = refundTimestamp;
|
|
|
1154 |
}
|
| 27723 |
tejbeer |
1155 |
|
| 31860 |
tejbeer |
1156 |
public Integer getPurchaseOrderId() {
|
|
|
1157 |
return purchaseOrderId;
|
|
|
1158 |
}
|
| 27723 |
tejbeer |
1159 |
|
| 31860 |
tejbeer |
1160 |
public void setPurchaseOrderId(Integer purchaseOrderId) {
|
|
|
1161 |
this.purchaseOrderId = purchaseOrderId;
|
|
|
1162 |
}
|
| 27723 |
tejbeer |
1163 |
|
| 31860 |
tejbeer |
1164 |
public Boolean isCod() {
|
|
|
1165 |
return cod;
|
|
|
1166 |
}
|
| 27723 |
tejbeer |
1167 |
|
| 31860 |
tejbeer |
1168 |
public void setCod(Boolean cod) {
|
|
|
1169 |
this.cod = cod;
|
|
|
1170 |
}
|
| 27723 |
tejbeer |
1171 |
|
| 31860 |
tejbeer |
1172 |
public LocalDateTime getVerificationTimestamp() {
|
|
|
1173 |
return verificationTimestamp;
|
|
|
1174 |
}
|
| 27723 |
tejbeer |
1175 |
|
| 31860 |
tejbeer |
1176 |
public void setVerificationTimestamp(LocalDateTime verificationTimestamp) {
|
|
|
1177 |
this.verificationTimestamp = verificationTimestamp;
|
|
|
1178 |
}
|
| 27723 |
tejbeer |
1179 |
|
| 31860 |
tejbeer |
1180 |
public String getRefundBy() {
|
|
|
1181 |
return refundBy;
|
|
|
1182 |
}
|
| 27723 |
tejbeer |
1183 |
|
| 31860 |
tejbeer |
1184 |
public void setRefundBy(String refundBy) {
|
|
|
1185 |
this.refundBy = refundBy;
|
|
|
1186 |
}
|
| 27723 |
tejbeer |
1187 |
|
| 31860 |
tejbeer |
1188 |
public String getRefundReason() {
|
|
|
1189 |
return refundReason;
|
|
|
1190 |
}
|
| 27723 |
tejbeer |
1191 |
|
| 31860 |
tejbeer |
1192 |
public void setRefundReason(String refundReason) {
|
|
|
1193 |
this.refundReason = refundReason;
|
|
|
1194 |
}
|
| 27723 |
tejbeer |
1195 |
|
| 31860 |
tejbeer |
1196 |
/*
|
|
|
1197 |
* public DelayReason getDelayReason() { return delayReason; } public void
|
|
|
1198 |
* setDelayReason(DelayReason delayReason) { this.delayReason = delayReason; }
|
|
|
1199 |
*/
|
|
|
1200 |
public LocalDateTime getCodReconciliationTimestamp() {
|
|
|
1201 |
return codReconciliationTimestamp;
|
|
|
1202 |
}
|
| 27723 |
tejbeer |
1203 |
|
| 31860 |
tejbeer |
1204 |
public void setCodReconciliationTimestamp(LocalDateTime codReconciliationTimestamp) {
|
|
|
1205 |
this.codReconciliationTimestamp = codReconciliationTimestamp;
|
|
|
1206 |
}
|
| 27723 |
tejbeer |
1207 |
|
| 31860 |
tejbeer |
1208 |
public Integer getPreviousStatus() {
|
|
|
1209 |
return previousStatus;
|
|
|
1210 |
}
|
| 27723 |
tejbeer |
1211 |
|
| 31860 |
tejbeer |
1212 |
public void setPreviousStatus(Integer previousStatus) {
|
|
|
1213 |
this.previousStatus = previousStatus;
|
|
|
1214 |
}
|
| 27723 |
tejbeer |
1215 |
|
| 31860 |
tejbeer |
1216 |
public Integer getVendorId() {
|
|
|
1217 |
return vendorId;
|
|
|
1218 |
}
|
| 27723 |
tejbeer |
1219 |
|
| 31860 |
tejbeer |
1220 |
public void setVendorId(Integer vendorId) {
|
|
|
1221 |
this.vendorId = vendorId;
|
|
|
1222 |
}
|
| 27723 |
tejbeer |
1223 |
|
| 31860 |
tejbeer |
1224 |
public String getDelayReasonText() {
|
|
|
1225 |
return delayReasonText;
|
|
|
1226 |
}
|
| 27723 |
tejbeer |
1227 |
|
| 31860 |
tejbeer |
1228 |
public void setDelayReasonText(String delayReasonText) {
|
|
|
1229 |
this.delayReasonText = delayReasonText;
|
|
|
1230 |
}
|
| 27723 |
tejbeer |
1231 |
|
| 31860 |
tejbeer |
1232 |
public Integer getDoaLogisticsProviderId() {
|
|
|
1233 |
return doaLogisticsProviderId;
|
|
|
1234 |
}
|
| 27723 |
tejbeer |
1235 |
|
| 31860 |
tejbeer |
1236 |
public void setDoaLogisticsProviderId(Integer doaLogisticsProviderId) {
|
|
|
1237 |
this.doaLogisticsProviderId = doaLogisticsProviderId;
|
|
|
1238 |
}
|
| 27723 |
tejbeer |
1239 |
|
| 31860 |
tejbeer |
1240 |
public Boolean isVendorPaid() {
|
|
|
1241 |
return vendorPaid;
|
|
|
1242 |
}
|
| 27723 |
tejbeer |
1243 |
|
| 31860 |
tejbeer |
1244 |
public void setVendorPaid(Boolean vendorPaid) {
|
|
|
1245 |
this.vendorPaid = vendorPaid;
|
|
|
1246 |
}
|
| 27723 |
tejbeer |
1247 |
|
| 31860 |
tejbeer |
1248 |
public LocalDateTime getLocalConnectedTimestamp() {
|
|
|
1249 |
return localConnectedTimestamp;
|
|
|
1250 |
}
|
| 27723 |
tejbeer |
1251 |
|
| 31860 |
tejbeer |
1252 |
public void setLocalConnectedTimestamp(LocalDateTime localConnectedTimestamp) {
|
|
|
1253 |
this.localConnectedTimestamp = localConnectedTimestamp;
|
|
|
1254 |
}
|
| 27723 |
tejbeer |
1255 |
|
| 31860 |
tejbeer |
1256 |
public LocalDateTime getReachedDestinationTimestamp() {
|
|
|
1257 |
return reachedDestinationTimestamp;
|
|
|
1258 |
}
|
| 27723 |
tejbeer |
1259 |
|
| 31860 |
tejbeer |
1260 |
public void setReachedDestinationTimestamp(LocalDateTime reachedDestinationTimestamp) {
|
|
|
1261 |
this.reachedDestinationTimestamp = reachedDestinationTimestamp;
|
|
|
1262 |
}
|
| 27723 |
tejbeer |
1263 |
|
| 31860 |
tejbeer |
1264 |
public LocalDateTime getFirstDlvyatmpTimestamp() {
|
|
|
1265 |
return firstDlvyatmpTimestamp;
|
|
|
1266 |
}
|
| 27723 |
tejbeer |
1267 |
|
| 31860 |
tejbeer |
1268 |
public void setFirstDlvyatmpTimestamp(LocalDateTime firstDlvyatmpTimestamp) {
|
|
|
1269 |
this.firstDlvyatmpTimestamp = firstDlvyatmpTimestamp;
|
|
|
1270 |
}
|
| 27723 |
tejbeer |
1271 |
|
| 31860 |
tejbeer |
1272 |
public Integer getOriginalOrderId() {
|
|
|
1273 |
return originalOrderId;
|
|
|
1274 |
}
|
| 27723 |
tejbeer |
1275 |
|
| 31860 |
tejbeer |
1276 |
public void setOriginalOrderId(Integer originalOrderId) {
|
|
|
1277 |
this.originalOrderId = originalOrderId;
|
|
|
1278 |
}
|
| 27723 |
tejbeer |
1279 |
|
| 31860 |
tejbeer |
1280 |
public Integer getFulfilmentWarehouseId() {
|
|
|
1281 |
return fulfilmentWarehouseId;
|
|
|
1282 |
}
|
| 27723 |
tejbeer |
1283 |
|
| 31860 |
tejbeer |
1284 |
public void setFulfilmentWarehouseId(Integer fulfilmentWarehouseId) {
|
|
|
1285 |
this.fulfilmentWarehouseId = fulfilmentWarehouseId;
|
|
|
1286 |
}
|
| 27723 |
tejbeer |
1287 |
|
| 31860 |
tejbeer |
1288 |
public Integer getOrderType() {
|
|
|
1289 |
return orderType;
|
|
|
1290 |
}
|
| 27723 |
tejbeer |
1291 |
|
| 31860 |
tejbeer |
1292 |
public void setOrderType(Integer orderType) {
|
|
|
1293 |
this.orderType = orderType;
|
|
|
1294 |
}
|
| 27723 |
tejbeer |
1295 |
|
| 31860 |
tejbeer |
1296 |
public Integer getPickupStoreId() {
|
|
|
1297 |
return pickupStoreId;
|
|
|
1298 |
}
|
| 27723 |
tejbeer |
1299 |
|
| 31860 |
tejbeer |
1300 |
public void setPickupStoreId(Integer pickupStoreId) {
|
|
|
1301 |
this.pickupStoreId = pickupStoreId;
|
|
|
1302 |
}
|
| 27723 |
tejbeer |
1303 |
|
| 31860 |
tejbeer |
1304 |
public Boolean isOtg() {
|
|
|
1305 |
return otg;
|
|
|
1306 |
}
|
| 27723 |
tejbeer |
1307 |
|
| 31860 |
tejbeer |
1308 |
public void setOtg(Boolean otg) {
|
|
|
1309 |
this.otg = otg;
|
|
|
1310 |
}
|
| 27723 |
tejbeer |
1311 |
|
| 31860 |
tejbeer |
1312 |
public LocalDateTime getCourierDeliveryTimestamp() {
|
|
|
1313 |
return courierDeliveryTimestamp;
|
|
|
1314 |
}
|
| 27723 |
tejbeer |
1315 |
|
| 31860 |
tejbeer |
1316 |
public void setCourierDeliveryTimestamp(LocalDateTime courierDeliveryTimestamp) {
|
|
|
1317 |
this.courierDeliveryTimestamp = courierDeliveryTimestamp;
|
|
|
1318 |
}
|
| 27723 |
tejbeer |
1319 |
|
| 31860 |
tejbeer |
1320 |
public Integer getInsurer() {
|
|
|
1321 |
return insurer;
|
|
|
1322 |
}
|
| 27723 |
tejbeer |
1323 |
|
| 31860 |
tejbeer |
1324 |
public void setInsurer(Integer insurer) {
|
|
|
1325 |
this.insurer = insurer;
|
|
|
1326 |
}
|
| 27723 |
tejbeer |
1327 |
|
| 31860 |
tejbeer |
1328 |
public Float getInsuranceAmount() {
|
|
|
1329 |
return insuranceAmount;
|
|
|
1330 |
}
|
| 27723 |
tejbeer |
1331 |
|
| 31860 |
tejbeer |
1332 |
public void setInsuranceAmount(Float insuranceAmount) {
|
|
|
1333 |
this.insuranceAmount = insuranceAmount;
|
|
|
1334 |
}
|
| 27723 |
tejbeer |
1335 |
|
| 31860 |
tejbeer |
1336 |
public Integer getFreebieItemId() {
|
|
|
1337 |
return freebieItemId;
|
|
|
1338 |
}
|
| 27723 |
tejbeer |
1339 |
|
| 31860 |
tejbeer |
1340 |
public void setFreebieItemId(Integer freebieItemId) {
|
|
|
1341 |
this.freebieItemId = freebieItemId;
|
|
|
1342 |
}
|
| 27723 |
tejbeer |
1343 |
|
| 31860 |
tejbeer |
1344 |
public Integer getSource() {
|
|
|
1345 |
return source;
|
|
|
1346 |
}
|
| 27723 |
tejbeer |
1347 |
|
| 31860 |
tejbeer |
1348 |
public void setSource(Integer source) {
|
|
|
1349 |
this.source = source;
|
|
|
1350 |
}
|
| 27723 |
tejbeer |
1351 |
|
| 31860 |
tejbeer |
1352 |
public Float getAdvanceAmount() {
|
|
|
1353 |
return advanceAmount;
|
|
|
1354 |
}
|
| 27723 |
tejbeer |
1355 |
|
| 31860 |
tejbeer |
1356 |
public void setAdvanceAmount(Float advanceAmount) {
|
|
|
1357 |
this.advanceAmount = advanceAmount;
|
|
|
1358 |
}
|
| 27723 |
tejbeer |
1359 |
|
| 31860 |
tejbeer |
1360 |
public Integer getStoreId() {
|
|
|
1361 |
return storeId;
|
|
|
1362 |
}
|
| 27723 |
tejbeer |
1363 |
|
| 31860 |
tejbeer |
1364 |
public void setStoreId(Integer storeId) {
|
|
|
1365 |
this.storeId = storeId;
|
|
|
1366 |
}
|
| 27723 |
tejbeer |
1367 |
|
| 31860 |
tejbeer |
1368 |
public Integer getProductCondition() {
|
|
|
1369 |
return productCondition;
|
|
|
1370 |
}
|
| 27723 |
tejbeer |
1371 |
|
| 31860 |
tejbeer |
1372 |
public void setProductCondition(Integer productCondition) {
|
|
|
1373 |
this.productCondition = productCondition;
|
|
|
1374 |
}
|
| 27723 |
tejbeer |
1375 |
|
| 31860 |
tejbeer |
1376 |
public Integer getDataProtectionInsurer() {
|
|
|
1377 |
return dataProtectionInsurer;
|
|
|
1378 |
}
|
| 27723 |
tejbeer |
1379 |
|
| 31860 |
tejbeer |
1380 |
public void setDataProtectionInsurer(Integer dataProtectionInsurer) {
|
|
|
1381 |
this.dataProtectionInsurer = dataProtectionInsurer;
|
|
|
1382 |
}
|
| 27723 |
tejbeer |
1383 |
|
| 31860 |
tejbeer |
1384 |
public Integer getDataProtectionAmount() {
|
|
|
1385 |
return dataProtectionAmount;
|
|
|
1386 |
}
|
| 27723 |
tejbeer |
1387 |
|
| 31860 |
tejbeer |
1388 |
public void setDataProtectionAmount(Integer dataProtectionAmount) {
|
|
|
1389 |
this.dataProtectionAmount = dataProtectionAmount;
|
|
|
1390 |
}
|
| 27723 |
tejbeer |
1391 |
|
| 31860 |
tejbeer |
1392 |
public TaxType getTaxType() {
|
|
|
1393 |
return taxType;
|
|
|
1394 |
}
|
| 27723 |
tejbeer |
1395 |
|
| 31860 |
tejbeer |
1396 |
public void setTaxType(TaxType taxType) {
|
|
|
1397 |
this.taxType = taxType;
|
|
|
1398 |
}
|
| 27723 |
tejbeer |
1399 |
|
| 31860 |
tejbeer |
1400 |
public String getLogisticsTransactionId() {
|
|
|
1401 |
return logisticsTransactionId;
|
|
|
1402 |
}
|
| 27723 |
tejbeer |
1403 |
|
| 31860 |
tejbeer |
1404 |
public void setLogisticsTransactionId(String logisticsTransactionId) {
|
|
|
1405 |
this.logisticsTransactionId = logisticsTransactionId;
|
|
|
1406 |
}
|
| 27723 |
tejbeer |
1407 |
|
| 31860 |
tejbeer |
1408 |
public Float getShippingCost() {
|
|
|
1409 |
return shippingCost;
|
|
|
1410 |
}
|
| 27723 |
tejbeer |
1411 |
|
| 31860 |
tejbeer |
1412 |
public void setShippingCost(Float shippingCost) {
|
|
|
1413 |
this.shippingCost = shippingCost;
|
|
|
1414 |
}
|
| 27723 |
tejbeer |
1415 |
|
| 31860 |
tejbeer |
1416 |
public Float getCodCharges() {
|
|
|
1417 |
return codCharges;
|
|
|
1418 |
}
|
| 27723 |
tejbeer |
1419 |
|
| 31860 |
tejbeer |
1420 |
public void setCodCharges(Float codCharges) {
|
|
|
1421 |
this.codCharges = codCharges;
|
|
|
1422 |
}
|
| 27723 |
tejbeer |
1423 |
|
| 31860 |
tejbeer |
1424 |
public Float getWalletAmount() {
|
|
|
1425 |
return walletAmount;
|
|
|
1426 |
}
|
| 27723 |
tejbeer |
1427 |
|
| 31860 |
tejbeer |
1428 |
public void setWalletAmount(Float walletAmount) {
|
|
|
1429 |
this.walletAmount = walletAmount;
|
|
|
1430 |
}
|
| 27723 |
tejbeer |
1431 |
|
| 31860 |
tejbeer |
1432 |
public Float getNetPayableAmount() {
|
|
|
1433 |
return netPayableAmount;
|
|
|
1434 |
}
|
| 27723 |
tejbeer |
1435 |
|
| 31860 |
tejbeer |
1436 |
public void setNetPayableAmount(Float netPayableAmount) {
|
|
|
1437 |
this.netPayableAmount = netPayableAmount;
|
|
|
1438 |
}
|
| 27723 |
tejbeer |
1439 |
|
| 31860 |
tejbeer |
1440 |
public Float getShippingRefund() {
|
|
|
1441 |
return shippingRefund;
|
|
|
1442 |
}
|
| 27723 |
tejbeer |
1443 |
|
| 31860 |
tejbeer |
1444 |
public void setShippingRefund(Float shippingRefund) {
|
|
|
1445 |
this.shippingRefund = shippingRefund;
|
|
|
1446 |
}
|
| 27723 |
tejbeer |
1447 |
|
| 31860 |
tejbeer |
1448 |
public LineItem getLineItem() {
|
|
|
1449 |
return lineItem;
|
|
|
1450 |
}
|
| 27723 |
tejbeer |
1451 |
|
| 31860 |
tejbeer |
1452 |
public void setLineItem(LineItem lineItem) {
|
|
|
1453 |
this.lineItem = lineItem;
|
|
|
1454 |
}
|
| 27723 |
tejbeer |
1455 |
|
| 31860 |
tejbeer |
1456 |
public String getFormattedDate() {
|
|
|
1457 |
DateTimeFormatter formatter = DateTimeFormatter.ofPattern("dd-MM-yyyy HH:mm");
|
|
|
1458 |
return this.createTimestamp.format(formatter);
|
|
|
1459 |
}
|
| 27723 |
tejbeer |
1460 |
|
| 31860 |
tejbeer |
1461 |
@Override
|
|
|
1462 |
public int hashCode() {
|
|
|
1463 |
final int prime = 31;
|
|
|
1464 |
int result = 1;
|
|
|
1465 |
result = prime * result + ((id == null) ? 0 : id.hashCode());
|
|
|
1466 |
return result;
|
|
|
1467 |
}
|
| 27723 |
tejbeer |
1468 |
|
| 31860 |
tejbeer |
1469 |
@Override
|
|
|
1470 |
public boolean equals(Object obj) {
|
|
|
1471 |
if (this == obj)
|
|
|
1472 |
return true;
|
|
|
1473 |
if (obj == null)
|
|
|
1474 |
return false;
|
|
|
1475 |
if (getClass() != obj.getClass())
|
|
|
1476 |
return false;
|
|
|
1477 |
Order other = (Order) obj;
|
|
|
1478 |
if (id == null) {
|
|
|
1479 |
if (other.id != null)
|
|
|
1480 |
return false;
|
|
|
1481 |
} else if (!id.equals(other.id))
|
|
|
1482 |
return false;
|
|
|
1483 |
return true;
|
|
|
1484 |
}
|
| 27723 |
tejbeer |
1485 |
|
| 31860 |
tejbeer |
1486 |
public Boolean isIrnGenerated() {
|
|
|
1487 |
return irnGenerated;
|
|
|
1488 |
}
|
| 30289 |
amit.gupta |
1489 |
|
| 31860 |
tejbeer |
1490 |
public void setIrnGenerated(boolean irnGenerated) {
|
|
|
1491 |
this.irnGenerated = irnGenerated;
|
|
|
1492 |
}
|
| 30289 |
amit.gupta |
1493 |
|
| 31860 |
tejbeer |
1494 |
@Override
|
|
|
1495 |
public String toString() {
|
|
|
1496 |
return "Order [id=" + id + "]";
|
|
|
1497 |
}
|
| 27723 |
tejbeer |
1498 |
|
| 21545 |
ashik.ali |
1499 |
}
|