|
@ -101,7 +101,7 @@ func (impl *ExtractServiceImplement) StandardExtract(task *model.TaskHead) { |
|
|
******************************************************************************/ |
|
|
******************************************************************************/ |
|
|
func (impl *ExtractServiceImplement) ExtractByShell(shellLi []model.Shell, task *model.TaskHead, recordDao dal.RecordDao, batchId string, sourceDsn string, targetDsn string) (err error) { |
|
|
func (impl *ExtractServiceImplement) ExtractByShell(shellLi []model.Shell, task *model.TaskHead, recordDao dal.RecordDao, batchId string, sourceDsn string, targetDsn string) (err error) { |
|
|
for _, shell := range shellLi { |
|
|
for _, shell := range shellLi { |
|
|
shellPath := path.Join(config.AppConfig.App.ShellPath, shell.ShellName) |
|
|
|
|
|
|
|
|
shellPath := path.Join(global.ShellPath, shell.ShellName) |
|
|
|
|
|
|
|
|
cmd := exec.Command(shellPath, sourceDsn, targetDsn, global.DatabaseDsn, global.MongoDsn, strconv.Itoa(task.TaskId)) |
|
|
cmd := exec.Command(shellPath, sourceDsn, targetDsn, global.DatabaseDsn, global.MongoDsn, strconv.Itoa(task.TaskId)) |
|
|
buf, err := cmd.Output() |
|
|
buf, err := cmd.Output() |
|
|