|
@@ -2,8 +2,8 @@ package com.diagbot.facade;
|
|
|
|
|
|
import com.alibaba.fastjson.JSONObject;
|
|
import com.alibaba.fastjson.JSONObject;
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|
-import com.diagbot.client.AIServiceClient;
|
|
|
|
-import com.diagbot.client.HighRiskServiceClient;
|
|
|
|
|
|
+import com.diagbot.client.BigDataServiceClient;
|
|
|
|
+import com.diagbot.client.GraphServiceClient;
|
|
import com.diagbot.client.bean.FeatureRate;
|
|
import com.diagbot.client.bean.FeatureRate;
|
|
import com.diagbot.client.bean.GdbResponse;
|
|
import com.diagbot.client.bean.GdbResponse;
|
|
import com.diagbot.client.bean.MedicalIndication;
|
|
import com.diagbot.client.bean.MedicalIndication;
|
|
@@ -61,7 +61,7 @@ import java.util.stream.Collectors;
|
|
@Component
|
|
@Component
|
|
public class PushFacade {
|
|
public class PushFacade {
|
|
@Autowired
|
|
@Autowired
|
|
- private AIServiceClient aiServiceClient;
|
|
|
|
|
|
+ private BigDataServiceClient bigDataServiceClient;
|
|
@Autowired
|
|
@Autowired
|
|
private QuestionFacade questionFacade;
|
|
private QuestionFacade questionFacade;
|
|
@Autowired
|
|
@Autowired
|
|
@@ -71,7 +71,7 @@ public class PushFacade {
|
|
@Autowired
|
|
@Autowired
|
|
private TreatmentFacade treatmentFacade;
|
|
private TreatmentFacade treatmentFacade;
|
|
@Autowired
|
|
@Autowired
|
|
- private HighRiskServiceClient highRiskServiceClient;
|
|
|
|
|
|
+ private GraphServiceClient graphServiceClient;
|
|
@Autowired
|
|
@Autowired
|
|
private LisMappingFacade lisMappingFacade;
|
|
private LisMappingFacade lisMappingFacade;
|
|
@Autowired
|
|
@Autowired
|
|
@@ -135,7 +135,7 @@ public class PushFacade {
|
|
searchData.setSysCode("1");
|
|
searchData.setSysCode("1");
|
|
searchData.setLength(10);
|
|
searchData.setLength(10);
|
|
|
|
|
|
- Response<ResponseData> res = aiServiceClient.bayesPageData(searchData);
|
|
|
|
|
|
+ Response<ResponseData> res = bigDataServiceClient.bayesPageData(searchData);
|
|
if (null == res || null == res.getData()) {
|
|
if (null == res || null == res.getData()) {
|
|
throw new CommonException(CommonErrorCode.SERVER_IS_ERROR, "AI没有返回结果");
|
|
throw new CommonException(CommonErrorCode.SERVER_IS_ERROR, "AI没有返回结果");
|
|
}
|
|
}
|
|
@@ -230,7 +230,7 @@ public class PushFacade {
|
|
highRiskMap.put("disease", String.join(",", diseaseNameList));
|
|
highRiskMap.put("disease", String.join(",", diseaseNameList));
|
|
SearchData searchData = new SearchData();
|
|
SearchData searchData = new SearchData();
|
|
searchData.setDiag(String.join(",", diseaseNameList));
|
|
searchData.setDiag(String.join(",", diseaseNameList));
|
|
- Response<GdbResponse> graphRes = highRiskServiceClient.highRiskPageData(searchData);
|
|
|
|
|
|
+ Response<GdbResponse> graphRes = graphServiceClient.highRiskPageData(searchData);
|
|
if (graphRes != null) {
|
|
if (graphRes != null) {
|
|
Map<String, String> graphResult = graphRes.getData().getResult();
|
|
Map<String, String> graphResult = graphRes.getData().getResult();
|
|
if (graphResult.size() > 0) {
|
|
if (graphResult.size() > 0) {
|