瀏覽代碼

添加模板编号

xuejiafu 3 年之前
父節點
當前提交
78ee1e58ad

+ 7 - 7
src/main/java/com/diagbot/facade/data/ABasDeptInfoFacade.java

@@ -11,7 +11,7 @@ import com.diagbot.service.impl.BasDeptInfoServiceImpl;
 import com.diagbot.service.impl.his.VLtDeptInfoServiceImpl;
 import com.diagbot.util.BeanUtil;
 import com.diagbot.util.ListUtil;
-import com.diagbot.util.QDNDBConn;
+//import com.diagbot.util.QDNDBConn;
 import com.diagbot.util.TZDBConn;
 import com.diagbot.vo.data.ABasDeptInfoVO;
 import com.google.common.collect.Lists;
@@ -39,16 +39,16 @@ public class ABasDeptInfoFacade extends BasDeptInfoServiceImpl{
     private VLtDeptInfoServiceImpl vLtDeptInfoService = new VLtDeptInfoServiceImpl();
 
     private TZDBConn tzDBConn = new TZDBConn();
-    private QDNDBConn qdndbConn = new QDNDBConn();
+//    private QDNDBConn qdndbConn = new QDNDBConn();
 
     /**
      * 同步前一天科室的信息
      */
-    public void executeDept() {
-        String sql="select * from V_LT_DEPT_INFO where DEPT_TYPE='临床'";
-        List<BasDeptInfo> basDeptInfoList = qdndbConn.getDeptInfo(sql);
-        execute(basDeptInfoList);
-    }
+//    public void executeDept() {
+//        String sql="select * from V_LT_DEPT_INFO where DEPT_TYPE='临床'";
+//        List<BasDeptInfo> basDeptInfoList = qdndbConn.getDeptInfo(sql);
+//        execute(basDeptInfoList);
+//    }
 
     public void executeDept1(){
         QueryWrapper<VLtDeptInfo> queryWrapper = new QueryWrapper<>();

+ 38 - 3
src/main/java/com/diagbot/facade/dataView/ViewMRecordFacade.java

@@ -245,13 +245,48 @@ public class ViewMRecordFacade extends MedicalRecordServiceImpl {
         }else if ("0008".equals(recTypeId)){
             if (recTitle.contains("出院记录")&&!recTitle.contains("24小时")){
                 modeId = Long.valueOf("5");
+            }else if (recTitle.contains("死亡记录")){
+                modeId = Long.valueOf("24");
             }
         }else if ("0002".equals(recTypeId)){
-            if (recTitle.contains("查房")){
-                modeId = Long.valueOf("4");
-            }
             if (recTitle.contains("首次病程记录")){
                 modeId = Long.valueOf("2");
+            }else if (recTitle.contains("查房")||recTitle.contains("病程记录")){
+                modeId = Long.valueOf("4");
+            }else if (recTitle.contains("疑难危重病例讨论记录")){
+                modeId = Long.valueOf("19");
+            }else if (recTitle.contains("抢救记录")){
+                modeId = Long.valueOf("22");
+            }else if (recTitle.contains("死亡病例讨论记录")){
+                modeId = Long.valueOf("3");
+            }else if (recTitle.contains("转入记录")){
+                modeId = Long.valueOf("26");
+            }
+        }else if ("0004".equals(recTypeId)){
+            if (recTitle.contains("病危(重)通知书")){
+                modeId = Long.valueOf("25");
+            }
+        }else if ("0006".equals(recTypeId)){
+            if (recTitle.contains("术后首次病程记录")){
+                modeId = Long.valueOf("18");
+            }else if (recTitle.contains("术前讨论")||recTitle.contains("术前小结")){
+                modeId = Long.valueOf("11");
+            }else if (recTitle.contains("手术记录")){
+                modeId = Long.valueOf("17");
+            }else if (recTitle.contains("同意书")){
+                modeId = Long.valueOf("16");
+            }
+        }else if ("0003".equals(recTypeId)){
+            if (recTitle.contains("会诊申请单")){
+                modeId = Long.valueOf("30");
+            }
+        }else if ("0015".equals(recTypeId)){
+            if (recTitle.contains("会诊记录")){
+                modeId = Long.valueOf("7");
+            }
+        }else if ("0005".equals(recTypeId)||"0011".equals(recTypeId)){
+            if (recTitle.contains("同意书")){
+                modeId = Long.valueOf("53");
             }
         }
 

+ 1 - 1
src/main/java/com/diagbot/task/BasDeptInfoTask.java

@@ -51,7 +51,7 @@ public class BasDeptInfoTask implements SchedulingConfigurer{
                         && task001.getIsDeleted().equals(IsDeleteEnum.N.getKey())
                         && task001.getIsUsed().equals(1)) {
                     log.info("执行动态定时任务: " + LocalDateTime.now().toLocalTime());
-                    aBasDeptInfoFacade.executeDept();
+//                    aBasDeptInfoFacade.executeDept();
 //                    viewDeptInfoFacade.executeDept();
                 }
             }

+ 2 - 0
src/main/java/com/diagbot/util/SysUserUtils.java

@@ -65,6 +65,8 @@ public class SysUserUtils {
             throw new CommonException(ServiceErrorCode.LONGIN_TOKEN_ERROE);
         }
         return SysJwtUtil.getHospId(oauthDetails.getTokenValue());
+
+
     }
 
 

+ 2 - 0
src/main/resources/application-his.yml

@@ -226,3 +226,5 @@ log_switch:
 
 mrqcLog:
   enable: false
+
+appeal.address: http://192.168.0.111:8871