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

+ 6 - 0
aipt-service/src/main/java/com/diagbot/facade/ClinicalFacade.java

@@ -20,6 +20,7 @@ import org.springframework.web.bind.annotation.RequestBody;
 
 
 import java.util.List;
 import java.util.List;
 import java.util.Map;
 import java.util.Map;
+import java.util.stream.Collectors;
 
 
 /**
 /**
  * <p>
  * <p>
@@ -55,6 +56,11 @@ public class ClinicalFacade {
 
 
         sData.setLisArr(processLis(sData.getLisArr()));
         sData.setLisArr(processLis(sData.getLisArr()));
 
 
+        if (ListUtil.isNotEmpty(sData.getLisArr())) {
+            List<String> otherVal = sData.getLisArr().stream().map(lisArr -> lisArr.getOtherValue()).collect(Collectors.toList());
+            sData.setLis(String.join(",", otherVal));
+        }
+
         Response<ResponseData> res = aiServiceClient.bayesPageData(sData);
         Response<ResponseData> res = aiServiceClient.bayesPageData(sData);
         if (res == null || res.getData() == null) {
         if (res == null || res.getData() == null) {
             throw new CommonException(CommonErrorCode.SERVER_IS_ERROR, "AI没有返回结果");
             throw new CommonException(CommonErrorCode.SERVER_IS_ERROR, "AI没有返回结果");