Subversion Repositories SmartDukaan

Rev

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

Rev 23928 Rev 24406
Line 327... Line 327...
327
	public ResponseEntity<?> downloadInventoryItemAgingByInterval(HttpServletRequest request,
327
	public ResponseEntity<?> downloadInventoryItemAgingByInterval(HttpServletRequest request,
328
			@RequestParam(name = ProfitMandiConstants.START_DATE_TIME) String startDateTimeString,
328
			@RequestParam(name = ProfitMandiConstants.START_DATE_TIME) String startDateTimeString,
329
			@RequestParam(name = ProfitMandiConstants.END_DATE_TIME) String endDateTimeString, Model model)
329
			@RequestParam(name = ProfitMandiConstants.END_DATE_TIME) String endDateTimeString, Model model)
330
			throws ProfitMandiBusinessException {
330
			throws ProfitMandiBusinessException {
331
		LocalDateTime startDateTime = StringUtils.toDateTime(startDateTimeString,
331
		LocalDateTime startDateTime = StringUtils.toDateTime(startDateTimeString,
332
				DateTimePattern.DD_MM_YYYY_T_HH_MM_SS);
332
				DateTimePattern.DD_MM_yyyy_T_HH_MM_SS);
333
		LocalDateTime endDateTime = StringUtils.toDateTime(endDateTimeString, DateTimePattern.DD_MM_YYYY_T_HH_MM_SS);
333
		LocalDateTime endDateTime = StringUtils.toDateTime(endDateTimeString, DateTimePattern.DD_MM_yyyy_T_HH_MM_SS);
334
 
334
 
335
		List<SchemeModel> schemeModels = schemeService.getAllSchemeModels(startDateTime, endDateTime);
335
		List<SchemeModel> schemeModels = schemeService.getAllSchemeModels(startDateTime, endDateTime);
336
 
336
 
337
		ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream();
337
		ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream();
338
		ExcelUtils.writeSchemeModels(schemeModels, byteArrayOutputStream);
338
		ExcelUtils.writeSchemeModels(schemeModels, byteArrayOutputStream);