package thyyxxk.webserver.dao.his.yibao; import org.apache.ibatis.annotations.Mapper; import org.apache.ibatis.annotations.Param; import org.apache.ibatis.annotations.Select; import thyyxxk.webserver.entity.dictionary.PureCodeName; import thyyxxk.webserver.entity.medicalinsurance.inpatient.SpecialDiag; import java.util.List; @Mapper public interface DictionaryDao { @Select("SELECT rtrim(code) code, rtrim(name) name FROM zd_visit_type") List getVisitType(); @Select("SELECT rtrim(code) code,rtrim(name) name FROM zy_zd_responce_type WHERE (isnull(del_flag,0)) = 0") List getResponceType(); @Select("SELECT RTRIM(code) AS code,rtrim(name) name FROM a_employee_mi WHERE isnull(del_flag,0)!=1 and py_code LIKE #{content}") List searchPhysicianByPinyin(String content); @Select("SELECT RTRIM(code) AS code,rtrim(name) name FROM a_employee_mi WHERE code LIKE #{content}") List searchPhysicianByCode(String content); @Select("SELECT RTRIM(code) AS code,rtrim(name) name FROM a_employee_mi WHERE name LIKE #{content}") List searchPhysicianByName(String content); @Select("SELECT rtrim(code) code,rtrim(name) name FROM yb_zd_xnh_cmisno WHERE py_code LIKE #{content}") List searchCmisNoByPinyin(String content); @Select("SELECT rtrim(code) code,rtrim(name) name FROM yb_zd_xnh_cmisno WHERE code LIKE #{content}") List searchCmisNoByCode(String content); @Select("SELECT rtrim(code) code,rtrim(name) name FROM yb_zd_xnh_cmisno WHERE name LIKE #{content}") List searchCmisNoByName(String content); @Select("SELECT rtrim(code) code,rtrim(name) name FROM zd_redeem_type_xnh where LEN(RTRIM(code))>2 and py_code LIKE #{content}") List searchRedeemByPinyin(String content); @Select("SELECT rtrim(code) code,rtrim(name) name FROM zd_redeem_type_xnh where LEN(RTRIM(code))>2 and code LIKE #{content}") List searchRedeemByCode(String content); @Select("SELECT rtrim(code) code,rtrim(name) name FROM zd_redeem_type_xnh where LEN(RTRIM(code))>2 and name LIKE #{content}") List searchRedeemByName(String content); @Select("select diagnosis_code as code, diagnosis_name as name from t_si_dl_dss_dns where py_code LIKE #{content}") List searchDiagnoseByPinyin(String content); @Select("select diagnosis_code as code, diagnosis_name as name from t_si_dl_dss_dns where diagnosis_code LIKE #{content}") List searchDiagnoseByCode(String content); @Select("select diagnosis_code as code, diagnosis_name as name from t_si_dl_dss_dns where diagnosis_name LIKE #{content}") List searchDiagnoseByName(String content); @Select("select code,disease_name as name from t_si_dl_slw_spc_chr where disease_name like #{content}") List selectSlwSpcDiag(String content); @Select("select * from ${table}") List selectAllSpecialDiags(@Param("table") String table); }