Przeglądaj źródła

日间病例修改

shiyue 3 lat temu
rodzic
commit
79c845f9a2

+ 6 - 23
src/main/java/com/diagbot/facade/data/AMedicalRecordFacade.java

@@ -435,29 +435,12 @@ public class AMedicalRecordFacade extends MedicalRecordServiceImpl {
                         }
                         if (behospitalInfo != null){
                             //如果病人住院信息存在,更新对应的qc_type_id
-                            Long qcTypeId = initQcTypeId(behospitalInfo);
-                            behospitalInfo.setQcTypeId(qcTypeId);
-                            behospitalInfoList.add(behospitalInfo);
-                        }
-                    }else if (modeId == Long.valueOf("33")){
-                        //33为日间病例   如果有的话qc_type_id 设置为0
-                        BehospitalInfo behospitalInfo = behospitalInfoFacade.getOne(new QueryWrapper<BehospitalInfo>()
-                                .eq("behospital_code", s.getBehospitalCode())
-                                .eq("hospital_id", s.getHospitalId()), false);
-                        if (behospitalInfo == null) {
-                            //如果不存在则取视图上查询并添加
-                            String code =s.getBehospitalCode();
-                            String hospitalCode = code.substring(0, code.indexOf("_"));
-                            String hospitalNum = code.substring(hospitalCode.length() + 1, code.length());
-                            String infoSql = "select * from admission_pat_regist where behospitalCode = '" + hospitalCode + "' and behospitalNum = '" + hospitalNum + "'";
-                            viewFacade.getInfo(infoSql);
-                            behospitalInfo = behospitalInfoFacade.getOne(new QueryWrapper<BehospitalInfo>()
-                                    .eq("behospital_code", s.getBehospitalCode())
-                                    .eq("hospital_id", s.getHospitalId()), false);
-                        }
-                        if (behospitalInfo != null){
-                            //如果病人住院信息存在,更新对应的qc_type_id
-                            Long qcTypeId = Long.valueOf("0");
+                            Long qcTypeId=Long.valueOf("0");
+                            if (s.getRecTitle().contains("日间")||s.getRecTitle().contains("24小时")){
+                                qcTypeId=Long.valueOf("211");
+                            }else {
+                                qcTypeId = initQcTypeId(behospitalInfo);
+                            }
                             behospitalInfo.setQcTypeId(qcTypeId);
                             behospitalInfoList.add(behospitalInfo);
                         }

+ 2 - 2
src/main/resources/application-test.yml

@@ -59,7 +59,7 @@ spring:
     druid:
       driver-class-name: com.mysql.cj.jdbc.Driver
       platform: mysql
-      url: jdbc:mysql://192.168.2.237:3306/qc?serverTimezone=GMT%2B8&useUnicode=true&characterEncoding=utf8&characterSetResults=utf8&useSSL=false&allowMultiQueries=true
+      url: jdbc:mysql://192.168.2.237:3307/qc?serverTimezone=GMT%2B8&useUnicode=true&characterEncoding=utf8&characterSetResults=utf8&useSSL=false&allowMultiQueries=true
       username: root
       password: lantone
       # 连接池的配置信息
@@ -167,7 +167,7 @@ oath.self.address: http://${myhost}:${server.port}
 
 # 加解密开关
 encrypt:
-  enable: true
+  enable: false
 
 swagger:
   enable: true