Exemplo n.º 1
0
  /**
   * Báo cáo đã sửa xong
   *
   * @param modelLog
   * @return
   * @throws Exception
   */
  @RequestMapping(value = "/successedit", method = RequestMethod.POST)
  @ResponseBody
  public Response successedit(@RequestBody ModelLog modelLog) throws Exception {

    String idUser = viewer.getAdministrator().getId();
    try {
      modelService.submitEdit(modelLog.getModelId(), idUser, modelLog.getMessage());
    } catch (Exception e) {
      return new Response(false, e.getMessage());
    }

    return new Response(true, "Báo cáo sửa hoàn tất");
  }