This commit is contained in:
suyl
2021-09-14 10:00:42 +08:00
parent 1253662200
commit c14632ebf6
4 changed files with 61 additions and 0 deletions

View File

@@ -5428,3 +5428,13 @@ func ReorderBrandCategories(ctx *jxcontext.Context, parentID, brandID int, categ
}
return err
}
func InsertBrandCategories(ctx *jxcontext.Context, brandID int) (err error) {
var (
db = dao.GetDB()
)
if err = dao.DeleteBrandCategroies2(db, brandID); err == nil {
err = dao.InsertBrandCategories(db, ctx.GetUserName(), brandID)
}
return err
}