Subversion Repositories SmartDukaan

Rev

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

Rev Author Line No. Line
4500 mandeep.dh 1
package in.shop2020.warehouse.handler;
2
 
3
import in.shop2020.warehouse.ScanType;
4
import in.shop2020.warehouse.domain.Scan;
5
import in.shop2020.warehouse.persistence.ScanMapper;
6
 
7
import java.util.List;
8
 
9
import org.springframework.beans.factory.annotation.Autowired;
10
import org.springframework.stereotype.Service;
11
 
12
@Service
13
public class ScanHandler {
14
    @Autowired
15
    private ScanMapper scanMapper;
16
 
17
    /**
18
     * @param scan
19
     */
20
    public void insert(Scan scan) {
21
        scanMapper.insert(scan);
22
    }
23
 
24
    /**
25
     * @param inventoryItemId
26
     * @param scanType
27
     * @return
28
     */
29
    public List<Scan> getScans(long inventoryItemId, ScanType scanType) {
30
        return scanMapper.get(inventoryItemId, scanType);
31
    }
5361 mandeep.dh 32
 
33
    /**
34
     * @param orderId
35
     */
36
    public List<Scan> getScans(long orderId) {
37
        return scanMapper.getScansFromOrderId(orderId);
38
    }
4500 mandeep.dh 39
}