Subversion Repositories SmartDukaan

Rev

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