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