Subversion Repositories SmartDukaan

Rev

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

Rev Author Line No. Line
7410 amar.kumar 1
/**
2
 * 
3
 */
4
package in.shop2020.warehouse.persistence;
5
 
6
import java.util.Date;
7
import java.util.List;
8
import java.util.Map;
9
 
10
import org.apache.ibatis.annotations.MapKey;
11
import org.apache.ibatis.annotations.Param;
12
 
13
import in.shop2020.warehouse.TransferLotStatus;
14
import in.shop2020.warehouse.domain.TransferLot;
15
 
16
/**
17
 * @author amar
18
 *
19
 */
20
public interface TransferLotMapper {
21
 
22
	void createTransferLot(in.shop2020.warehouse.domain.TransferLot transferLot);
23
 
24
	TransferLot getTransferLot(long transferLotId);
25
 
26
	List<TransferLot> getTransferLotsByDate(@Param("fromDate")Date fromDate, @Param("toDate")Date toDate);
27
 
28
	@MapKey("itemId")
29
	Map<Integer, Integer> getItemsInTransferLot(long transferLotId);
30
 
31
	void markTransferLotAsReceived(@Param("id")long id, @Param("remoteTransferRefNumber")String remoteTransferRefNumber);
32
 
33
	List<Long> getAllowedDestinationWarehousesForTransfer(long originWarehouseId);
34
 
35
	void updateTransferLotStatus(@Param("id")long id, @Param("status")TransferLotStatus status);
10120 manish.sha 36
 
37
	void markTransferLotAsReceivedPartial(@Param("id")long id, @Param("remoteTransferRefNumber")String remoteTransferRefNumber);
7410 amar.kumar 38
 
39
}