|
@ -0,0 +1,19 @@
|
|
|
/*******************************************************************************
|
|
|
* Copyright (c) 2005, 2014 springside.github.io
|
|
|
*
|
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
*******************************************************************************/
|
|
|
package com.yihu.mm.repository;
|
|
|
|
|
|
import com.yihu.mm.entity.PatientExam;
|
|
|
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
|
|
|
import org.springframework.data.jpa.repository.Query;
|
|
|
import org.springframework.data.repository.PagingAndSortingRepository;
|
|
|
|
|
|
public interface PatientExamDao extends PagingAndSortingRepository<PatientExam, Long>,JpaSpecificationExecutor<PatientExam> {
|
|
|
|
|
|
// 查询患者code和试卷编号查询
|
|
|
@Query("select p from PatientExam p where p.code=?1 and p.tpId=?2")
|
|
|
PatientExam findByPatientAndTpId(String code, String tpId);
|
|
|
|
|
|
}
|