DictionaryDao.java 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. package thyyxxk.webserver.dao.his.yibao;
  2. import org.apache.ibatis.annotations.Mapper;
  3. import org.apache.ibatis.annotations.Param;
  4. import org.apache.ibatis.annotations.Select;
  5. import org.apache.ibatis.annotations.Update;
  6. import thyyxxk.webserver.entity.dictionary.PureCodeName;
  7. import thyyxxk.webserver.entity.medicalinsurance.inpatient.SpecialDiag;
  8. import java.util.List;
  9. @Mapper
  10. public interface DictionaryDao {
  11. @Select("SELECT RTRIM(code) AS code,rtrim(name) name from a_employee_mi WHERE " +
  12. "isnull(del_flag,0)!=1 and ${method} LIKE #{content} collate Chinese_PRC_CI_AS")
  13. List<PureCodeName> searchPhysician(@Param("method") String method, @Param("content") String content);
  14. @Select("select diagnosis_code as code,diagnosis_name as name from t_si_dl_dss_dns " +
  15. "where ${method} LIKE #{content} collate Chinese_PRC_CI_AS order by weight desc")
  16. List<PureCodeName> searchDiagnose(@Param("method") String method, @Param("content") String content);
  17. @Update("update zd_icd_code_new set weight=(weight+1) where yb_code=#{code}")
  18. void increaseWeight(@Param("code") String code);
  19. @Select("select distinct new_code as code,new_name as name from ${tableName} where new_name like #{content} collate Chinese_PRC_CI_AS")
  20. List<PureCodeName> selectSlwSpcDiag(@Param("content") String content, @Param("tableName") String tableName);
  21. @Select("select * from ${table}")
  22. List<SpecialDiag> selectAllSpecialDiags(@Param("table") String table);
  23. @Select("select code,name from t_zd_injury_icd where ${method} like #{content} collate Chinese_PRC_CI_AS")
  24. List<PureCodeName> selectInjurydiag(@Param("method") String method, @Param("content") String content);
  25. @Select("select rtrim(new_code) as code, rtrim(new_name) as name from si_icd_employees_maternity_hospitalization " +
  26. "where ${method} like #{content} collate Chinese_PRC_CI_AS")
  27. List<PureCodeName> selectMatnDiagForFrontSheet(@Param("method") String method, @Param("content") String content);
  28. @Select("select rtrim(new_code) as code, rtrim(new_name) as name from si_hospitalization_single_disease " +
  29. "where ${method} like #{content} collate Chinese_PRC_CI_AS")
  30. List<PureCodeName> selectSpcDssDiagForFrontSheet(@Param("method") String method, @Param("content") String content);
  31. @Select("select code, name from t_zd_injury_disease where ${method} like #{content} collate Chinese_PRC_CI_AS")
  32. List<PureCodeName> selectInjuryDssDiagForFrontSheet(@Param("method") String method, @Param("content") String content);
  33. @Select("select med_type from t_si_pat_info with(nolock ) where pat_no=#{patNo} and times=#{times} " +
  34. "and mdtrt_id is not null order by ledger_sn desc")
  35. String selectAccurateMedType(@Param("patNo") String patNo, @Param("times") int times);
  36. }