From 5406bb409fe0df20a83978633378332b5128a3fb Mon Sep 17 00:00:00 2001 From: sunxiqing <2240398334@qq.com> Date: Tue, 31 Dec 2024 13:33:52 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E6=9F=A5=E7=9C=8B=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../datarefluxconfig/DataRefluxConfigController.java | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/yudao-module-llm/yudao-module-llm-biz/src/main/java/cn/iocoder/yudao/module/llm/controller/admin/datarefluxconfig/DataRefluxConfigController.java b/yudao-module-llm/yudao-module-llm-biz/src/main/java/cn/iocoder/yudao/module/llm/controller/admin/datarefluxconfig/DataRefluxConfigController.java index 6926d5e7e..58706ec60 100644 --- a/yudao-module-llm/yudao-module-llm-biz/src/main/java/cn/iocoder/yudao/module/llm/controller/admin/datarefluxconfig/DataRefluxConfigController.java +++ b/yudao-module-llm/yudao-module-llm-biz/src/main/java/cn/iocoder/yudao/module/llm/controller/admin/datarefluxconfig/DataRefluxConfigController.java @@ -1,7 +1,10 @@ package cn.iocoder.yudao.module.llm.controller.admin.datarefluxconfig; +import cn.iocoder.yudao.module.llm.controller.admin.datarefluxdata.vo.DataRefluxDataRespVO; +import cn.iocoder.yudao.module.llm.dal.dataobject.datarefluxdata.DataRefluxDataDO; import cn.iocoder.yudao.module.llm.dal.mysql.modelservice.ModelServiceMapper; import cn.iocoder.yudao.module.llm.service.basemodel.BaseModelService; +import cn.iocoder.yudao.module.llm.service.datarefluxdata.DataRefluxDataService; import cn.iocoder.yudao.module.llm.service.modelservice.ModelServiceService; import org.springframework.web.bind.annotation.*; import javax.annotation.Resource; @@ -44,6 +47,8 @@ public class DataRefluxConfigController { private ModelServiceService modelServiceService; @Resource private BaseModelService baseModelService; + @Resource + private DataRefluxDataService dataRefluxDataService; @PostMapping("/create") @Operation(summary = "创建数据回流配置") @@ -104,6 +109,13 @@ public class DataRefluxConfigController { return success(bean); } + @GetMapping("/review-the-data") + @Operation(summary = "数据回流配置查看数据") + public CommonResult> reviewTheData(@RequestParam("id") Long id) { + List list = dataRefluxDataService.getTheDetails(id); + return success(BeanUtils.toBean(list, DataRefluxDataRespVO.class)); + } + @GetMapping("/export-excel") @Operation(summary = "导出数据回流配置 Excel") @PreAuthorize("@ss.hasPermission('llm:data-reflux-config:export')")