Merge pull request #12270 from dataease/pr@dev-v2@perf_dataset_this_call

perf(数据集): 视图获取数据集方式优化
This commit is contained in:
fit2cloud-chenyw 2024-09-18 18:29:14 +08:00 committed by GitHub
commit 9fee9c9f1e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 6 additions and 12 deletions

View File

@ -111,7 +111,7 @@ public class ChartDataManage {
var dillAxis = new ArrayList<ChartViewFieldDTO>();
DatasetGroupInfoDTO table = datasetGroupManage.getDatasetGroupInfoDTO(view.getTableId(), null);
DatasetGroupInfoDTO table = datasetGroupManage.get(view.getTableId(), null);
if (table == null) {
DEException.throwException(ResultCode.DATA_IS_WRONG.code(), Translator.get("i18n_no_ds"));
}

View File

@ -45,8 +45,6 @@ import java.util.concurrent.locks.Lock;
import java.util.concurrent.locks.ReentrantLock;
import java.util.stream.Collectors;
import static io.dataease.result.ResultCode.DV_RESOURCE_UNCHECKED;
/**
* @Author Junjun
*/
@ -397,10 +395,6 @@ public class DatasetGroupManage {
return dto;
}
public DatasetGroupInfoDTO getDatasetGroupInfoDTO(Long id, String type) throws Exception {
return get(id, type);
}
public DatasetGroupInfoDTO getDetail(Long id) throws Exception {
CoreDatasetGroup coreDatasetGroup = coreDatasetGroupMapper.selectById(id);
if (coreDatasetGroup == null) {