SearchDao.java 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. package thyyxxk.webserver.dao.his.search;
  2. import com.baomidou.mybatisplus.core.metadata.IPage;
  3. import org.apache.ibatis.annotations.Mapper;
  4. import org.apache.ibatis.annotations.Select;
  5. import thyyxxk.webserver.entity.dictionary.CodeName;
  6. @Mapper
  7. public interface SearchDao {
  8. @Select("select rtrim(code) as code,rtrim(name) as name, " +
  9. "rtrim(yb_code) as ybCode,rtrim(code_rs) as codeRs, " +
  10. "deptName=(select rtrim(d.name) from zd_unit_code d where d.code=dept_code) " +
  11. "from a_employee_mi where isnull(del_flag,0)!=1 and ${method} like #{content}")
  12. IPage<CodeName> searchPhysician(IPage<CodeName> iPage, String method, String content);
  13. @Select("select rtrim(code) as code,rtrim(name) as name " +
  14. "from zd_unit_code where isnull(del_flag,0)!=1 and ${method} like #{content}")
  15. IPage<CodeName> searchDept(IPage<CodeName> iPage, String method, String content);
  16. @Select("select distinct rtrim(yb_code) as code, rtrim(yb_name) as name from zd_icd_code_new where ${method} like #{content} and del_flag=0")
  17. IPage<CodeName> searchSiDiagnose(IPage<CodeName> iPage, String method, String content);
  18. @Select("select rtrim(yb_code) as code, rtrim(yb_name) as name from zd_icd9_cm3 where ${method} like #{content} and del_flag=0")
  19. IPage<CodeName> searchYbSurgeries(IPage<CodeName> iPage, String method, String content);
  20. @Select("select distinct rtrim(code) as code, rtrim(name) as name from zd_icd_code_new where ${method} like #{content} and del_flag=0")
  21. IPage<CodeName> searchIcd10Diagnose(IPage<CodeName> iPage, String method, String content);
  22. @Select("select distinct new_code as code,new_name as name from ${tableName} where new_name like #{content}")
  23. IPage<CodeName> selectSlwSpcDiag(IPage<CodeName> iPage, String content, String tableName);
  24. @Select("select distinct code,name from t_zd_injury_icd where ${method} like #{content}")
  25. IPage<CodeName> searchInjurydiag(IPage<CodeName> iPage, String method, String content);
  26. @Select("SELECT RTRIM(code) as code,rtrim(name) as name," +
  27. "gender_restriction,min_age_restriction,max_age_restriction " +
  28. "from ${table} where isnull(del_flag,0)!=1 and isnull(mz_flag,0)!=1 " +
  29. "and ${method} like #{content}")
  30. IPage<CodeName> searchJcJyItem(IPage<CodeName> iPage, String method, String content, String table);
  31. @Select("select code,name,charge_amount as price from zd_charge_item " +
  32. "where del_flag=0 and class_code in ('B','C','E','G','F','I','J') " +
  33. "and isnull(group_no,'00')!='91' and ${method} like #{content}")
  34. IPage<CodeName> searchZlItems(IPage<CodeName> iPage, String method, String content);
  35. @Select("SELECT RTRIM(code) as code,rtrim(name) as name,op_scale,op_type, " +
  36. "opTypeName=(select rtrim(d.name) from zd_operation_type d where d.code=op_type) " +
  37. "from zd_icd9_cm3 where del_flag!=1 and ${method} like #{content}")
  38. IPage<CodeName> searchIcd9Cm3(IPage<CodeName> iPage, String method, String content);
  39. }