ChronicDiseaseDao.java 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. package thyyxxk.webserver.dao.his.chronicDisease;
  2. import org.apache.ibatis.annotations.Mapper;
  3. import org.apache.ibatis.annotations.Param;
  4. import org.apache.ibatis.annotations.Select;
  5. import thyyxxk.webserver.entity.dictionary.CodeName;
  6. import java.util.List;
  7. @Mapper
  8. public interface ChronicDiseaseDao {
  9. @Select("select rtrim(code) as code, rtrim(name) as name from crm_zd_visit_type with(nolock)")
  10. List<CodeName> getCrmClass();
  11. @Select("select rtrim(code) as code, rtrim(name) as name from t_region with(nolock) where level = '1' ")
  12. List<CodeName> getProvince();
  13. @Select("<script> " +
  14. " select rtrim(code) as code, rtrim(name) as name from t_region with(nolock) where level = '2' " +
  15. "<if test=\"parentCode != null and parentCode != '' \">" +
  16. " and parent_code = #{parentCode} " +
  17. "</if>" +
  18. "</script> ")
  19. List<CodeName> getCity(@Param("parentCode") String parentCode);
  20. @Select("<script> " +
  21. " select rtrim(code) as code, rtrim(name) as name from t_region with(nolock) where level = '3' " +
  22. "<if test=\"parentCode != null and parentCode != '' \">" +
  23. " and parent_code = #{parentCode} " +
  24. "</if>" +
  25. "</script> ")
  26. List<CodeName> getArea(@Param("parentCode") String parentCode);
  27. @Select("select rtrim(code) as code, rtrim(name) as name from t_zd_psn_cert_type ")
  28. List<CodeName> getPsnCertType();
  29. @Select("select rtrim(code) as code, rtrim(name) as name from crm_zd_admiss_way ")
  30. List<CodeName> getAdmissWay();
  31. }