数据源数据集下拉框更新时间倒序

Raod 3 years ago
parent a7ca199134
commit f64063a8c9

@ -302,6 +302,7 @@ public class DataSetServiceImpl implements DataSetService {
LambdaQueryWrapper<DataSet> wrapper = Wrappers.lambdaQuery(); LambdaQueryWrapper<DataSet> wrapper = Wrappers.lambdaQuery();
wrapper.select(DataSet::getSetCode, DataSet::getSetName, DataSet::getSetDesc, DataSet::getId) wrapper.select(DataSet::getSetCode, DataSet::getSetName, DataSet::getSetDesc, DataSet::getId)
.eq(DataSet::getEnableFlag, Enabled.YES.getValue()); .eq(DataSet::getEnableFlag, Enabled.YES.getValue());
wrapper.orderByDesc(DataSet::getUpdateTime);
return dataSetMapper.selectList(wrapper); return dataSetMapper.selectList(wrapper);
} }

@ -75,6 +75,7 @@ public class DataSourceServiceImpl implements DataSourceService {
LambdaQueryWrapper<DataSource> wrapper = Wrappers.lambdaQuery(); LambdaQueryWrapper<DataSource> wrapper = Wrappers.lambdaQuery();
wrapper.select(DataSource::getSourceCode, DataSource::getSourceName) wrapper.select(DataSource::getSourceCode, DataSource::getSourceName)
.eq(DataSource::getEnableFlag, Enabled.YES.getValue()); .eq(DataSource::getEnableFlag, Enabled.YES.getValue());
wrapper.orderByDesc(DataSource::getUpdateTime);
return dataSourceMapper.selectList(wrapper); return dataSourceMapper.selectList(wrapper);
} }

Loading…
Cancel
Save