From 83f027d1dd78601f5a42a9f4d7c2a92cb652f580 Mon Sep 17 00:00:00 2001 From: hekaiyu <13673834656@163.com> Date: Wed, 15 Oct 2025 15:55:06 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9F=A5=E8=AF=A2=E7=9B=AE=E6=A0=87=E6=BA=90?= =?UTF-8?q?=E6=89=80=E6=9C=89=E7=94=A8=E6=88=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../controller/StasDataSourceController.java | 24 ++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/jeecg-module-sync/src/main/java/org/jeecg/dataSource/controller/StasDataSourceController.java b/jeecg-module-sync/src/main/java/org/jeecg/dataSource/controller/StasDataSourceController.java index 1f48d7c..2a60d14 100644 --- a/jeecg-module-sync/src/main/java/org/jeecg/dataSource/controller/StasDataSourceController.java +++ b/jeecg-module-sync/src/main/java/org/jeecg/dataSource/controller/StasDataSourceController.java @@ -19,7 +19,9 @@ import org.jeecg.common.util.oConvertUtils; import org.jeecg.modules.base.entity.StasDataSource; import org.jeecg.dataSource.service.IStasDataSourceService; import org.jeecg.modules.base.entity.StasSyncStrategy; +import org.jeecg.modules.base.entity.StasTaskConfig; import org.jeecg.modules.base.service.BaseCommonService; +import org.jeecg.taskConfig.service.IStasTaskConfigService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.*; import java.util.*; @@ -40,6 +42,8 @@ public class StasDataSourceController extends JeecgController queryTargetUserList(@RequestParam(name="sourceId",required=false) String sourceId) { + public Result queryUserList(@RequestParam(name="sourceId",required=false) String sourceId) { List tableNameList= stasDataSourceService.queryUserList(sourceId); if (tableNameList != null && !"".equals(tableNameList)){ return Result.OK(tableNameList); @@ -85,6 +89,24 @@ public class StasDataSourceController extends JeecgController queryTargetUserList(@RequestParam(name="taskId",required=false) String taskId) { + StasTaskConfig taskConfig = stasTaskConfigService.getById(taskId); + List tableNameList= stasDataSourceService.queryUserList(taskConfig.getSourceId()); + if (tableNameList != null && !"".equals(tableNameList)){ + return Result.OK(tableNameList); + } + return Result.error("获取源端用户为空"); + } + /** * 查询数据源表 *