aa
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user