This commit is contained in:
苏尹岚
2021-01-19 14:21:20 +08:00
parent bb2fab1ef3
commit c2417f70aa
4 changed files with 40 additions and 1 deletions

View File

@@ -3392,7 +3392,12 @@ func CleanStoreIsBoughtMatter(ctx *jxcontext.Context) (err error) {
}
func InsertStoreCategories(ctx *jxcontext.Context, db *dao.DaoDB, storeID int) (err error) {
err = dao.InsertStoreCategories(db, ctx.GetUserName(), storeID)
if db == nil {
db = dao.GetDB()
}
if err = dao.DeleteStoreCategroies2(db, storeID); err == nil {
err = dao.InsertStoreCategories(db, ctx.GetUserName(), storeID)
}
return err
}