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