コード例 #1
0
ファイル: SysRoleAction.java プロジェクト: shenzeyu/3dweb
 public String roleAnduserList() {
   try {
     this.userRolelist = this.sysRoleService.select(null);
     if (this.userRolelist != null) {
       for (int i = 0; i < this.userRolelist.size(); i++) {
         SysRole role = new SysRole();
         List<SysUser> userlist = new ArrayList();
         role = (SysRole) this.userRolelist.get(i);
         userlist = this.sysUserService.getsysuerList(role.getId());
         role.setUserlist(userlist);
       }
     }
   } catch (Exception e) {
     e.printStackTrace();
   }
   return "list_role_user";
 }