fix(仪表板): 过滤组件排序字段加入查询

This commit is contained in:
junjun 2024-05-23 17:17:22 +08:00
parent b7dd6d7561
commit 38ac1d5c1b

View File

@ -532,6 +532,13 @@ public class DatasetDataManage {
boolean crossDs = false;
Map<Long, DatasourceSchemaDTO> dsMap = null;
if (ObjectUtils.isNotEmpty(request.getSortId())) {
// 如果排序字段和查询字段显示字段不一致则加入到查询列表中
if (!request.getSortId().equals(request.getQueryId()) && !request.getSortId().equals(request.getDisplayId())) {
ids.add(request.getSortId());
}
}
for (Long id : ids) {
DatasetTableFieldDTO field = datasetTableFieldManage.selectById(id);
if (field == null) {