package cokr.xit.ens.modules.nvsigntalk.domain.repository;

import cokr.xit.ens.modules.common.domain.SendMast;
import cokr.xit.ens.modules.nvsigntalk.domain.SendDetailNvSigntalk;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;
import java.util.Optional;

public interface SendDetailNvSigntalkRepository extends JpaRepository<SendDetailNvSigntalk, Long>, SendDetailNvSigntalkRepositoryCustom {

	List<SendDetailNvSigntalk> findAllBySendMast(SendMast sendMast);

	List<SendDetailNvSigntalk> findAllBySendMastAndDocIdIsNotNull(SendMast sendMast);

	Optional<SendDetailNvSigntalk> findByClientDocIdAndDocId(String clientDocId, String docId);


}
