/**
   * 获取报销记录
   *
   * @return
   */
  @RequestMapping(
      value = "getExpenseRecord",
      method = {RequestMethod.GET, RequestMethod.POST})
  public @ResponseBody Object getExpenseRecord(HttpServletRequest request) {

    ResponseResult responseResult = new ResponseResult();
    try {
      // 获取请假申请信息
      String operationType = HttpRequestUtil.getInst().getString("operationType");
      if (StringUtils.isEmpty(operationType)) {
        responseResult.setStatus(-1);
        responseResult.setErrorMsg("参数operationType不能为空!");
        throw new VyiyunException("无效的operationType值!");
      }
      int pageIndex = -1;
      int pageSize = -1;
      String sPageIndex = HttpRequestUtil.getInst().getString("pageIndex");
      String sPageSize = HttpRequestUtil.getInst().getString("pageSize");
      if (StringUtils.isNotEmpty(sPageIndex) && sPageIndex.matches("\\d+")) {
        pageIndex = Integer.parseInt(sPageIndex);
      }
      if (StringUtils.isNotEmpty(sPageSize) && sPageSize.matches("\\d+")) {
        pageSize = Integer.parseInt(sPageSize);
      }
      Expense expense = new Expense();
      expense.setUserId(HttpRequestUtil.getInst().getCurrentWeixinUser().getUserid());
      Map<String, Object> params = new HashMap<String, Object>();
      params.put("orderBy", "CreateTime desc");
      params.put("operationType", operationType);
      responseResult.setValue(
          expenseService.queryExpenseRecord(expense, params, pageIndex, pageSize).getData());
    } catch (Exception e) {
      LOGGER.debug("获取数据失败", e);
      responseResult.setStatus(-1);
      if (e instanceof VyiyunException) {
        responseResult.setErrorMsg(e.getMessage());
      } else {
        responseResult.setErrorMsg("获取数据记录失败,请联系统管理员!");
      }
    }
    return responseResult;
  }