Explorar o código

1、现病史 主诉模型返回临床表现时间丢失BUG

louhr %!s(int64=5) %!d(string=hai) anos
pai
achega
2f13616e2e

+ 1 - 0
kernel/src/main/java/com/lantone/qc/kernel/structure/ai/process/EntityProcessClinic.java

@@ -57,6 +57,7 @@ public class EntityProcessClinic extends EntityProcess {
                         }
                     }
                 }
+                clinical.setTimestamp(timestamp);
                 presentLabel.add(presentLabel.getClinicals(), clinical);
             }
             //入院途径

+ 2 - 2
kernel/src/main/java/com/lantone/qc/kernel/web/controller/QCTestController.java

@@ -139,7 +139,7 @@ public class QCTestController {
                     "FROM qc_model_mapping qmm, qc_mode q, qc_cases_number n, qc_hospital_info h " +
                     "where qmm.case_number_id = n.id and qmm.mode_id = q.id and n.hospital_id = h.id and n.is_deleted = 'N' ";
             if (StringUtils.isNotEmpty(caseNumber)) {
-                sql = sql + " and n.case_number = " + caseNumber;
+                sql = sql + " and n.case_number = '" + caseNumber + "'";
             }
             if (StringUtils.isNotEmpty(hospitalId)) {
                 sql = sql + " and n.hospital_id = " + hospitalId;
@@ -223,7 +223,7 @@ public class QCTestController {
                     "where qim.case_number_id = q.id and qim.cases_entry_id = qc.id and q.is_deleted = 'N' " +
                     "and q.hospital_id = " + hospitalId ;
             if (StringUtils.isNotEmpty(caseNumber)) {
-                sql = sql + " and q.case_number = " + caseNumber;
+                sql = sql + " and q.case_number = '" + caseNumber + "' ";
             }
             sql = sql + " order by q.id, qim.cases_id ";
             rs = st.executeQuery(sql);

+ 2 - 1
public/src/main/java/com/lantone/qc/pub/model/entity/Clinical.java

@@ -3,6 +3,7 @@ package com.lantone.qc.pub.model.entity;
 import lombok.Getter;
 import lombok.Setter;
 
+import java.util.ArrayList;
 import java.util.List;
 
 /**
@@ -22,5 +23,5 @@ public class Clinical extends General {
     private Aggravate aggravate;//加重因素
     private Relief relief;//缓解因素
     private PD pds;
-    private List<PD> timestamp;
+    private List<PD> timestamp = new ArrayList<>();
 }

+ 5 - 0
public/src/main/java/com/lantone/qc/pub/model/entity/General.java

@@ -3,6 +3,8 @@ package com.lantone.qc.pub.model.entity;
 import lombok.Getter;
 import lombok.Setter;
 
+import java.util.List;
+
 /**
  * @ClassName com.lantone.util.module.General
  * @Description 基础对象,用于继承
@@ -14,4 +16,7 @@ import lombok.Setter;
 @Getter
 public class General {
     private String name;
+    protected  <T> void add(List<T> list, T obj) {
+        list.add(obj);
+    }
 }