摘要:/*//删除用户角色关系表无效 数据(careful:just execute once)List<User> tempUsers = this.userDao.getUsers();List<UserRole> tempUserRoles = this.userRoleManager.getAll();for (UserRole duserRole : tempUserRoles) {if(duserRole!=null){boolean existRelationship = false;//check Whether the user_role's use
阅读全文
05 2012 档案
摘要:@Override@Transactional //注解事务public boolean disabledUser(User user) {user.setEnabled(false);// 禁用账户saveUserInfo(user);//删除岗位用户关联表相关关系(还没有删除禁用账户的角色关系)this.userGroupManager.deleteByUserId(""+user.getId());//System.out.println("remove current User_Group relationship:UserId="+user.g
阅读全文