|
@ -0,0 +1,17 @@
|
|
|
package com.yihu.wlyy.repository.prescription;
|
|
|
|
|
|
import com.yihu.wlyy.entity.patient.prescription.PrescriptionReasonDict;
|
|
|
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
|
|
|
import org.springframework.data.repository.PagingAndSortingRepository;
|
|
|
|
|
|
import java.util.List;
|
|
|
|
|
|
/**
|
|
|
* Created by Trick on 2017/8/26.
|
|
|
*/
|
|
|
public interface PrescriptionReasonDictDao extends PagingAndSortingRepository<PrescriptionReasonDict, Long>, JpaSpecificationExecutor<PrescriptionReasonDict> {
|
|
|
|
|
|
List<PrescriptionReasonDict> findByTypeOrderBySortAsc(Integer type);
|
|
|
|
|
|
PrescriptionReasonDict findByTypeAndCode(Integer type, String code);
|
|
|
}
|