Commit 6692689f authored by nie'hong's avatar nie'hong

限制用户账号管理员数量

parent 2041487a
...@@ -451,7 +451,6 @@ public class TUserController extends BaseController { ...@@ -451,7 +451,6 @@ public class TUserController extends BaseController {
QueryWrapper<TUserRole> userRoleWrapper = new QueryWrapper<>(); QueryWrapper<TUserRole> userRoleWrapper = new QueryWrapper<>();
userRoleWrapper.eq("user_id", user.getId()); userRoleWrapper.eq("user_id", user.getId());
boolean remove = tUserRoleService.remove(userRoleWrapper); boolean remove = tUserRoleService.remove(userRoleWrapper);
ArrayList<TUserRole> list1 = new ArrayList<>(); ArrayList<TUserRole> list1 = new ArrayList<>();
for (String r : list) { for (String r : list) {
TUserRole userRole = new TUserRole(); TUserRole userRole = new TUserRole();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment