|
@@ -3,6 +3,7 @@ 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 org.apache.ibatis.annotations.Update;
|
|
|
import thyyxxk.webserver.entity.dictionary.PureCodeName;
|
|
|
import thyyxxk.webserver.entity.medicalinsurance.inpatient.SpecialDiag;
|
|
|
|
|
@@ -16,9 +17,12 @@ public interface DictionaryDao {
|
|
|
List<PureCodeName> searchPhysician(@Param("method") String method, @Param("content") String content);
|
|
|
|
|
|
@Select("select diagnosis_code as code, diagnosis_name as name from t_si_dl_dss_dns " +
|
|
|
- "where ${method} LIKE #{content} collate Chinese_PRC_CI_AS")
|
|
|
+ "where ${method} LIKE #{content} collate Chinese_PRC_CI_AS order by weight desc")
|
|
|
List<PureCodeName> searchDiagnose(@Param("method") String method, @Param("content") String content);
|
|
|
|
|
|
+ @Update("update t_si_dl_dss_dns set weight=(weight+1) where diagnosis_code=#{code}")
|
|
|
+ void increaseWeight(@Param("code") String code);
|
|
|
+
|
|
|
@Select("select distinct new_code as code,new_name as name from ${tableName} where new_name like #{content} collate Chinese_PRC_CI_AS")
|
|
|
List<PureCodeName> selectSlwSpcDiag(@Param("content") String content, @Param("tableName") String tableName);
|
|
|
|