This commit is contained in:
邹宗楠
2023-09-22 16:46:39 +08:00
parent 725496ec95
commit 8874f336e8
2 changed files with 4 additions and 3 deletions

View File

@@ -16,7 +16,7 @@ import (
)
// CopyOnStoreSkuToOther 将一个美团门店分类和商品复制到另一个门店
func CopyOnStoreSkuToOther(ctx *jxcontext.Context, fromVendorStoreId, toStoreId int, isAsync bool) (hint string, err error) {
func CopyOnStoreSkuToOther(ctx *jxcontext.Context, fromVendorStoreId, toStoreId int, isAsync bool, offSet int) (hint string, err error) {
var (
db = dao.GetDB()
)
@@ -76,7 +76,7 @@ func CopyOnStoreSkuToOther(ctx *jxcontext.Context, fromVendorStoreId, toStoreId
//}
case 3:
i := 3
i := offSet
for {
// 同步商品
fromFoodList, err1 := fromApi.RetailListAll(utils.Int2Str(fromVendorStoreId), i)