forked from github/dataease
fix:校验增量sql
This commit is contained in:
parent
72bf2bcf5a
commit
a16f133706
@ -63,11 +63,8 @@ public class DataSetTableTaskService {
|
|||||||
// SIMPLE 类型,提前占位
|
// SIMPLE 类型,提前占位
|
||||||
if (datasetTableTask.getRate().equalsIgnoreCase(ScheduleType.SIMPLE.toString())) {
|
if (datasetTableTask.getRate().equalsIgnoreCase(ScheduleType.SIMPLE.toString())) {
|
||||||
if(datasetTableTask.getType().equalsIgnoreCase("add_scope")){
|
if(datasetTableTask.getType().equalsIgnoreCase("add_scope")){
|
||||||
DatasetTableTaskLog request = new DatasetTableTaskLog();
|
DatasetTable datasetTable = dataSetTableService.get(datasetTableTask.getTableId());
|
||||||
request.setTableId(datasetTableTask.getTableId());
|
if (datasetTable.getLastUpdateTime() == 0 || datasetTable.getLastUpdateTime() == null) {
|
||||||
request.setStatus(JobStatus.Completed.name());
|
|
||||||
List<DatasetTableTaskLog> datasetTableTaskLogs = dataSetTableTaskLogService.select(request);
|
|
||||||
if (CollectionUtils.isEmpty(datasetTableTaskLogs)) {
|
|
||||||
throw new Exception(Translator.get("i18n_not_exec_add_sync"));
|
throw new Exception(Translator.get("i18n_not_exec_add_sync"));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user