This commit is contained in:
邹宗楠
2024-02-22 11:28:52 +08:00
parent 87a964b746
commit 3b34e85e70

View File

@@ -177,14 +177,13 @@ func CopyMtToMT(ctx *jxcontext.Context, fromStore, toStore *dao.StoreDetail, isA
step := batchItemList[0].(int) step := batchItemList[0].(int)
switch step { switch step {
case 1: case 1:
// 同步分类 // 同步分类
fromCategoryList, err := fromApi.RetailCatList(fromStore.VendorStoreID) fromCategoryList, err := fromApi.RetailCatList(fromStore.VendorStoreID)
if len(fromCategoryList) == model.NO { if len(fromCategoryList) == model.NO {
return nil, err return nil, err
} }
toCategoryList, err := toApi.RetailCatList(toStore.VendorStoreID) toCategoryList, err := toApi.RetailCatList(toStore.VendorStoreID)
if len(toCategoryList) == model.NO { if err != nil {
return nil, err return nil, err
} }
if len(fromCategoryList) != len(toCategoryList) { if len(fromCategoryList) != len(toCategoryList) {