Subversion Repositories SmartDukaan

Rev

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

Rev 33436 Rev 33454
Line 1386... Line 1386...
1386
        headers.setContentLength(baos.toByteArray().length);
1386
        headers.setContentLength(baos.toByteArray().length);
1387
 
1387
 
1388
        final InputStream inputStream = new ByteArrayInputStream(baos.toByteArray());
1388
        final InputStream inputStream = new ByteArrayInputStream(baos.toByteArray());
1389
        final InputStreamResource inputStreamResource = new InputStreamResource(inputStream);
1389
        final InputStreamResource inputStreamResource = new InputStreamResource(inputStream);
1390
 
1390
 
1391
        return new ResponseEntity<InputStreamResource>(inputStreamResource, headers, HttpStatus.OK);
1391
        return new ResponseEntity<>(inputStreamResource, headers, HttpStatus.OK);
1392
    }
1392
    }
1393
 
1393
 
1394
    @Override
1394
    @Override
1395
    public Map<String, Object> getSaleHistoryPaginated(int fofoId, SearchType searchType, String searchValue, LocalDateTime startDate, LocalDateTime endDate, int offset, int limit) throws ProfitMandiBusinessException {
1395
    public Map<String, Object> getSaleHistoryPaginated(int fofoId, SearchType searchType, String searchValue, LocalDateTime startDate, LocalDateTime endDate, int offset, int limit) throws ProfitMandiBusinessException {
1396
        List<FofoOrder> fofoOrders = new ArrayList<>();
1396
        List<FofoOrder> fofoOrders = new ArrayList<>();