Subversion Repositories SmartDukaan

Rev

Rev 5361 | Rev 5496 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 5361 Rev 5372
Line 1... Line 1...
1
package in.shop2020.warehouse.handler;
1
package in.shop2020.warehouse.handler;
2
 
2
 
-
 
3
import in.shop2020.warehouse.DetailedPurchaseScan;
3
import in.shop2020.warehouse.ScanType;
4
import in.shop2020.warehouse.ScanType;
4
import in.shop2020.warehouse.domain.Scan;
5
import in.shop2020.warehouse.domain.Scan;
5
import in.shop2020.warehouse.persistence.ScanMapper;
6
import in.shop2020.warehouse.persistence.ScanMapper;
6
 
7
 
-
 
8
import java.util.Date;
7
import java.util.List;
9
import java.util.List;
8
 
10
 
9
import org.springframework.beans.factory.annotation.Autowired;
11
import org.springframework.beans.factory.annotation.Autowired;
10
import org.springframework.stereotype.Service;
12
import org.springframework.stereotype.Service;
11
 
13
 
Line 34... Line 36...
34
     * @param orderId
36
     * @param orderId
35
     */
37
     */
36
    public List<Scan> getScans(long orderId) {
38
    public List<Scan> getScans(long orderId) {
37
        return scanMapper.getScansFromOrderId(orderId);
39
        return scanMapper.getScansFromOrderId(orderId);
38
    }
40
    }
-
 
41
 
-
 
42
    /**
-
 
43
     * @param startDate
-
 
44
     * @param endDate
-
 
45
     * @return
-
 
46
     */
-
 
47
    public List<DetailedPurchaseScan> getPurchaseScans(long startDate,
-
 
48
            long endDate)
-
 
49
    {
-
 
50
        return scanMapper.getPurchaseScans(new Date(startDate), new Date(endDate));
-
 
51
    }
39
}
52
}