package com.yihu.jw.hospital.healthCare;

import com.yihu.jw.entity.hospital.healthCare.YlzMedicalBillDO;
import com.yihu.jw.entity.hospital.healthCare.YlzMedicalIcdDO;
import com.yihu.jw.entity.hospital.healthCare.YlzMedicalRelationDO;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.PagingAndSortingRepository;

import java.util.List;

/**
 * Created by wangzhinan 20211003
 */
public interface YlzMedicailBillDao extends PagingAndSortingRepository<YlzMedicalBillDO, String>, JpaSpecificationExecutor<YlzMedicalBillDO> {

    @Query("from YlzMedicalBillDO a where a.medicalId = ?1 ")
    List<YlzMedicalBillDO> findByMedicalId(String medicalId);

}
