/** * 查询 应用系统权限分配记录 RAR (RoleAssignRecords 简写) * * @param mapping * @param form * @param request * @param response * @return * @throws IOException */ public ActionForward getRARInfo( ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws IOException { RARForm appSysInfoForm = (RARForm) form; String asid = request.getParameter("asid"); if (HtmlFactory.isNotEmpty(asid)) { PMPage page = HtmlFactory.getPage(request); StringBuffer sbf = new StringBuffer(); String user[][] = { {"id", "getId"}, {"username", "getUser"}, {"ctime", "getCreateTime"}, {"operator", "getOperator"} }; String security[][] = {{"roleid", "getId"}, {"rolename", "getName"}}; AppSysInfo asi = new AppSysInfo(); asi.setId(Integer.valueOf(asid)); appSysInfoForm.getRar().setAppSys(asi); List<RoleAssignRecords> list = roleAssignRecordsService.findConditionsInfo( appSysInfoForm.getRar(), page, appSysInfoForm.getCreateStartDate(), appSysInfoForm.getCreateEndDate()); for (RoleAssignRecords rar : list) { Object objs[][] = {{rar, user}, {rar.getRole(), security}}; HtmlFactory.getDataArray(objs, sbf, "RAR"); } HtmlFactory.getDataArray(page.getPageInfo(), sbf, "PAGE"); HtmlFactory.flushData(response, sbf); } return null; }