| 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);
|