Subversion Repositories SmartDukaan

Rev

Rev 23884 | Rev 23914 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 23884 Rev 23886
Line 241... Line 241...
241
		return "schemes-download";
241
		return "schemes-download";
242
	}
242
	}
243
 
243
 
244
	@RequestMapping(value = "/schemes/download", method = RequestMethod.GET)
244
	@RequestMapping(value = "/schemes/download", method = RequestMethod.GET)
245
	public ResponseEntity<?> downloadInventoryItemAgingByInterval(HttpServletRequest request,
245
	public ResponseEntity<?> downloadInventoryItemAgingByInterval(HttpServletRequest request,
246
			@RequestParam(name = ProfitMandiConstants.START_DATE_TIME) String startDateTimeString,
246
			@RequestParam LocalDateTime startDateTime,
247
			@RequestParam(name = ProfitMandiConstants.END_DATE_TIME) String endDateTimeString, Model model)
247
			@RequestParam LocalDateTime endDateTime, Model model)
248
			throws ProfitMandiBusinessException {
248
			throws ProfitMandiBusinessException {
249
		LocalDateTime startDateTime = StringUtils.toDateTime(startDateTimeString,
-
 
250
				DateTimePattern.DD_MM_YYYY);
-
 
251
		LocalDateTime endDateTime = StringUtils.toDateTime(endDateTimeString, DateTimePattern.DD_MM_YYYY);
-
 
252
 
-
 
253
		List<SchemeModel> schemeModels = schemeService.getAllSchemeModels(startDateTime, endDateTime);
249
		List<SchemeModel> schemeModels = schemeService.getAllSchemeModels(startDateTime, endDateTime);
254
 
250
 
255
		ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream();
251
		ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream();
256
		ExcelUtils.writeSchemeModels(schemeModels, byteArrayOutputStream);
252
		ExcelUtils.writeSchemeModels(schemeModels, byteArrayOutputStream);
257
 
253