This commit is contained in:
苏尹岚
2021-01-29 14:42:41 +08:00
parent 0e5c9e80bb
commit 353670289a

View File

@@ -274,7 +274,9 @@ func SyncReorderCategories2(ctx *jxcontext.Context, parentCatID, vendorID int, v
}
}
thingMaps, _ := dao.GetThingMapList(db, model.ThingTypeCategory, []int{vendorID}, []int{parentCatID}, []string{vendorOrgCode})
parentVendorCatID = thingMaps[0].VendorThingID
if len(thingMaps) > 0 {
parentVendorCatID = thingMaps[0].VendorThingID
}
if len(vendorCatIDList) > 0 {
err = multiStoresHandler.ReorderCategories2(ctx, vendorOrgCode, parentVendorCatID, vendorCatIDList)