From 8e1ec9f3086ff296d412365687028d04add01188 Mon Sep 17 00:00:00 2001 From: fit2cloud-chenyw Date: Fri, 23 Dec 2022 17:20:51 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E8=A7=86=E5=9B=BE):=20=E5=A4=8D=E5=88=B6?= =?UTF-8?q?=E8=A7=86=E5=9B=BE=E7=BC=BA=E5=B0=91view=5Ffields=E5=AD=97?= =?UTF-8?q?=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../io/dataease/ext/ExtChartViewMapper.xml | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/backend/src/main/java/io/dataease/ext/ExtChartViewMapper.xml b/backend/src/main/java/io/dataease/ext/ExtChartViewMapper.xml index 8e5db11c37..45809e80bf 100644 --- a/backend/src/main/java/io/dataease/ext/ExtChartViewMapper.xml +++ b/backend/src/main/java/io/dataease/ext/ExtChartViewMapper.xml @@ -58,7 +58,8 @@ data_from, refresh_view_enable, refresh_unit, - refresh_time) + refresh_time, + view_fields) SELECT id, `name`, title, @@ -89,7 +90,8 @@ data_from, refresh_view_enable, refresh_unit, - refresh_time + refresh_time, + view_fields from chart_view WHERE chart_view.id = #{id} @@ -306,7 +308,8 @@ `chart_type`, `is_plugin`, `senior`, - `data_from`) + `data_from`, + `view_fields`) SELECT #{newChartId}, GET_CHART_VIEW_COPY_NAME(#{oldChartId}, #{panelId}) as `name`, #{panelId}, @@ -334,7 +337,8 @@ 'private', `is_plugin`, `senior`, - `data_from` + `data_from`, + `view_fields` FROM chart_view WHERE id = #{oldChartId} @@ -521,7 +525,8 @@ cv.data_from = cve.data_from, cv.refresh_view_enable = cve.refresh_view_enable, cv.refresh_unit = cve.refresh_unit, - cv.refresh_time = cve.refresh_time + cv.refresh_time = cve.refresh_time, + cv.view_fields = cve.view_fields where cve.id = cv.id and cv.id in #{viewId} @@ -560,7 +565,8 @@ cv.data_from = cve.data_from, cv.refresh_view_enable = cve.refresh_view_enable, cv.refresh_unit = cve.refresh_unit, - cv.refresh_time = cve.refresh_time + cv.refresh_time = cve.refresh_time, + cv.view_fields = cve.view_fields where cve.id = cv.id and cv.id =#{viewId}