This commit is contained in:
suyl
2021-09-26 11:08:05 +08:00
parent f97eea31e0
commit 2591d0c111

View File

@@ -5167,8 +5167,9 @@ func UpdateBrandUser(ctx *jxcontext.Context, brandID int, userID string, isDel b
if len(brandUsers) == 0 {
return fmt.Errorf("此用户没有绑定该品牌!")
}
brandUsers[0].DeletedAt = time.Now()
dao.UpdateEntity(db, brandUsers[0], "DeletedAt")
brandUser := brandUsers[0].BrandUser
brandUser.DeletedAt = time.Now()
dao.UpdateEntity(db, brandUser, "DeletedAt")
}
return err
}