BaseComplaintDictDao.java 868 B

123456789101112131415161718
  1. package com.yihu.jw.complaint;
  2. import com.yihu.jw.entity.base.complaint.BaseComplaintDictDO;
  3. import com.yihu.jw.entity.base.doctor.BaseDoctorDO;
  4. import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
  5. import org.springframework.data.jpa.repository.Query;
  6. import org.springframework.data.repository.PagingAndSortingRepository;
  7. import java.util.List;
  8. public interface BaseComplaintDictDao extends PagingAndSortingRepository<BaseComplaintDictDO, String>, JpaSpecificationExecutor<BaseComplaintDictDO> {
  9. @Query("from BaseComplaintDictDO t where t.isDel='1' and t.id=?1")
  10. BaseComplaintDictDO findById(String id);
  11. @Query("from BaseComplaintDictDO t where t.isDel='1' and t.name=?1")
  12. List<BaseComplaintDictDO> findByName(String name);
  13. @Query("from BaseComplaintDictDO t where t.isDel='1'")
  14. List<BaseComplaintDictDO> findByAll();
  15. }