This commit is contained in:
苏尹岚
2021-03-10 14:01:04 +08:00
parent 050cd4db15
commit 88ff46c0ee

View File

@@ -434,7 +434,6 @@ func GetStoreManageState(ctx *jxcontext.Context, storeIDs []int, vendorID int, f
storeIDs = storeIDs2
}
}
fmt.Println("storeIDs111111111111111111111111111", storeIDs)
task := tasksch.NewParallelTask("GetStoreManageState", tasksch.NewParallelConfig().SetIsContinueWhenError(true), ctx,
func(task *tasksch.ParallelTask, batchItemList []interface{}, params ...interface{}) (retVal interface{}, err error) {
v := batchItemList[0].(int)
@@ -514,7 +513,7 @@ func GetStoreManageState(ctx *jxcontext.Context, storeIDs []int, vendorID int, f
return retVal, err
}, storeIDs)
tasksch.HandleTask(task, nil, true).Run()
result, err := task.GetResult(0)
result, _ := task.GetResult(0)
for _, v := range result {
getStoreManageStateResult = append(getStoreManageStateResult, v.(*GetStoreManageStateResult))
}