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 b4ef25e8..fa0d06be 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 @@ -224,6 +224,9 @@ public class DataSetServiceImpl implements DataSetService { OriginalDataDto originalDataDto = new OriginalDataDto(); String setCode = dto.getSetCode(); + if (StringUtils.isBlank(setCode)) { + throw BusinessExceptionBuilder.build("未选择数据集"); + } //1.获取数据集、参数替换、数据转换 DataSetDto dataSetDto = detailSet(setCode); String dynSentence = dataSetDto.getDynSentence();