forked from github/dataease
fix: 尝试解决导入excle 报找不到字段的问题
This commit is contained in:
parent
fecdd28d2d
commit
d6c3368d1f
@ -3,9 +3,11 @@ package io.dataease.job.sechedule;
|
||||
import com.fit2cloud.quartz.anno.QuartzScheduled;
|
||||
import io.dataease.datasource.service.DatasourceService;
|
||||
import io.dataease.service.dataset.DataSetTableService;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
|
||||
@Component
|
||||
public class Schedular {
|
||||
@Resource
|
||||
private DataSetTableService dataSetTableService;
|
||||
|
@ -40,7 +40,6 @@ import org.pentaho.di.job.JobMeta;
|
||||
import org.pentaho.di.job.entries.shell.JobEntryShell;
|
||||
import org.pentaho.di.job.entries.special.JobEntrySpecial;
|
||||
import org.pentaho.di.job.entries.success.JobEntrySuccess;
|
||||
import org.pentaho.di.job.entries.trans.JobEntryTrans;
|
||||
import org.pentaho.di.job.entry.JobEntryCopy;
|
||||
import org.pentaho.di.repository.RepositoryDirectoryInterface;
|
||||
import org.pentaho.di.repository.filerep.KettleFileRepository;
|
||||
@ -976,7 +975,6 @@ public class ExtractDataService {
|
||||
} else {
|
||||
textFileField.setType("String");
|
||||
}
|
||||
|
||||
outputFields[i] = textFileField;
|
||||
}
|
||||
TextFileField textFileField = new TextFileField();
|
||||
@ -985,7 +983,7 @@ public class ExtractDataService {
|
||||
outputFields[datasetTableFields.size()] = textFileField;
|
||||
|
||||
textFileOutputMeta.setOutputFields(outputFields);
|
||||
}{
|
||||
}else {
|
||||
textFileOutputMeta.setOutputFields(new TextFileField[0]);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user