diff --git a/hzims-service/gglm-big-model/src/main/java/com/hnac/gglm/bigmodel/database/service/WeaviateService.java b/hzims-service/gglm-big-model/src/main/java/com/hnac/gglm/bigmodel/database/service/WeaviateService.java index 4a8afcf..745a53d 100644 --- a/hzims-service/gglm-big-model/src/main/java/com/hnac/gglm/bigmodel/database/service/WeaviateService.java +++ b/hzims-service/gglm-big-model/src/main/java/com/hnac/gglm/bigmodel/database/service/WeaviateService.java @@ -219,7 +219,7 @@ public class WeaviateService { if(Func.isNotEmpty(className)) { objectsGetter.withClassName(className); } - Result> result = objectsGetter.withVector().withLimit(pageSize).withOffset((current-1) * pageSize).run(); + Result> result = objectsGetter.withLimit(pageSize).withOffset((current-1) * pageSize).run(); if(result.hasErrors()) { throw new HzServiceException("查询失败!"); } diff --git a/hzims-service/gglm-big-model/src/main/java/com/hnac/gglm/bigmodel/interactive/constants/FunctionConstants.java b/hzims-service/gglm-big-model/src/main/java/com/hnac/gglm/bigmodel/interactive/constants/FunctionConstants.java index 03130ab..bb7ac85 100644 --- a/hzims-service/gglm-big-model/src/main/java/com/hnac/gglm/bigmodel/interactive/constants/FunctionConstants.java +++ b/hzims-service/gglm-big-model/src/main/java/com/hnac/gglm/bigmodel/interactive/constants/FunctionConstants.java @@ -27,7 +27,6 @@ public interface FunctionConstants { CHART("6"), IMAGE_TEXT("7") ; - ; @Getter private String type; diff --git a/hzims-service/gglm-big-model/src/main/java/com/hnac/gglm/bigmodel/interactive/service/impl/ControlAnswerResolveServiceImpl.java b/hzims-service/gglm-big-model/src/main/java/com/hnac/gglm/bigmodel/interactive/service/impl/ControlAnswerResolveServiceImpl.java index 7aa4182..8b2eb80 100644 --- a/hzims-service/gglm-big-model/src/main/java/com/hnac/gglm/bigmodel/interactive/service/impl/ControlAnswerResolveServiceImpl.java +++ b/hzims-service/gglm-big-model/src/main/java/com/hnac/gglm/bigmodel/interactive/service/impl/ControlAnswerResolveServiceImpl.java @@ -47,10 +47,12 @@ public class ControlAnswerResolveServiceImpl implements IAnswerResolveService { String body = HttpRequest.post(url).body(JSON.toJSONString(param)).execute().body(); params.put("data",body); log.info("识别结果为:{}", body); + ExtraVO result = originExtra.toJavaObject(ExtraVO.class); + result.setType(FunctionConstants.TypeEnum.IMAGE_TEXT.getType()); + return result; } } ExtraVO result = originExtra.toJavaObject(ExtraVO.class); - result.setType(FunctionConstants.TypeEnum.IMAGE_TEXT.getType()); return result; } }