|
@@ -20,6 +20,7 @@ import org.springframework.web.bind.annotation.RequestBody;
|
|
|
|
|
|
import java.util.List;
|
|
|
import java.util.Map;
|
|
|
+import java.util.stream.Collectors;
|
|
|
|
|
|
/**
|
|
|
* <p>
|
|
@@ -55,6 +56,11 @@ public class ClinicalFacade {
|
|
|
|
|
|
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);
|
|
|
if (res == null || res.getData() == null) {
|
|
|
throw new CommonException(CommonErrorCode.SERVER_IS_ERROR, "AI没有返回结果");
|