/**
   * 修复提交审批
   *
   * @param request
   * @param form
   * @return
   * @throws Exception
   */
  public String repairEnd(HttpServletRequest request, ActionForm form) throws Exception {
    String forward = "resultMessage";

    RepairSearchForm searchForm = (RepairSearchForm) form;
    RepairHandleBo rhb = RepairHandleBo.getInstance();
    Long userId = (Long) request.getSession().getAttribute("userId");

    searchForm.setCurrentStatus("F"); // 提交审批
    searchForm.setUpdateBy(userId);
    searchForm.setUpdateDate(new Date());

    try {
      rhb.repairEnd(searchForm);
    } catch (VersionException ve) {
      return "versionErr";
    }
    String tempAttache = request.getParameter("attacheIds");
    if (tempAttache != null && !tempAttache.equals("")) {
      rhb.updateAttacheByAttacheIdsAndSheetNo(
          tempAttache.split(","), searchForm.getRepairNo(), userId);
    }
    request.setAttribute("tag", "1");
    request.setAttribute("businessFlag", "repairEnd");

    return forward;
  }