|
@@ -7,6 +7,7 @@ import com.diagbot.client.bean.Response;
|
|
|
import com.diagbot.client.bean.ResponseData;
|
|
|
import com.diagbot.client.bean.SearchData;
|
|
|
import com.diagbot.dto.PushDTO;
|
|
|
+import com.diagbot.dto.PushKYJDTO;
|
|
|
import com.diagbot.dto.QuestionDTO;
|
|
|
import com.diagbot.entity.DeptInfo;
|
|
|
import com.diagbot.entity.DeptVital;
|
|
@@ -17,6 +18,8 @@ import com.diagbot.enums.QuestionTypeEnum;
|
|
|
import com.diagbot.exception.CommonErrorCode;
|
|
|
import com.diagbot.exception.CommonException;
|
|
|
import com.diagbot.util.EntityUtil;
|
|
|
+import com.diagbot.vo.LisKYJVO;
|
|
|
+import com.diagbot.vo.PushKYJVO;
|
|
|
import com.diagbot.vo.PushVO;
|
|
|
import com.diagbot.vo.QuestionVO;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
@@ -182,6 +185,36 @@ public class PushFacade {
|
|
|
return pushDTO;
|
|
|
}
|
|
|
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 推理接口-快易检
|
|
|
+ * @param pushKYJVO
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ public PushKYJDTO pushKYJ(PushKYJVO pushKYJVO) {
|
|
|
+ PushVO pushVO = new PushVO();
|
|
|
+ pushVO.setAge(pushKYJVO.getAge());
|
|
|
+ pushVO.setSex(pushKYJVO.getSex());
|
|
|
+
|
|
|
+ //参数预处理
|
|
|
+ String lis="";
|
|
|
+ for(LisKYJVO lisKYJVO:pushKYJVO.getLisKYJVOList()){
|
|
|
+ String lisDetail="";
|
|
|
+ if(lisKYJVO.getValue()!=null){
|
|
|
+
|
|
|
+ }
|
|
|
+ if(lisKYJVO.getOtherValue()!=null){
|
|
|
+
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ ResponseData responseData = pushAI(pushVO);
|
|
|
+ PushKYJDTO pushKYJDTO = new PushKYJDTO();
|
|
|
+ pushKYJDTO.setLabs(responseData.getLabs());
|
|
|
+ pushKYJDTO.setDis(responseData.getDis());
|
|
|
+ return pushKYJDTO;
|
|
|
+ }
|
|
|
+
|
|
|
/**
|
|
|
* 将list 转换成 map
|
|
|
*
|