fix:校验增量sql

This commit is contained in:
taojinlong 2021-06-16 19:08:15 +08:00
parent 72bf2bcf5a
commit a16f133706

View File

@ -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"));
} }
} }