This commit is contained in:
苏尹岚
2021-03-09 18:01:11 +08:00
parent f298706e06
commit 89d722c729
3 changed files with 12 additions and 9 deletions

View File

@@ -2977,5 +2977,8 @@ func LoadStoreVendorCategories(ctx *jxcontext.Context, vendorOrgCode string, ven
OnCreateThing(ctx, db, vendorOrgCodes, int64(v.CategoryID), model.ThingTypeCategory, model.SyncFlagNewMask, true)
}
}
if _, err = SyncCategories(ctx, nil, []int{vendorID}, []string{vendorOrgCode}, nil, false); err == nil {
SyncReorderCategories2(ctx, 0, vendorID, vendorOrgCode)
}
return err
}