/** 查询未读列表 */ public String list() { BeanUtils.copyProperties(reQuery, query); if (this.getRequest().getParameter("query.state") == null) { query.setState("0"); } query.setStatus("1"); query.setReceiverId(this.getCurrUser().getUserID()); // 接收人id Page page = this.messageManager.findPage(query); super.saveCurrentPage(page, query); return LIST_JSP; }
/** * 去分配组织机构页面 * * @return */ public String toGrantOrganizPage() { OrganizationQuery orgQuery = new OrganizationQuery(); BeanUtils.copyProperties(orgQuery, query); orgQuery.setDf("0"); orgQuery.setPageSize(Integer.MAX_VALUE); Page page = organizationManager.findPage(orgQuery); List<Organization> l = page.getResult(); String selectIds = this.partition.getOrgIds(); for (Organization org : l) { if (StrUtil.isNotNullOrBlank(selectIds)) { if (selectIds.indexOf(org.getId()) != -1) { org.setChecked("checked"); } } } this.saveCurrentPage(page, query); return GRANT_ORGANIZ_JSP; }
public <T> T copyProperties(Class<T> destClass, Object orig) { return BeanUtils.copyProperties(destClass, orig); }
public void copyProperties(Object target, Object source) { BeanUtils.copyProperties(target, source); }