package com.yihu.jw.base.dao.sign;

import com.yihu.jw.entity.care.archive.ArchiveDO;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.repository.PagingAndSortingRepository;

/**
 * Created by yeshijie on 2021/2/24.
 */
public interface ArchiveDao extends PagingAndSortingRepository<ArchiveDO, String>, JpaSpecificationExecutor<ArchiveDO> {

    ArchiveDO findByIdcardAndDoctorCode(String idcard, String doctorCode);

    ArchiveDO findByPatientAndDoctorCode(String patient, String doctorCode);
}
