From f64063a8c9ccdf6330ce54a7e1843edcbf6b2716 Mon Sep 17 00:00:00 2001 From: Raod <1130305001@qq.com> Date: Tue, 28 Sep 2021 09:39:26 +0800 Subject: [PATCH] =?UTF-8?q?=E6=95=B0=E6=8D=AE=E6=BA=90=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E9=9B=86=E4=B8=8B=E6=8B=89=E6=A1=86=E6=9B=B4=E6=96=B0=E6=97=B6?= =?UTF-8?q?=E9=97=B4=E5=80=92=E5=BA=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../modules/dataset/service/impl/DataSetServiceImpl.java | 1 + .../modules/datasource/service/impl/DataSourceServiceImpl.java | 1 + 2 files changed, 2 insertions(+) diff --git a/report-core/src/main/java/com/anjiplus/template/gaea/business/modules/dataset/service/impl/DataSetServiceImpl.java b/report-core/src/main/java/com/anjiplus/template/gaea/business/modules/dataset/service/impl/DataSetServiceImpl.java index ed529a5f..1282bfca 100644 --- a/report-core/src/main/java/com/anjiplus/template/gaea/business/modules/dataset/service/impl/DataSetServiceImpl.java +++ b/report-core/src/main/java/com/anjiplus/template/gaea/business/modules/dataset/service/impl/DataSetServiceImpl.java @@ -302,6 +302,7 @@ public class DataSetServiceImpl implements DataSetService { LambdaQueryWrapper wrapper = Wrappers.lambdaQuery(); wrapper.select(DataSet::getSetCode, DataSet::getSetName, DataSet::getSetDesc, DataSet::getId) .eq(DataSet::getEnableFlag, Enabled.YES.getValue()); + wrapper.orderByDesc(DataSet::getUpdateTime); return dataSetMapper.selectList(wrapper); } diff --git a/report-core/src/main/java/com/anjiplus/template/gaea/business/modules/datasource/service/impl/DataSourceServiceImpl.java b/report-core/src/main/java/com/anjiplus/template/gaea/business/modules/datasource/service/impl/DataSourceServiceImpl.java index 92af651a..0485a294 100644 --- a/report-core/src/main/java/com/anjiplus/template/gaea/business/modules/datasource/service/impl/DataSourceServiceImpl.java +++ b/report-core/src/main/java/com/anjiplus/template/gaea/business/modules/datasource/service/impl/DataSourceServiceImpl.java @@ -75,6 +75,7 @@ public class DataSourceServiceImpl implements DataSourceService { LambdaQueryWrapper wrapper = Wrappers.lambdaQuery(); wrapper.select(DataSource::getSourceCode, DataSource::getSourceName) .eq(DataSource::getEnableFlag, Enabled.YES.getValue()); + wrapper.orderByDesc(DataSource::getUpdateTime); return dataSourceMapper.selectList(wrapper); }