Rev 6467 | Rev 6630 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed
package in.shop2020.warehouse.handler;import in.shop2020.warehouse.DetailedPurchaseScan;import in.shop2020.warehouse.InventoryAge;import in.shop2020.warehouse.InvoiceScan;import in.shop2020.warehouse.ScanType;import in.shop2020.warehouse.domain.InventoryItem;import in.shop2020.warehouse.domain.Scan;import in.shop2020.warehouse.persistence.ScanMapper;import java.util.Date;import java.util.HashMap;import java.util.List;import java.util.Map;import org.springframework.beans.factory.annotation.Autowired;import org.springframework.stereotype.Service;@Servicepublic class ScanHandler {@Autowiredprivate ScanMapper scanMapper;/*** @param scan*/public void insert(Scan scan) {scanMapper.insert(scan);}/*** @param inventoryItemId* @param scanType* @return*/public List<Scan> getScans(long inventoryItemId, ScanType scanType) {return scanMapper.get(inventoryItemId, scanType);}/*** @param orderId*/public List<Scan> getScans(long orderId) {return scanMapper.getScansFromOrderId(orderId);}/*** @param startDate* @param endDate* @return*/public List<DetailedPurchaseScan> getPurchaseScans(long startDate,long endDate){return scanMapper.getPurchaseScans(new Date(startDate), new Date(endDate));}/*** @param date* @return*/public List<InvoiceScan> fetchMismatchScansPerInvoiceNumber(long date) {return scanMapper.fetchMismatchScansPerInvoiceNumber(new Date(date));}/*** @return*/public List<InventoryAge> getInventoryAge() {return scanMapper.getInventoryAge();}public List<Scan> getScansForItem(Long itemId, Date fromDate, Date toDate) {return scanMapper.getScansForItem(itemId, fromDate, toDate);}public void genericScan(Scan scan) {scanMapper.genericScan(scan);}public List<in.shop2020.warehouse.InventoryAvailability> getCurrentSerializedInventoryByScans() {return scanMapper.getCurrentSerializedInventoryByScans();}}