Subversion Repositories SmartDukaan

Rev

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

Rev Author Line No. Line
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;
5496 mandeep.dh 9
import in.shop2020.warehouse.InvoiceScan;
4500 mandeep.dh 10
import in.shop2020.warehouse.ScanType;
6467 amar.kumar 11
import in.shop2020.warehouse.domain.InventoryItem;
4500 mandeep.dh 12
import in.shop2020.warehouse.domain.Scan;
13
 
5372 mandeep.dh 14
import java.util.Date;
4500 mandeep.dh 15
import java.util.List;
16
 
17
import org.apache.ibatis.annotations.Param;
18
 
19
/**
20
 * @author mandeep
21
 *
22
 */
23
public interface ScanMapper {
24
 
25
    /**
26
     * @param scan
27
     */
28
    void insert(Scan scan);
29
 
30
    /**
31
     * @param inventoryItemId
32
     * @param scanType
33
     * @return
34
     */
35
    List<Scan> get(@Param("inventoryItemId")long inventoryItemId, @Param("scanType")ScanType scanType);
5361 mandeep.dh 36
 
37
    /**
38
     * @param orderId
39
     * @return
40
     */
41
    List<Scan> getScansFromOrderId(long orderId);
5372 mandeep.dh 42
 
43
    /**
44
     * @param startDate
45
     * @param endDate
46
     * @return
47
     */
48
    List<DetailedPurchaseScan> getPurchaseScans(@Param("startDate")Date startDate, @Param("endDate")Date endDate);
5496 mandeep.dh 49
 
50
    /**
51
     * @param date
52
     * @return
53
     */
54
    List<InvoiceScan> fetchMismatchScansPerInvoiceNumber(Date date);
5711 mandeep.dh 55
 
56
    /**
57
     * @return
58
     */
59
    List<InventoryAge> getInventoryAge();
6322 amar.kumar 60
 
61
 
62
    List<Scan> getScansForItem(@Param("itemId") Long itemId, @Param("fromDate") Date fromDate, @Param("toDate") Date toDate);
6467 amar.kumar 63
 
6548 amar.kumar 64
	void genericScan(Scan scan);
65
 
6630 amar.kumar 66
	List<InventoryAvailability> getCurrentSerializedInventoryByScans();
67
 
68
	List<InventoryAvailability> getCurrentNonSerializedInventoryByScans();
4500 mandeep.dh 69
}