Subversion Repositories SmartDukaan

Rev

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