Subversion Repositories SmartDukaan

Rev

Rev 10215 | Rev 10689 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

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