SearchDao.java 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637
  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.Param;
  5. import org.apache.ibatis.annotations.Select;
  6. import thyyxxk.webserver.entity.dictionary.CodeName;
  7. import java.util.List;
  8. @Mapper
  9. public interface SearchDao {
  10. @Select("select rtrim(code) as code,rtrim(name) as name,rtrim(yb_code) as ybCode, " +
  11. "deptName=(select rtrim(d.name) from zd_unit_code d where d.code=dept_code) " +
  12. "from a_employee_mi where isnull(del_flag,0)!=1 and ${method} like #{content}")
  13. IPage<CodeName> searchPhysician(IPage<CodeName> iPage, String method, String content);
  14. @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")
  15. IPage<CodeName> searchSiDiagnose(IPage<CodeName> iPage, String method, String content);
  16. @Select("select rtrim(yb_code) as code, rtrim(yb_name) as name from zd_icd9_cm3 where ${method} like #{content} and del_flag=0")
  17. IPage<CodeName> searchSurgeries(IPage<CodeName> iPage, String method, String content);
  18. @Select("select distinct rtrim(code) as code, rtrim(name) as name from zd_icd_code_new where ${method} like #{content} and del_flag=0")
  19. IPage<CodeName> searchIcd10Diagnose(IPage<CodeName> iPage, String method, String content);
  20. @Select("select distinct new_code as code,new_name as name from ${tableName} where new_name like #{content}")
  21. IPage<CodeName> selectSlwSpcDiag(IPage<CodeName> iPage, String content, String tableName);
  22. @Select("select distinct code,name from t_zd_injury_icd where ${method} like #{content}")
  23. IPage<CodeName> searchInjurydiag(IPage<CodeName> iPage, String method, String content);
  24. @Select("SELECT RTRIM(code) as code,rtrim(name) name from ${table} where " +
  25. "isnull(del_flag,0)!=1 and ${method} like #{content}")
  26. IPage<CodeName> searchMedicalTechnology(IPage<CodeName> iPage, String method, String content, String table);
  27. }