Subversion Repositories SmartDukaan

Rev

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