diff --git a/virtual-patient-rasa/src/main/java/com/supervision/rasa/service/Text2vecServiceImpl.java b/virtual-patient-rasa/src/main/java/com/supervision/rasa/service/Text2vecServiceImpl.java index f1b2b36c..55917fc4 100644 --- a/virtual-patient-rasa/src/main/java/com/supervision/rasa/service/Text2vecServiceImpl.java +++ b/virtual-patient-rasa/src/main/java/com/supervision/rasa/service/Text2vecServiceImpl.java @@ -85,7 +85,7 @@ public class Text2vecServiceImpl implements Text2vecService { Assert.notEmpty(text2vecMatchesReq.getQuerySentence(), "querySentence不能为空"); - String path = Objects.isNull(text2vecMatchesReq.getThreshold()) ? MATCHES_PATH : GET_ALL_SIMILARITIES_PATH; + String path = Objects.nonNull(text2vecMatchesReq.getThreshold()) ? MATCHES_PATH : GET_ALL_SIMILARITIES_PATH; String url = TEXT2VEC_SERVICE_DOMAIN + path; log.info("matches: url is : {},req:{}",url,JSONUtil.toJsonStr(text2vecMatchesReq));