/** * getReportByIdFromDateToDate(-,-,-) method takes employeeId , fromDate, toDate as a inputs and * display the working details of an employee during given period of time. */ @RequestMapping(value = "/getReportByIdFromDateToDate", method = RequestMethod.GET) public @ResponseBody String getReportByIdFromDateToDate( @RequestParam("employeeId") int employeeId, @RequestParam("fromDate") String fromDate, @RequestParam("toDate") String toDate) { logger.info("inside ReportGenerationController getReportByIdFromDateToDate()"); return reportGenerationService.getEmployeeWorkingDetailsByDates( employeeId, new Date(Long.valueOf(fromDate)), new Date(Long.valueOf(toDate))); }