@@ -0,0 +1,2171 @@
+package org.openlmis.vaccine.repository.Inventory;%0A%0Aimport lombok.NoArgsConstructor;%0Aimport org.openlmis.vaccine.domain.inventory.*;%0Aimport org.openlmis.vaccine.repository.mapper.inventory.VaccineInventoryMapper;%0Aimport org.springframework.beans.factory.annotation.Autowired;%0Aimport org.springframework.stereotype.Component;%0A%0Aimport java.util.List;%0A%0A@Component%0A@NoArgsConstructor%0Apublic class VaccineInventoryRepository %7B%0A%0A    @Autowired%0A    VaccineInventoryMapper mapper;%0A%0A%0A    public StockCard getStockCard(Long facilityId, Long productId) %7B%0A        return mapper.getStockCardByFacilityAndProduct(facilityId, productId);%0A    %7D%0A%0A    public StockCard getStockCardById(Long id) %7B%0A        return mapper.getStockCardById(id);%0A    %7D%0A%0A    public List%3CStockCard%3E getStockCards(Long facilityId) %7B%0A        return mapper.getAllStockCardsByFacility(facilityId);%0A    %7D%0A%0A    public LotOnHand getLotOnHand(Long stockCardId, Long lotId) %7B%0A        return mapper.getLotOnHand(stockCardId, lotId);%0A    %7D%0A%0A    public Integer updateStockCard(StockCard stockCard) %7B%0A        return mapper.updateStockCard(stockCard);%0A    %7D%0A%0A    public Integer updateLotOnHand(LotOnHand lotOnHand) %7B%0A        return mapper.updateLotOnHand(lotOnHand);%0A    %7D%0A%0A    public Integer insertStockCardEntry(StockCardEntry stockCardEntry) %7B%0A        return mapper.insertStockCardEntry(stockCardEntry);%0A    %7D%0A%0A    public Lot getLotByCode(String lotCode) %7B%0A        return mapper.getLotByCode(lotCode);%0A    %7D%0A%0A    public Integer insertLot(Lot lot) %7B%0A        return mapper.insertLot(lot);%0A    %7D%0A%0A    public Integer insertStockCard(StockCard stockCard) %7B%0A        return mapper.insertStockCard(stockCard);%0A    %7D%0A%0A    public Integer insertLotsOnHand(LotOnHand lotOnHand) %7B%0A        return mapper.insertLotsOnHand(lotOnHand);%0A    %7D%0A%0A    public Integer insertVVM(Long lotOnHandId, Integer vvmStatus) %7B%0A        return mapper.insertVVM(lotOnHandId, vvmStatus);%0A%0A    %7D%0A%0A    public Integer updateVVM(Long lotOnHandId, Integer vvmStatus) %7B%0A        return mapper.updateVVM(lotOnHandId, vvmStatus);%0A    %7D%0A%0A    public Integer insertAdjustmentReason(AdjustmentReason reason) %7B%0A        return mapper.insertAdjustmentReasons(reason);%0A    %7D%0A%0A%7D%0A

Add Repository