fix: 新建同步任务时数据集无数据无需提示“请先完成数据同步”

This commit is contained in:
taojinlong
2022-05-25 20:24:29 +08:00
parent 8d517f450d
commit 8f33d3779e
4 changed files with 14 additions and 2 deletions

View File

@@ -6,6 +6,7 @@ import io.dataease.plugins.common.dto.datasource.TableField;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import springfox.documentation.annotations.ApiIgnore;
import java.util.List;
@@ -38,4 +39,5 @@ public class DataSetTableRequest extends DatasetTable {
private List<ExcelSheetData> sheets;
@ApiModelProperty("是否合并sheet")
private boolean mergeSheet = false;
private boolean previewForTask = false;
}

View File

@@ -581,7 +581,11 @@ public class DataSetTableService {
} else {
// check doris table
if (!checkEngineTableIsExists(dataSetTableRequest.getId())) {
throw new RuntimeException(Translator.get("i18n_data_not_sync"));
if(dataSetTableRequest.isPreviewForTask()){
return map;
}else {
throw new RuntimeException(Translator.get("i18n_data_not_sync"));
}
}
Datasource ds = engineService.getDeEngine();
JdbcProvider jdbcProvider = CommonBeanFactory.getBean(JdbcProvider.class);