1
This commit is contained in:
@@ -82,12 +82,9 @@ func CopyOnStoreSkuToOther(ctx *jxcontext.Context, fromVendorStoreId, toStoreId
|
|||||||
// 同步商品
|
// 同步商品
|
||||||
fromFoodList, err1 := fromApi.RetailListAll(utils.Int2Str(fromVendorStoreId), i)
|
fromFoodList, err1 := fromApi.RetailListAll(utils.Int2Str(fromVendorStoreId), i)
|
||||||
if len(fromFoodList) == 0 || fromFoodList == nil {
|
if len(fromFoodList) == 0 || fromFoodList == nil {
|
||||||
return nil, fmt.Errorf("fromFoodList 为空")
|
return nil, fmt.Errorf("fromFoodList 为空 %s ,i:= %d", utils.Format4Output(err1, false), i)
|
||||||
}
|
|
||||||
globals.SugarLogger.Debugf("RetailListAll : %s", utils.Format4Output(len(fromFoodList), false))
|
|
||||||
if err1 != nil {
|
|
||||||
globals.SugarLogger.Debugf("RetailListAll : %s", utils.Format4Output(err, false))
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if err := BatchInitData(ctx, fromFoodList, toApi, toStore.VendorStoreID); err != nil {
|
if err := BatchInitData(ctx, fromFoodList, toApi, toStore.VendorStoreID); err != nil {
|
||||||
globals.SugarLogger.Debugf("BatchInitData : %s", utils.Format4Output(err, false))
|
globals.SugarLogger.Debugf("BatchInitData : %s", utils.Format4Output(err, false))
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user