/// <summary>改变用户的用户组</summary> /// <param name="sourceGroupId"></param> /// <param name="targetGroupId"></param> public static void ChangeAllUserGroupId(int sourceGroupId, int targetGroupId) { //BBX.Data.UserGroups.ChangeAllUserGroupId(sourceGroupId, targetGroupId); var list = User.FindAllWithCache(User._.GroupID, sourceGroupId); list.SetItem(User._.GroupID, targetGroupId); list.Save(); }