/** 查看 */ public String view() { List<Attachment> attachments = attachmentManager.findAllBy("refId", this.message.getId()); getRequest().setAttribute("attachments", attachments); String rs = this.message.getReceiver(); String username = this.getCurrUser().getUserName(); if (rs.equals(username)) { this.message.setState("1"); if (message.getChackTime() == null) { this.message.setChackTime(new Date()); } this.messageManager.update(this.message); } return VIEW_JSP; }