From efcbe1681edc72540967f3e1e7c8443a3d6a41f4 Mon Sep 17 00:00:00 2001 From: wisonic-s Date: Wed, 28 Dec 2022 15:14:24 +0800 Subject: [PATCH] =?UTF-8?q?refactor(=E8=A1=80=E6=BA=90=E5=88=86=E6=9E=90-?= =?UTF-8?q?=E6=95=B0=E6=8D=AE=E9=9B=86):=20=E8=B0=83=E6=95=B4=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=E9=9B=86=E8=A1=80=E7=BC=98=E5=85=B3=E7=B3=BB=E6=9F=A5?= =?UTF-8?q?=E8=AF=A2=E7=BB=93=E6=9E=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 返回值修改为数据源和仪表板 --- .../io/dataease/ext/ExtDataSetTableMapper.xml | 28 ++++++++++--------- .../io/dataease/ext/ExtDataSourceMapper.xml | 18 ++++++------ .../io/dataease/ext/ExtPanelGroupMapper.xml | 24 ++++------------ 3 files changed, 30 insertions(+), 40 deletions(-) diff --git a/backend/src/main/java/io/dataease/ext/ExtDataSetTableMapper.xml b/backend/src/main/java/io/dataease/ext/ExtDataSetTableMapper.xml index 46bbce05dd..205a1b42f2 100644 --- a/backend/src/main/java/io/dataease/ext/ExtDataSetTableMapper.xml +++ b/backend/src/main/java/io/dataease/ext/ExtDataSetTableMapper.xml @@ -159,23 +159,25 @@ diff --git a/backend/src/main/java/io/dataease/ext/ExtDataSourceMapper.xml b/backend/src/main/java/io/dataease/ext/ExtDataSourceMapper.xml index 49c1bfe889..2e572d0578 100644 --- a/backend/src/main/java/io/dataease/ext/ExtDataSourceMapper.xml +++ b/backend/src/main/java/io/dataease/ext/ExtDataSourceMapper.xml @@ -11,10 +11,10 @@ - - - - + + + + @@ -167,10 +167,10 @@ dt.name, dt_auth.auths, 'dataset' `type`, - pg.id panel_id, - pg.name panel_name, - pg_auth.auths panel_auths, - if(pg.id is not null,'panel',null) pg_type + pg.id sub_id, + pg.name sub_name, + pg_auth.auths sub_auths, + if(pg.id is not null,'panel',null) sub_type from datasource ds join dataset_table dt on dt.data_source_id = ds.id @@ -239,7 +239,7 @@ group by sa.auth_source ) pg_auth on pg_auth.id = pg.id where ds.id=#{datasourceId,jdbcType=VARCHAR} - group by id,panel_id + group by id,sub_id order by id diff --git a/backend/src/main/java/io/dataease/ext/ExtPanelGroupMapper.xml b/backend/src/main/java/io/dataease/ext/ExtPanelGroupMapper.xml index 8aebceeb0c..a75137acd1 100644 --- a/backend/src/main/java/io/dataease/ext/ExtPanelGroupMapper.xml +++ b/backend/src/main/java/io/dataease/ext/ExtPanelGroupMapper.xml @@ -14,18 +14,6 @@ - - - - - - - - - - - - +