同步银豹到京西改成非并发
This commit is contained in:
@@ -890,15 +890,11 @@ func (v *VendorSync) SyncStoreSkusFromYb(ctx *jxcontext.Context, storeIDs []int,
|
|||||||
vendorID = model.VendorIDYB
|
vendorID = model.VendorIDYB
|
||||||
db = dao.GetDB()
|
db = dao.GetDB()
|
||||||
)
|
)
|
||||||
hint, err = v.LoopStoresMap(ctx, db, fmt.Sprintf("从银豹平台同步商品到京西:%v", storeIDs), isAsync, true, []int{vendorID}, storeIDs,
|
storeMapList, err := dao.GetStoresMapList2(db, []int{vendorID}, storeIDs, nil, model.StoreStatusAll, model.StoreIsSyncYes, "", false)
|
||||||
func(t *tasksch.ParallelTask, batchItemList []interface{}, params ...interface{}) (interface{}, error) {
|
for _, v := range storeMapList {
|
||||||
loopMapInfo := batchItemList[0].(*LoopStoreMapInfo)
|
hint, err = syncStoreSkusFromYb(ctx, v.StoreID, vendorID, v.VendorStoreID, isAsync, isContinueWhenError)
|
||||||
for _, v := range loopMapInfo.StoreMapList {
|
}
|
||||||
syncStoreSkusFromYb(ctx, v.StoreID, vendorID, v.VendorStoreID, isAsync, isContinueWhenError)
|
return hint, err
|
||||||
}
|
|
||||||
return nil, partner.AddVendorInfo2Err(err, loopMapInfo.VendorID)
|
|
||||||
}, isContinueWhenError)
|
|
||||||
return hint, makeSyncError(err)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func syncStoreSkusFromYb(ctx *jxcontext.Context, storeID, vendorID int, vendorStoreID string, isAsync, isContinueWhenError bool) (hint string, err error) {
|
func syncStoreSkusFromYb(ctx *jxcontext.Context, storeID, vendorID int, vendorStoreID string, isAsync, isContinueWhenError bool) (hint string, err error) {
|
||||||
|
|||||||
Reference in New Issue
Block a user