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 {
|
if len(brandUsers) == 0 {
|
||||||
return fmt.Errorf("此用户没有绑定该品牌!")
|
return fmt.Errorf("此用户没有绑定该品牌!")
|
||||||
}
|
}
|
||||||
brandUsers[0].DeletedAt = time.Now()
|
brandUser := brandUsers[0].BrandUser
|
||||||
dao.UpdateEntity(db, brandUsers[0], "DeletedAt")
|
brandUser.DeletedAt = time.Now()
|
||||||
|
dao.UpdateEntity(db, brandUser, "DeletedAt")
|
||||||
}
|
}
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user