forked from github/dataease
fix(血缘关-数据源列表): 数据源列表按照类型和名称升序排序
This commit is contained in:
parent
2abcc45027
commit
1df6e4b3e2
@ -124,7 +124,7 @@
|
||||
and configuration = #{configuration,jdbcType=LONGVARCHAR}
|
||||
</if>
|
||||
</where>
|
||||
<if test="sort == null">
|
||||
<if test="sort != null">
|
||||
order by ${sort}
|
||||
</if>
|
||||
</select>
|
||||
|
@ -158,11 +158,9 @@ public class DatasourceService {
|
||||
}
|
||||
|
||||
public List<DatasourceDTO> getDatasourceList(DatasourceUnionRequest request) throws Exception {
|
||||
request.setSort("update_time desc");
|
||||
request.setSort("type,name");
|
||||
List<DatasourceDTO> datasourceDTOS = extDataSourceMapper.queryUnion(request);
|
||||
datasourceDTOS.forEach(datasourceDTO -> {
|
||||
datasourceTrans(datasourceDTO);
|
||||
});
|
||||
datasourceDTOS.forEach(this::datasourceTrans);
|
||||
return datasourceDTOS;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user