Merge branch 'jdshop' of https://e.coding.net/rosydev/jx-callback into jdshop
This commit is contained in:
@@ -379,19 +379,9 @@ func ReorderCategories(ctx *jxcontext.Context, parentID int, categoryIDs []int,
|
|||||||
}
|
}
|
||||||
dao.Commit(db, txDB)
|
dao.Commit(db, txDB)
|
||||||
// 同步平台分类排序
|
// 同步平台分类排序
|
||||||
if _, err := CurVendorSync.SyncReorderCategories(ctx, db, parentID, false, userName); err != nil {
|
SetStoreCategorySyncStatus2(db, nil, categoryIDs, model.SyncFlagModifiedMask)
|
||||||
return err
|
|
||||||
}
|
|
||||||
|
|
||||||
// 只排序,不创建分类
|
// 只排序,不创建分类
|
||||||
if onlySort == model.YES {
|
_, err = CurVendorSync.SyncReorderCategories(ctx, db, parentID, false, userName)
|
||||||
return nil
|
|
||||||
}
|
|
||||||
|
|
||||||
if _, err = SetStoreCategorySyncStatus2(db, nil, categoryIDs, model.SyncFlagModifiedMask); err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
|
|
||||||
// 同步门店分类
|
// 同步门店分类
|
||||||
CurVendorSync.SyncStoresCategory(ctx, db, nil, nil, false, true, true)
|
CurVendorSync.SyncStoresCategory(ctx, db, nil, nil, false, true, true)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user