| Line 245... |
Line 245... |
| 245 |
public ResponseEntity<?> downloadInventoryItemAgingByInterval(HttpServletRequest request,
|
245 |
public ResponseEntity<?> downloadInventoryItemAgingByInterval(HttpServletRequest request,
|
| 246 |
@RequestParam(name = ProfitMandiConstants.START_DATE_TIME) String startDateTimeString,
|
246 |
@RequestParam(name = ProfitMandiConstants.START_DATE_TIME) String startDateTimeString,
|
| 247 |
@RequestParam(name = ProfitMandiConstants.END_DATE_TIME) String endDateTimeString, Model model)
|
247 |
@RequestParam(name = ProfitMandiConstants.END_DATE_TIME) String endDateTimeString, Model model)
|
| 248 |
throws ProfitMandiBusinessException {
|
248 |
throws ProfitMandiBusinessException {
|
| 249 |
LocalDateTime startDateTime = StringUtils.toDateTime(startDateTimeString,
|
249 |
LocalDateTime startDateTime = StringUtils.toDateTime(startDateTimeString,
|
| 250 |
DateTimePattern.DD_MM_YYYY_T_HH_MM_SS);
|
250 |
DateTimePattern.DD_MM_YYYY);
|
| 251 |
LocalDateTime endDateTime = StringUtils.toDateTime(endDateTimeString, DateTimePattern.DD_MM_YYYY_T_HH_MM_SS);
|
251 |
LocalDateTime endDateTime = StringUtils.toDateTime(endDateTimeString, DateTimePattern.DD_MM_YYYY);
|
| 252 |
|
252 |
|
| 253 |
List<SchemeModel> schemeModels = schemeService.getAllSchemeModels(startDateTime, endDateTime);
|
253 |
List<SchemeModel> schemeModels = schemeService.getAllSchemeModels(startDateTime, endDateTime);
|
| 254 |
|
254 |
|
| 255 |
ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream();
|
255 |
ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream();
|
| 256 |
ExcelUtils.writeSchemeModels(schemeModels, byteArrayOutputStream);
|
256 |
ExcelUtils.writeSchemeModels(schemeModels, byteArrayOutputStream);
|