This commit is contained in:
邹宗楠
2022-05-28 11:30:15 +08:00
parent 700b5c39e4
commit b673ac24c4
4 changed files with 26 additions and 7 deletions

View File

@@ -365,11 +365,16 @@ func ReorderCategories(ctx *jxcontext.Context, parentID int, categoryIDs []int,
}
}
dao.Commit(db, txDB)
SetStoreCategorySyncStatus2(db, nil, categoryIDs, model.SyncFlagModifiedMask)
if err == nil {
_, err = CurVendorSync.SyncReorderCategories(ctx, db, parentID, false, userName)
CurVendorSync.SyncStoresCategory(ctx, db, nil, nil, false, true, true)
if _, err = SetStoreCategorySyncStatus2(db, nil, categoryIDs, model.SyncFlagModifiedMask); err != nil {
return err
}
// 同步平台分类排序
if _, err := CurVendorSync.SyncReorderCategories(ctx, db, parentID, false, userName) ;err!= nil {
return err
}
// 同步门店分类
CurVendorSync.SyncStoresCategory(ctx, db, nil, nil, false, true, true)
}
return err
}