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