瀏覽代碼

分诊过滤科室为空的数据

zhaops 5 年之前
父節點
當前提交
aa63f1ef83
共有 1 個文件被更改,包括 6 次插入0 次删除
  1. 6 0
      triage-service/src/main/java/com/diagbot/facade/AIV2Facade.java

+ 6 - 0
triage-service/src/main/java/com/diagbot/facade/AIV2Facade.java

@@ -119,6 +119,12 @@ public class AIV2Facade {
                 throw new CommonException(CommonErrorCode.SERVER_IS_ERROR, "推理结果为空");
             }
 
+            //过滤科室为空的数据
+            featureRateList=featureRateList
+                    .stream()
+                    .filter(i->StringUtil.isNotBlank(i.getConcatDept()))
+                    .collect(Collectors.toList());
+
             List<SYFFeatureDTO> syfFeatureDTOList = featureRateList
                     .stream()
                     .filter(i -> StringUtil.isNotBlank(i.getConcatDept()))