浏览代码

优化手术分值获取

lighter 3 年之前
父节点
当前提交
ab5e5208f7
共有 1 个文件被更改,包括 3 次插入2 次删除
  1. 3 2
      src/main/java/thyyxxk/webserver/dao/his/casefrontsheet/CaseFrontSheetDao.java

+ 3 - 2
src/main/java/thyyxxk/webserver/dao/his/casefrontsheet/CaseFrontSheetDao.java

@@ -507,7 +507,7 @@ public interface CaseFrontSheetDao extends BaseMapper<CaseFrontsheetMain> {
     @Select("select rtrim(dis_diag_no) no, rtrim(dis_diag) code, " +
             "rtrim(dis_diag_comment) name, rtrim(dis_diag_status) cyzg, " +
             "rtrim(op_id_code) operId, convert(varchar(19), op_diag_date, 21) opDate, " +
-            "diagType='13', bzfx='普通', admiss_cond " +
+            "diagType='13',si_diag_type,bzfx='普通', admiss_cond " +
             "from zy_dis_diag_yb with(nolock) where inpatient_no=#{bah} and admiss_times=#{times}")
     List<YiBaoDisdiag> getYbDiags(@Param("bah") String bah, @Param("times") int times);
 
@@ -623,7 +623,8 @@ public interface CaseFrontSheetDao extends BaseMapper<CaseFrontsheetMain> {
     @Select("select top 1 * from t_si_disefamily_diagnose with(nolock) where dise_code=#{code} ")
     DisefamilyGrade selectDisefamilyGrade(@Param("code") String code);
 
-    @Select("select ssbm from ${table} with(nolock) where zyh=#{bah} and zycs=#{times} and isnull(ssbm,'')!='' ")
+    @Select("select yb_code from zd_icd9_cm3 where code in " +
+            "(select ssbm from ${table} with(nolock) where zyh=#{bah} and zycs=#{times} and isnull(ssbm,'')!='') ")
     List<String> selectPatientSurgeryCodes(@Param("bah") String bah, @Param("times") Integer times, @Param("table") String table);
 
     @Select("select * from t_si_operation_disefamily with(nolock) where disefamily_code=#{code}")