| 4500 |
mandeep.dh |
1 |
package in.shop2020.warehouse.persistence;
|
|
|
2 |
|
| 7613 |
amar.kumar |
3 |
import in.shop2020.warehouse.InTransitInventory;
|
| 5185 |
mandeep.dh |
4 |
import in.shop2020.warehouse.ScanType;
|
| 4500 |
mandeep.dh |
5 |
import in.shop2020.warehouse.domain.InventoryItem;
|
|
|
6 |
|
| 10215 |
amar.kumar |
7 |
import java.util.Date;
|
| 5185 |
mandeep.dh |
8 |
import java.util.List;
|
| 6484 |
amar.kumar |
9 |
import java.util.Map;
|
| 4500 |
mandeep.dh |
10 |
|
| 10864 |
manish.sha |
11 |
import org.apache.ibatis.annotations.MapKey;
|
| 5361 |
mandeep.dh |
12 |
import org.apache.ibatis.annotations.Param;
|
| 5185 |
mandeep.dh |
13 |
|
| 5361 |
mandeep.dh |
14 |
|
| 4500 |
mandeep.dh |
15 |
public interface InventoryItemMapper {
|
|
|
16 |
|
|
|
17 |
/**
|
|
|
18 |
* @param inventoryItem
|
|
|
19 |
*/
|
|
|
20 |
void insertInventoryItem(InventoryItem inventoryItem);
|
|
|
21 |
|
|
|
22 |
/**
|
|
|
23 |
* @param inventoryItemId
|
|
|
24 |
* @return
|
|
|
25 |
*/
|
|
|
26 |
InventoryItem getInventoryItem(long inventoryItemId);
|
|
|
27 |
|
|
|
28 |
/**
|
|
|
29 |
* @param serialNumber
|
|
|
30 |
* @return
|
|
|
31 |
*/
|
|
|
32 |
InventoryItem getInventoryItemFromSerialNumber(String serialNumber);
|
| 5185 |
mandeep.dh |
33 |
|
|
|
34 |
List<InventoryItem> getInventoryItemsFromLastScanType(ScanType scanType);
|
|
|
35 |
|
|
|
36 |
/**
|
|
|
37 |
* @param inventoryItemId
|
|
|
38 |
* @return
|
|
|
39 |
*/
|
|
|
40 |
InventoryItem getInventoryItemsFromId(long inventoryItemId);
|
|
|
41 |
|
|
|
42 |
/**
|
|
|
43 |
* @param inventoryItem
|
|
|
44 |
*/
|
|
|
45 |
void update(InventoryItem inventoryItem);
|
| 5361 |
mandeep.dh |
46 |
|
|
|
47 |
/**
|
|
|
48 |
* @param itemId
|
|
|
49 |
* @param warehouseId
|
|
|
50 |
* @return
|
|
|
51 |
*/
|
| 8565 |
amar.kumar |
52 |
InventoryItem getNonSerializedInventoryItem(@Param("itemNumber")String itemNumber, @Param("itemId")long itemId,
|
|
|
53 |
@Param("warehouseId")long warehouseId, @Param("physicalWarehouseId")long physicalWarehouseId);
|
| 6467 |
amar.kumar |
54 |
|
| 7957 |
amar.kumar |
55 |
Long getCurrentQuantityForNonSerializedItem(@Param("itemId")long itemId, @Param("warehouseId")long warehouseId, @Param("physicalWarehouseId")long physicalWarehouseId);
|
| 6467 |
amar.kumar |
56 |
|
|
|
57 |
void markPurchaseReturnIdForItem(@Param("id")long id, @Param("currentQuantity")long currentQuantity, @Param("purchaseReturnId")long purchaseReturnId);
|
| 10864 |
manish.sha |
58 |
|
|
|
59 |
void markPurchaseReturnIdForBadItem(@Param("id")long id, @Param("currentQuantity")long currentQuantity, @Param("purchaseReturnId")long purchaseReturnId);
|
| 6467 |
amar.kumar |
60 |
|
| 8689 |
amar.kumar |
61 |
List<InventoryItem> getCurrentNonSerializedItemsByItemId(@Param("itemId")long itemId, @Param("warehouseId")long warehouseId,
|
|
|
62 |
@Param("physicalWarehouseId")long physicalWarehouseId);
|
| 6484 |
amar.kumar |
63 |
|
| 10864 |
manish.sha |
64 |
List<InventoryItem> getNonSerializedItemsForBadInventory(@Param("itemId")long itemId, @Param("currentWarehouseId")long currentWarehouseId,
|
|
|
65 |
@Param("physicalWarehouseId")long physicalWarehouseId);
|
|
|
66 |
|
| 6484 |
amar.kumar |
67 |
List<Map<String, Integer>> getCurrentSerializedInventory();
|
|
|
68 |
|
|
|
69 |
List<Map<String, Integer>> getCurrentNonSerializedInventory();
|
| 6548 |
amar.kumar |
70 |
|
|
|
71 |
void markItemAsLost(@Param("id")long id, @Param("currentQuantity")long currentQuantity);
|
| 7410 |
amar.kumar |
72 |
|
|
|
73 |
//void markTransferLotAsRecieved(long id);
|
|
|
74 |
|
|
|
75 |
List<InventoryItem> getInventoryItemsForTransferLot(long id);
|
|
|
76 |
|
|
|
77 |
long getCurrentQuantityForNonSerializedItemInPhysicalWarehouse(@Param("itemId")long itemId,
|
|
|
78 |
@Param("physicalWarehouseId")long physicalWarehouseId);
|
|
|
79 |
|
|
|
80 |
List<InventoryItem> getCurrentNonSerializedItemsByItemIdInPhysicalWarehouse(
|
|
|
81 |
@Param("itemId")long itemId, @Param("physicalWarehouseId")long physicalWarehouseId);
|
|
|
82 |
|
| 7574 |
amar.kumar |
83 |
long getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse(
|
|
|
84 |
@Param("itemId")long itemId, @Param("physicalWarehouseId")long physicalWarehouseId);
|
|
|
85 |
|
| 7613 |
amar.kumar |
86 |
List<in.shop2020.warehouse.domain.InTransitInventory> getInTransitInventory(long originWarehouseId);
|
|
|
87 |
|
| 9129 |
amar.kumar |
88 |
List<InventoryItem> getCurrentInTransitInventoryInPhysicalWarehouse(
|
|
|
89 |
@Param("itemId")long itemId, @Param("originWarehouseId")long originWarehouseId);
|
|
|
90 |
|
| 7410 |
amar.kumar |
91 |
/*InventoryItem getNonSeralizedInventoryItemForPhysicalWarehouse(
|
|
|
92 |
@Param("itemNumber")String itemNumber, @Param("itemId")long itemId, @Param("physicalWarehouseId")long physicalWarehouseId);*/
|
| 10120 |
manish.sha |
93 |
|
|
|
94 |
List<InventoryItem> getTransferLotItemsForMarkReceive(
|
|
|
95 |
@Param("transferLotId")long transferLotId,@Param("type")ScanType scanType);
|
| 10215 |
amar.kumar |
96 |
|
|
|
97 |
List<Long> getNonEmptyGrnsByDate(@Param("startDate") Date startDate, @Param("endDate") Date endDate);
|
|
|
98 |
|
|
|
99 |
List<Long> getAllGrnsByDate(@Param("startDate") Date startDate, @Param("endDate") Date endDate);
|
| 10407 |
amar.kumar |
100 |
|
|
|
101 |
InventoryItem getSellableBadNonSerializedItem(@Param("itemId") long itemId, @Param("itemNumber") String itemNumber,
|
|
|
102 |
@Param("physicalWarehouseId") long physicalWarehouseId);
|
| 10689 |
manish.sha |
103 |
|
|
|
104 |
List<InventoryItem> getInventoryItemScannedInForPO(@Param("itemId") long itemId,@Param("purchaseIds") List<Long> purchaseIds);
|
| 10864 |
manish.sha |
105 |
|
|
|
106 |
Long getCurrentBadQuantityForItem(@Param("itemId") long itemId,@Param("currentWarehouseId") long currentWarehouseId, @Param("physicalWarehouseId") long physicalWarehouseId);
|
|
|
107 |
|
|
|
108 |
@MapKey("itemId")
|
| 11751 |
manish.sha |
109 |
Map<Integer, Integer> getItemsInPurchaseReturn(@Param("purchaseReturnId")long purchaseReturnId, @Param("type")ScanType type);
|
| 4500 |
mandeep.dh |
110 |
}
|