Exemplo n.º 1
0
  /**
   * 保存内部公告
   *
   * @return
   */
  public String save() {
    LoginInfo info = (LoginInfo) getSession().getAttribute("LOGINUSER");
    String user_id = info.getUser_id();
    xxfbNbgg.setCzr(user_id);

    xxfbNbggService.saveNbgg(xxfbNbgg);
    return "success";
  }
Exemplo n.º 2
0
  /**
   * 保存回复信息
   *
   * @return
   */
  public String saveReplay() {
    try {
      LoginInfo info = (LoginInfo) getSession().getAttribute("LOGINUSER");
      String user_id = info.getUser_id();

      XxfbNbgg xxfbNbgg = new XxfbNbgg();
      xxfbNbgg.setContent(content);
      xxfbNbgg.setCzr(user_id);
      xxfbNbgg.setParent_id(parent_id);
      xxfbNbgg.setPub_date(DateComFunc.getToday());

      xxfbNbggService.saveNbgg(xxfbNbgg);
      content = "";
      return SUCCESS;
    } catch (Exception e) {
      log.error("保存回复信息失败,原因:" + e.getMessage());
      return ERROR;
    }
  }