| 4500 |
mandeep.dh |
1 |
/**
|
|
|
2 |
*
|
|
|
3 |
*/
|
|
|
4 |
package in.shop2020.warehouse.persistence;
|
|
|
5 |
|
| 10689 |
manish.sha |
6 |
import in.shop2020.warehouse.domain.AmazonTransferredSkuDetail;
|
| 5372 |
mandeep.dh |
7 |
import in.shop2020.warehouse.DetailedPurchaseScan;
|
| 12800 |
manish.sha |
8 |
import in.shop2020.warehouse.InvAgeConsiderItems;
|
| 5711 |
mandeep.dh |
9 |
import in.shop2020.warehouse.InventoryAge;
|
| 6630 |
amar.kumar |
10 |
import in.shop2020.warehouse.InventoryAvailability;
|
| 6762 |
amar.kumar |
11 |
import in.shop2020.warehouse.InventoryMovement;
|
| 5496 |
mandeep.dh |
12 |
import in.shop2020.warehouse.InvoiceScan;
|
| 4500 |
mandeep.dh |
13 |
import in.shop2020.warehouse.ScanType;
|
| 6467 |
amar.kumar |
14 |
import in.shop2020.warehouse.domain.InventoryItem;
|
| 4500 |
mandeep.dh |
15 |
import in.shop2020.warehouse.domain.Scan;
|
|
|
16 |
|
| 5372 |
mandeep.dh |
17 |
import java.util.Date;
|
| 4500 |
mandeep.dh |
18 |
import java.util.List;
|
|
|
19 |
|
|
|
20 |
import org.apache.ibatis.annotations.Param;
|
|
|
21 |
|
|
|
22 |
/**
|
|
|
23 |
* @author mandeep
|
|
|
24 |
*
|
|
|
25 |
*/
|
|
|
26 |
public interface ScanMapper {
|
|
|
27 |
|
|
|
28 |
/**
|
|
|
29 |
* @param scan
|
|
|
30 |
*/
|
|
|
31 |
void insert(Scan scan);
|
|
|
32 |
|
|
|
33 |
/**
|
|
|
34 |
* @param inventoryItemId
|
|
|
35 |
* @param scanType
|
|
|
36 |
* @return
|
|
|
37 |
*/
|
|
|
38 |
List<Scan> get(@Param("inventoryItemId")long inventoryItemId, @Param("scanType")ScanType scanType);
|
| 5361 |
mandeep.dh |
39 |
|
|
|
40 |
/**
|
|
|
41 |
* @param orderId
|
|
|
42 |
* @return
|
|
|
43 |
*/
|
|
|
44 |
List<Scan> getScansFromOrderId(long orderId);
|
| 5372 |
mandeep.dh |
45 |
|
|
|
46 |
/**
|
|
|
47 |
* @param startDate
|
|
|
48 |
* @param endDate
|
|
|
49 |
* @return
|
|
|
50 |
*/
|
|
|
51 |
List<DetailedPurchaseScan> getPurchaseScans(@Param("startDate")Date startDate, @Param("endDate")Date endDate);
|
| 5496 |
mandeep.dh |
52 |
|
|
|
53 |
/**
|
|
|
54 |
* @param date
|
|
|
55 |
* @return
|
|
|
56 |
*/
|
|
|
57 |
List<InvoiceScan> fetchMismatchScansPerInvoiceNumber(Date date);
|
| 5711 |
mandeep.dh |
58 |
|
|
|
59 |
/**
|
|
|
60 |
* @return
|
|
|
61 |
*/
|
|
|
62 |
List<InventoryAge> getInventoryAge();
|
| 6322 |
amar.kumar |
63 |
|
|
|
64 |
|
|
|
65 |
List<Scan> getScansForItem(@Param("itemId") Long itemId, @Param("fromDate") Date fromDate, @Param("toDate") Date toDate);
|
| 6467 |
amar.kumar |
66 |
|
| 6548 |
amar.kumar |
67 |
void genericScan(Scan scan);
|
|
|
68 |
|
| 7676 |
amar.kumar |
69 |
List<InventoryAvailability> getCurrentSerializedInventoryByScans(Long physicalWarehouseId);
|
| 6630 |
amar.kumar |
70 |
|
| 7676 |
amar.kumar |
71 |
List<InventoryAvailability> getCurrentNonSerializedInventoryByScans(Long physicalWarehouseId);
|
| 6762 |
amar.kumar |
72 |
|
|
|
73 |
List<InventoryAvailability> getHistoricSerializedInventoryByScans(Date date);
|
|
|
74 |
|
|
|
75 |
List<InventoryAvailability> getHistoricNonSerializedInventoryByScans(Date date);
|
|
|
76 |
|
| 6880 |
amar.kumar |
77 |
List<InventoryMovement> getMovementSerializedInventoryByScans(
|
|
|
78 |
@Param("startDate") Date startDate, @Param("endDate") Date endDate);
|
|
|
79 |
|
|
|
80 |
List<InventoryMovement> getMovementNonSerializedInventoryByScans(
|
|
|
81 |
@Param("startDate") Date startDate, @Param("endDate") Date endDate);
|
| 7199 |
amar.kumar |
82 |
|
|
|
83 |
List<Scan> getScansForOrderAndItem(
|
|
|
84 |
@Param("orderId") Long orderId, @Param("itemId") Long itemId);
|
| 7210 |
amar.kumar |
85 |
|
|
|
86 |
List<DetailedPurchaseScan> getPurchaseScansByGrnDate(@Param("startDate")Date startDate, @Param("endDate")Date endDate);
|
| 7216 |
amar.kumar |
87 |
|
|
|
88 |
List<InventoryMovement> getCompleteMovementSerializedInventoryByScans(
|
|
|
89 |
@Param("startDate") Date startDate, @Param("endDate") Date endDate);
|
|
|
90 |
|
|
|
91 |
List<InventoryMovement> getCompleteMovementNonSerializedInventoryByScans(
|
|
|
92 |
@Param("startDate") Date startDate, @Param("endDate") Date endDate);
|
| 7410 |
amar.kumar |
93 |
|
|
|
94 |
List<Long> getTransferrableWarehousesFromWarehouse(Long warehouseId);
|
|
|
95 |
|
|
|
96 |
List<Scan> getScansForTransferLot(long id);
|
| 7957 |
amar.kumar |
97 |
|
|
|
98 |
List<InventoryAvailability> getHistoricBadInventoryByScans(Date date);
|
| 10120 |
manish.sha |
99 |
|
|
|
100 |
Scan getScansForTransferLotAndInventoryItem(@Param("transferLotId")long transferLotId, @Param("inventoryItemId")long inventoryItemId);
|
| 10308 |
amar.kumar |
101 |
|
|
|
102 |
List<InventoryAvailability> getOurHistoricSerializedInventoryByScans(
|
|
|
103 |
Date date);
|
|
|
104 |
|
|
|
105 |
List<InventoryAvailability> getOurHistoricNonSerializedInventoryByScans(
|
|
|
106 |
Date date);
|
| 10689 |
manish.sha |
107 |
|
|
|
108 |
List<AmazonTransferredSkuDetail> getAmazonTransferredSkuDetails(@Param("itemIds") List<Long> itemIds);
|
|
|
109 |
|
|
|
110 |
List<Scan> getScansforPurchase(@Param("purchaseId")Long purchaseId, @Param("scanType")ScanType scanType);
|
| 12800 |
manish.sha |
111 |
|
|
|
112 |
List<InvAgeConsiderItems> getInventoryAgeConsideredItems(@Param("itemId")Long itemId);
|
| 13529 |
manish.sha |
113 |
|
|
|
114 |
List<InventoryMovement> getCompleteMovementForThirdPartyWarehouse(
|
|
|
115 |
@Param("startDate") Date startDate, @Param("endDate") Date endDate);
|
| 4500 |
mandeep.dh |
116 |
}
|