Subversion Repositories SmartDukaan

Rev

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

Rev 5372 Rev 5496
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.DetailedPurchaseScan;
-
 
4
import in.shop2020.warehouse.InvoiceScan;
4
import in.shop2020.warehouse.ScanType;
5
import in.shop2020.warehouse.ScanType;
5
import in.shop2020.warehouse.domain.Scan;
6
import in.shop2020.warehouse.domain.Scan;
6
import in.shop2020.warehouse.persistence.ScanMapper;
7
import in.shop2020.warehouse.persistence.ScanMapper;
7
 
8
 
8
import java.util.Date;
9
import java.util.Date;
-
 
10
import java.util.HashMap;
9
import java.util.List;
11
import java.util.List;
-
 
12
import java.util.Map;
10
 
13
 
11
import org.springframework.beans.factory.annotation.Autowired;
14
import org.springframework.beans.factory.annotation.Autowired;
12
import org.springframework.stereotype.Service;
15
import org.springframework.stereotype.Service;
13
 
16
 
14
@Service
17
@Service
Line 47... Line 50...
47
    public List<DetailedPurchaseScan> getPurchaseScans(long startDate,
50
    public List<DetailedPurchaseScan> getPurchaseScans(long startDate,
48
            long endDate)
51
            long endDate)
49
    {
52
    {
50
        return scanMapper.getPurchaseScans(new Date(startDate), new Date(endDate));
53
        return scanMapper.getPurchaseScans(new Date(startDate), new Date(endDate));
51
    }
54
    }
-
 
55
 
-
 
56
    /**
-
 
57
     * @param date
-
 
58
     * @return
-
 
59
     */
-
 
60
    public List<InvoiceScan> fetchMismatchScansPerInvoiceNumber(long date) {
-
 
61
        return scanMapper.fetchMismatchScansPerInvoiceNumber(new Date(date));
-
 
62
    }
52
}
63
}