Przeglądaj źródła

1、修改模型返回数据为空时候BUG

louhr 5 lat temu
rodzic
commit
8dc4bdcf9d

+ 3 - 0
kernel/src/main/java/com/lantone/qc/kernel/structure/ai/BeHospitalizedAI.java

@@ -320,6 +320,9 @@ public class BeHospitalizedAI extends ModelAI {
             return;
         }
         JSONObject aiOut = jsonObject.getJSONObject(entityRelationObject).getJSONObject(BeHospitalizedAI.outputs);
+        if (aiOut == null) {
+            return;
+        }
         //诊断信息
         EntityProcessDiag entityProcessDiag = new EntityProcessDiag();
         List<Diag> diags = entityProcessDiag.extractEntity(aiOut);

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

@@ -61,6 +61,7 @@ public class QCTestController {
         List<Map<String, Object>> updates = new ArrayList<>();
         List<Map<String, Object>> wheres = new ArrayList<>();
         for (Map.Entry<String, QueryVo> entry : queryVoMap.entrySet()) {
+            System.out.println("患者就诊号:" + entry.getKey() + "..........");
             OutputInfo outputInfo = qCAnalysis.anlysis(entry.getValue());
 
             Map<String, String> passMap = inputCaseMappingMap.get(entry.getKey());