1
This commit is contained in:
@@ -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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user