This commit is contained in:
苏尹岚
2020-12-04 09:44:07 +08:00
parent 8a481f8225
commit 219d0fb9cb

View File

@@ -1763,11 +1763,11 @@ func UploadJdsImage(ctx *jxcontext.Context) (err error) {
`
err = dao.GetRows(db, &storeMaps, sql, nil)
storeSkus, _ := dao.GetStoresSkusInfo(db, []int{model.JdShopMainStoreID2}, nil)
task := tasksch.NewParallelTask("京东商城门店建商品1", tasksch.NewParallelConfig().SetParallelCount(1).SetIsContinueWhenError(true), ctx,
task := tasksch.NewParallelTask("京东商城门店建商品1", tasksch.NewParallelConfig().SetIsContinueWhenError(true), ctx,
func(task2 *tasksch.ParallelTask, batchItemList []interface{}, params ...interface{}) (retVal interface{}, err error) {
v := batchItemList[0].(*model.StoreSkuBind)
if v.JdsID != 0 {
task := tasksch.NewParallelTask("京东商城门店建商品2", tasksch.NewParallelConfig().SetParallelCount(1).SetIsContinueWhenError(true), ctx,
task := tasksch.NewParallelTask("京东商城门店建商品2", tasksch.NewParallelConfig().SetIsContinueWhenError(true), ctx,
func(task *tasksch.ParallelTask, batchItemList []interface{}, params ...interface{}) (retVal interface{}, err error) {
storeMap := batchItemList[0].(*model.StoreMap)
if err = api.JdShop2API.StoreSkuBindStore(false, []string{utils.Int64ToStr(v.JdsID)}, []string{storeMap.VendorStoreID}); err == nil {