Subversion Repositories SmartDukaan

Rev

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