package com.ffii.fpsms.modules.stock.entity

import com.ffii.core.support.AbstractRepository
import com.ffii.fpsms.modules.master.entity.Items
import com.ffii.fpsms.modules.stock.entity.projection.InventoryInfo
import org.springframework.stereotype.Repository
import java.io.Serializable

@Repository
interface InventoryRepository: AbstractRepository<Inventory, Long> {
    fun findInventoryInfoByDeletedIsFalse(): List<InventoryInfo>

    fun findInventoryInfoByItemIdInAndDeletedIsFalse(itemIds: List<Serializable>): List<InventoryInfo>

    fun findInventoryInfoByItemInAndDeletedIsFalse(items: List<Items>): List<InventoryInfo>
}