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.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
import java.util.Optional
@Repository
interface JoPickOrderRecordRepository : JpaRepository<JoPickOrderRecord, Long> {
    fun findByPickOrderId(pickOrderId: Long): List<JoPickOrderRecord>
    //fun findByTicketNoStartingWith(ticketPrefix: String): List<JoPickOrderRecord>
    fun findByPickOrderIdAndItemId(pickOrderId: Long, itemId: Long): Optional<JoPickOrderRecord>
}