package tf56.payOnlineService.jpa.repository;
import java.util.Collection;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import tf56.payOnlineService.jpa.entity.PaymentApplyDetail;
public interface PaymentApplyDetailRepository extends JpaRepository<PaymentApplyDetail, Long> {
PaymentApplyDetail findByPaymentApplyDetailCode(String paymentApplyDetailCode);
Collection<PaymentApplyDetail> findByPaymentApplyDetailCodeIn(Collection<String> paymentApplyDetailCodes);
@Query("from PaymentApplyDetail where paymentApplyDetailCode in ?1")
Collection<PaymentApplyDetail> findByPaymentApplyDetailCodes(Collection<String> paymentApplyDetailCodes);
Collection<PaymentApplyDetail> findByPaymentApplyDetailCodeInAndPaymentState(Collection<String> collection, Byte b);
@Query("from PaymentApplyDetail where paymentApplyDetailCode in ?1 and paymentState = ?2")
Collection<PaymentApplyDetail> findByPaymentApplyDetailCodesAndPaymentState(Collection<String> collection, Byte b);
}