public int getConsumeRecordSum(int userId, String startDate, String endDate, String consumeType) {
    // TODO Auto-generated method stub
    Date sdate =
        StringTool.isEmpty(startDate) ? null : DateFormatUtil.stringToDate(startDate, "yyyy-MM-dd");
    Date edate =
        StringTool.isEmpty(endDate) ? null : DateFormatUtil.stringToDate(endDate, "yyyy-MM-dd");

    return dao.getConsumeRecordSum(userId, sdate, edate, consumeType);
  }
  public List<ConsumeItem> getConsumeRecords(
      int userId,
      String startDate,
      String endDate,
      int pageStart,
      int pageCount,
      String consumeType) {
    // TODO Auto-generated method stub
    Date sdate =
        StringTool.isEmpty(startDate) ? null : DateFormatUtil.stringToDate(startDate, "yyyy-MM-dd");
    Date edate =
        StringTool.isEmpty(endDate) ? null : DateFormatUtil.stringToDate(endDate, "yyyy-MM-dd");

    return dao.getConsumeRecords(userId, sdate, edate, pageStart, pageCount, consumeType);
  }
  @Override
  public DataGrid<ConsumeItem> getConsumeRecord(
      String userId,
      String startDate,
      String endDate,
      int pageStart,
      int pageCount,
      String consumeType) {
    // TODO Auto-generated method stub
    Date sdate =
        StringTool.isEmpty(startDate) ? null : DateFormatUtil.stringToDate(startDate, "yyyy-MM-dd");
    Date edate =
        StringTool.isEmpty(endDate) ? null : DateFormatUtil.stringToDate(endDate, "yyyy-MM-dd");

    try {
      return dao.getConsumeRecord(userId, sdate, edate, pageStart, pageCount, consumeType);
    } catch (Exception e) {
      // TODO: handle exception
      e.printStackTrace();
      return new DataGrid<>();
    }
  }