1
This commit is contained in:
@@ -644,19 +644,14 @@ func (c *OrderManager) ExportOrders(ctx *jxcontext.Context, fromDateStr, toDateS
|
|||||||
}, 5)
|
}, 5)
|
||||||
tasksch.ManageTask(task).Run()
|
tasksch.ManageTask(task).Run()
|
||||||
if !isAsync {
|
if !isAsync {
|
||||||
resultList, err2 := task.GetResult(0)
|
if result, err := task.GetResult(0); err == nil {
|
||||||
globals.SugarLogger.Debugf("-----------err := %v", err)
|
globals.SugarLogger.Debugf("--------result:= %s", utils.Format4Output(result, false))
|
||||||
globals.SugarLogger.Debugf("-----------resultList := %s", utils.Format4Output(resultList, false))
|
hint = "22"
|
||||||
if err = err2; err == nil {
|
|
||||||
if len(resultList) == 0 {
|
|
||||||
hint = "1" // todo 暂时这样
|
|
||||||
} else {
|
|
||||||
hint = jxutils.TaskResult2Hint(resultList)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
hint = task.GetID()
|
hint = task.GetID()
|
||||||
}
|
}
|
||||||
|
|
||||||
return hint, err
|
return hint, err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user