package com.ffii.fpsms.modules.jobOrder.entity

import com.ffii.core.support.AbstractRepository
import com.ffii.fpsms.modules.jobOrder.enums.JoPickOrderStatus
import com.ffii.fpsms.modules.jobOrder.entity.JoPickOrder

import com.ffii.fpsms.modules.master.entity.projections.SearchId
import org.springframework.data.jpa.repository.JpaRepository
import org.springframework.data.jpa.repository.Query
import org.springframework.stereotype.Repository
import java.io.Serializable
import java.time.LocalDateTime

@Repository
interface JoPickOrderRepository : JpaRepository<JoPickOrder, Long> {

    fun findByPickOrderId(pickOrderId: Long): List<JoPickOrder>
    fun findByPickOrderIdAndItemId(pickOrderId: Long, itemId: Long): java.util.Optional<JoPickOrder>
    fun findByJobOrderId(jobOrderId: Long): List<JoPickOrder>?
    fun findByPickOrderIdIn(pickOrderIds: Collection<Long>): List<JoPickOrder>

}