|
@@ -2,10 +2,13 @@ package com.diagbot.facade;
|
|
|
|
|
|
import com.alibaba.fastjson.JSON;
|
|
|
import com.diagbot.client.AIServiceClient;
|
|
|
+import com.diagbot.client.NLPServiceClient;
|
|
|
import com.diagbot.client.bean.CalculateData;
|
|
|
import com.diagbot.client.bean.GdbResponse;
|
|
|
import com.diagbot.client.bean.Response;
|
|
|
import com.diagbot.client.bean.ResponseData;
|
|
|
+import com.diagbot.dto.FeatureConceptDTO;
|
|
|
+import com.diagbot.dto.Lexeme;
|
|
|
import com.diagbot.dto.LisResult;
|
|
|
import com.diagbot.entity.ScaleContent;
|
|
|
import com.diagbot.entity.SysLog;
|
|
@@ -39,6 +42,8 @@ public class ClinicalFacade {
|
|
|
private AIServiceClient aiServiceClient;
|
|
|
@Autowired
|
|
|
private ScaleContentService scaleContentService;
|
|
|
+ @Autowired
|
|
|
+ private NLPServiceClient nlpServiceClient;
|
|
|
|
|
|
private static String up = "增高";
|
|
|
private static String down = "降低";
|
|
@@ -56,6 +61,8 @@ public class ClinicalFacade {
|
|
|
public ResponseData processClinicalData(@RequestBody SearchVo searchVo) {
|
|
|
SearchVo sData = searchVo;
|
|
|
|
|
|
+ Response<List<Object>> resp = nlpServiceClient.split(sData.getSymptom());
|
|
|
+
|
|
|
sData.setLisArr(processLis(sData.getLisArr()));
|
|
|
|
|
|
if (ListUtil.isNotEmpty(sData.getLisArr())) {
|