Explorar o código

宁波模板查询修改

rengb %!s(int64=4) %!d(string=hai) anos
pai
achega
2d6e736d6c

+ 1 - 1
dbanaly/src/main/resources/mapper/lt/ModuleInfoMapper.xml

@@ -4,7 +4,7 @@
 
     <select id="getAnameModidMap" parameterType="long" resultType="string">
         SELECT
-        concat(IFNULL(c.map_type,''),'-',c.rec_type,'=',a.id)
+        concat(IFNULL(c.map_type,''),'=',a.id)
         from qc_module_info a join med_module_mapping b on a.id=b.module_id
         join med_record_analyze c on b.record_id=c.id
         where a.hospital_id=#{hospitalId} and a.is_deleted='N'

+ 1 - 15
trans/src/main/java/com/lantone/qc/trans/beilun/util/BeiLunHtmlAnalysisUtil.java

@@ -2,9 +2,6 @@ package com.lantone.qc.trans.beilun.util;
 
 import com.google.common.collect.Lists;
 import com.lantone.qc.dbanaly.util.ModuleMappingUtil;
-import com.lantone.qc.dbanaly.util.SpecialStorageUtil;
-import com.lantone.qc.pub.model.vo.BehospitalInfoVO;
-import com.lantone.qc.pub.util.SpringContextUtil;
 import com.lantone.qc.pub.util.StringUtil;
 import org.jsoup.nodes.Element;
 import org.jsoup.select.Elements;
@@ -19,8 +16,6 @@ import java.util.Map;
  */
 public class BeiLunHtmlAnalysisUtil {
 
-    private static final List<String> excludeDepts = Lists.newArrayList("产科住院", "妇科住院", "儿科");
-
     /**
      * table样式:key和value在同一个td中,以冒号分开;保留换行
      *
@@ -166,16 +161,7 @@ public class BeiLunHtmlAnalysisUtil {
         if (StringUtil.isBlank(recTitle) || map == null) {
             return;
         }
-        SpecialStorageUtil specialStorageUtil = SpringContextUtil.getBean("specialStorageUtil");
-        BehospitalInfoVO behospitalInfo = specialStorageUtil.getBehospitalInfoThreadLocal().get();
-        String deptName = behospitalInfo.getBehDeptName();
-        if (StringUtil.isBlank(deptName)) {
-            return;
-        }
-        if (!excludeDepts.contains(deptName)) {
-            deptName = "";
-        }
-        map.put("mode_id", ModuleMappingUtil.getHtmlDataTypeModuleId(deptName + "-" + recTitle));
+        map.put("mode_id", ModuleMappingUtil.getHtmlDataTypeModuleId(recTitle));
     }
 
     /**