Subversion Repositories SmartDukaan

Rev

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

Rev 33091 Rev 33092
Line 1362... Line 1362...
1362
 
1362
 
1363
        model.addAttribute("isAdmin", isAdmin);
1363
        model.addAttribute("isAdmin", isAdmin);
1364
        return "online-order-item";
1364
        return "online-order-item";
1365
    }
1365
    }
1366
 
1366
 
-
 
1367
 
1367
    @RequestMapping(value = "/franchiseeSalesReport", method = RequestMethod.GET)
1368
    @RequestMapping(value = "/franchiseeSalesReport", method = RequestMethod.GET)
1368
    public String getFranchiseeSalesReport(HttpServletRequest request, Model model)
1369
    public String getFranchiseeSalesReport(HttpServletRequest request, Model model, @RequestParam(defaultValue = "0") int fofoId,
-
 
1370
                                           @RequestParam(required = false) LocalDate startDate, @RequestParam(required = false) LocalDate endDate)
1369
            throws ProfitMandiBusinessException {
1371
            throws ProfitMandiBusinessException {
1370
        LoginDetails fofoDetails = cookiesProcessor.getCookiesObject(request);
1372
        LoginDetails loginDetails = cookiesProcessor.getCookiesObject(request);
-
 
1373
        boolean isAdmin = roleManager.isAdmin(loginDetails.getRoleIds());
-
 
1374
        if (startDate == null) {
-
 
1375
            startDate = LocalDate.now().minusDays(30);
1371
 
1376
 
-
 
1377
        }
1372
        LocalDateTime currentDate = LocalDate.now().atStartOfDay();
1378
        endDate = LocalDate.now();
-
 
1379
        model.addAttribute("startDate", startDate);
-
 
1380
        model.addAttribute("endDate", endDate);
-
 
1381
        model.addAttribute("isAdmin", isAdmin);
1373
        LocalDateTime currentStartMonth = currentDate.minusDays(30).toLocalDate().atStartOfDay();
1382
        LOGGER.info("q {}, starDate - {}, endDate - {}", fofoId, startDate, endDate);
-
 
1383
        if (isAdmin) {
-
 
1384
            if (fofoId == 0) {
-
 
1385
                //No need to pull any data
1374
        FofoStore fs = fofoStoreRepository.selectByRetailerId(fofoDetails.getFofoId());
1386
                model.addAttribute("focoSaleReportList", new ArrayList<>());
-
 
1387
                return "foco-sale-report";
1375
 
1388
 
-
 
1389
            }
1376
        List<FocoSaleReportModel> focoSaleReportList = fofoOrderRepository.selectFocoSaleReport(fofoDetails.getFofoId(),
1390
        } else {
1377
                fs.getCode(), currentStartMonth, currentDate);
1391
            fofoId = loginDetails.getFofoId();
-
 
1392
        }
1378
 
1393
 
1379
        LOGGER.info("focoSaleReportList {}", focoSaleReportList);
-
 
1380
 
1394
 
1381
        model.addAttribute("startDate", currentDate.minusDays(30).toLocalDate());
1395
        FofoStore fs = fofoStoreRepository.selectByRetailerId(fofoId);
-
 
1396
 
1382
        model.addAttribute("endDate", LocalDate.now());
1397
        List<FocoSaleReportModel> focoSaleReportList = fofoOrderRepository.selectFocoSaleReport(fofoId, fs.getCode(), startDate.atStartOfDay(), endDate.atTime(LocalTime.MAX));
1383
        model.addAttribute("focoSaleReportList", focoSaleReportList);
1398
        model.addAttribute("focoSaleReportList", focoSaleReportList);
1384
        return "foco-sale-report";
1399
        return "foco-sale-report";
1385
    }
1400
    }
-
 
1401
 
1386
    @RequestMapping(value = "/franchiseeSalesFetchReportByDate", method = RequestMethod.GET)
1402
    @RequestMapping(value = "/franchiseeSalesFetchReportByDate", method = RequestMethod.GET)
1387
    public String getfranchiseeSalesFetchReport(HttpServletRequest request,
1403
    public String getfranchiseeSalesFetchReport(HttpServletRequest request, Model model,
-
 
1404
                                                @RequestParam(defaultValue = "0") int fofoId,
1388
                                                  @RequestParam(name = "startDate", required = true, defaultValue = "") LocalDate startDate,
1405
                                                @RequestParam(required = false) LocalDate startDate,
1389
                                                  @RequestParam(name = "endDate", required = true, defaultValue = "") LocalDate endDate, Model model)
1406
                                                @RequestParam(required = false) LocalDate endDate)
1390
            throws Exception {
1407
            throws Exception {
1391
        LoginDetails fofoDetails = cookiesProcessor.getCookiesObject(request);
1408
        LoginDetails loginDetails = cookiesProcessor.getCookiesObject(request);
-
 
1409
        boolean isAdmin = roleManager.isAdmin(loginDetails.getRoleIds());
-
 
1410
        if (startDate == null) {
1392
 
1411
 
1393
        List<List<?>> rows = new ArrayList<>();
1412
            startDate = LocalDate.now().minusDays(30);
-
 
1413
            endDate = LocalDate.now();
-
 
1414
        }
-
 
1415
        model.addAttribute("startDate",startDate);
-
 
1416
        model.addAttribute("endDate", endDate);
-
 
1417
        model.addAttribute("isAdmin", isAdmin);
1394
 
1418
 
1395
        LocalDateTime currentDate = LocalDate.now().atStartOfDay();
-
 
1396
        FofoStore fs = fofoStoreRepository.selectByRetailerId(fofoDetails.getFofoId());
-
 
1397
        List<FocoSaleReportModel> focoSaleReportList = fofoOrderRepository.selectFocoSaleReport(fofoDetails.getFofoId(),
-
 
1398
                fs.getCode(), startDate.atStartOfDay(), endDate.atStartOfDay());
-
 
1399
        LOGGER.info("focoSaleReportList {}", focoSaleReportList);
1419
        // List<List<?>> rows = new ArrayList<>();
1400
 
1420
 
-
 
1421
        LOGGER.info("q {}, starDate - {}, endDate - {}", fofoId, startDate, endDate);
-
 
1422
        if (isAdmin) {
-
 
1423
            if (fofoId == 0) {
-
 
1424
                //no need any data
1401
        model.addAttribute("startDate",startDate);
1425
                model.addAttribute("focoSaleReportList", new ArrayList<>());
1402
        model.addAttribute("endDate", LocalDate.now());
1426
                return "foco-sale-report";
-
 
1427
            }
-
 
1428
        } else {
-
 
1429
            fofoId = loginDetails.getFofoId();
-
 
1430
        }
-
 
1431
        FofoStore fs = fofoStoreRepository.selectByRetailerId(fofoId);
-
 
1432
        List<FocoSaleReportModel> focoSaleReportList = fofoOrderRepository.selectFocoSaleReport(fofoId, fs.getCode(), startDate.atStartOfDay(), endDate.atTime(LocalTime.MAX));
1403
        model.addAttribute("focoSaleReportList", focoSaleReportList);
1433
        model.addAttribute("focoSaleReportList", focoSaleReportList);
1404
        return "foco-sale-report";
1434
        return "foco-sale-report";
1405
    }
1435
    }
1406
 
1436
 
1407
 
1437
 
Line 1480... Line 1510...
1480
 
1510
 
1481
        return responseEntity;
1511
        return responseEntity;
1482
 
1512
 
1483
    }
1513
    }
1484
    @RequestMapping(value = "/walletSummaryFetchReportByDate", method = RequestMethod.GET)
1514
    @RequestMapping(value = "/walletSummaryFetchReportByDate", method = RequestMethod.GET)
1485
    public String getwalletSummaryFetchReport(HttpServletRequest request,
1515
    public String getwalletSummaryFetchReport(HttpServletRequest request, Model model, @RequestParam(defaultValue = "0") int fofoId,
1486
                                             @RequestParam(name = "startDate", required = true, defaultValue = "") LocalDate startDate,
1516
                                              @RequestParam(required = false) LocalDate startDate,
1487
                                             @RequestParam(name = "endDate", required = true, defaultValue = "") LocalDate endDate, Model model)
1517
                                              @RequestParam(required = false) LocalDate endDate)
1488
            throws Exception {
1518
            throws Exception {
1489
        LoginDetails fofoDetails = cookiesProcessor.getCookiesObject(request);
1519
        LoginDetails loginDetails = cookiesProcessor.getCookiesObject(request);
-
 
1520
        boolean isAdmin = roleManager.isAdmin(loginDetails.getRoleIds());
-
 
1521
        if (startDate == null) {
-
 
1522
            startDate = LocalDate.now().minusDays(30);
-
 
1523
        }
-
 
1524
        endDate = LocalDate.now();
-
 
1525
        model.addAttribute("startDate", startDate);
-
 
1526
        model.addAttribute("endDate", endDate);
-
 
1527
        model.addAttribute("isAdmin", isAdmin);
-
 
1528
        if (isAdmin) {
-
 
1529
            if (fofoId == 0) {
-
 
1530
                //No need to send any data
-
 
1531
                model.addAttribute("walletSummartList", new ArrayList<>());
1490
 
1532
 
1491
        List<List<?>> rows = new ArrayList<>();
1533
                return "wallet-summary-report";
-
 
1534
            } else {
-
 
1535
                List<WalletSummaryReportModel> walletSummartList = fofoOrderRepository
-
 
1536
                        .selectWalletSummaryReport(fofoId, startDate.atStartOfDay(), endDate.atTime(LocalTime.MAX));
-
 
1537
                model.addAttribute("walletSummartList", walletSummartList);
1492
 
1538
 
1493
        LocalDateTime currentDate = LocalDate.now().atStartOfDay();
-
 
1494
        List<WalletSummaryReportModel> walletSummaryReports = fofoOrderRepository
1539
                return "wallet-summary-report";
1495
                .selectWalletSummaryReport(fofoDetails.getFofoId(), startDate.atStartOfDay(), endDate.atTime(LocalTime.MAX));
-
 
1496
        LOGGER.info("walletSummaryReports {}", walletSummaryReports);
1540
            }
1497
 
1541
 
1498
        model.addAttribute("startDate",startDate);
1542
        } else {
1499
        model.addAttribute("endDate", LocalDate.now());
-
 
1500
        model.addAttribute("walletSummaryReports", walletSummaryReports);
-
 
1501
 
1543
 
-
 
1544
 
-
 
1545
            FofoStore fs = fofoStoreRepository.selectByRetailerId(fofoId);
-
 
1546
            List<WalletSummaryReportModel> walletSummartList = fofoOrderRepository
-
 
1547
                    .selectWalletSummaryReport(loginDetails.getFofoId(), startDate.atStartOfDay(), endDate.atTime(LocalTime.MAX));
-
 
1548
            //LOGGER.info("walletSummartList {}", walletSummartList);
-
 
1549
 
-
 
1550
            model.addAttribute("walletSummartList", walletSummartList);
-
 
1551
 
1502
        return "wallet-summary-report";
1552
            return "wallet-summary-report";
-
 
1553
        }
1503
    }
1554
    }
1504
 
1555
 
1505
    @RequestMapping(value = "/walletSummaryReport", method = RequestMethod.GET)
1556
    @RequestMapping(value = "/walletSummaryReport", method = RequestMethod.GET)
1506
    public String getWalletSummaryReport(HttpServletRequest request, Model model) throws Exception {
1557
    public String getWalletSummaryReport(HttpServletRequest request, Model model) throws Exception {
1507
        LoginDetails fofoDetails = cookiesProcessor.getCookiesObject(request);
1558
        LoginDetails fofoDetails = cookiesProcessor.getCookiesObject(request);
1508
 
-
 
-
 
1559
        boolean isAdmin = roleManager.isAdmin(fofoDetails.getRoleIds());
1509
        LocalDateTime currentDate = LocalDate.now().atStartOfDay();
1560
        LocalDateTime currentDate = LocalDate.now().atStartOfDay();
1510
        LocalDateTime currentStartMonth = currentDate.minusDays(30).toLocalDate().atStartOfDay();
1561
        LocalDateTime currentStartMonth = currentDate.minusDays(30).toLocalDate().atStartOfDay();
1511
 
1562
 
1512
        List<WalletSummaryReportModel> walletSummartList = fofoOrderRepository
1563
        List<WalletSummaryReportModel> walletSummartList = fofoOrderRepository
1513
                .selectWalletSummaryReport(fofoDetails.getFofoId(), currentStartMonth, currentDate);
1564
                .selectWalletSummaryReport(fofoDetails.getFofoId(), currentStartMonth, currentDate);
1514
        LOGGER.info("walletSummartList {}", walletSummartList);
1565
        LOGGER.info("walletSummartList {}", walletSummartList);
1515
 
1566
 
1516
        model.addAttribute("startDate", currentDate.minusDays(30).toLocalDate());
1567
        model.addAttribute("startDate", currentDate.minusDays(30).toLocalDate());
1517
        model.addAttribute("endDate", LocalDate.now());
1568
        model.addAttribute("endDate", LocalDate.now());
1518
        model.addAttribute("walletSummartList", walletSummartList);
1569
        model.addAttribute("walletSummartList", walletSummartList);
-
 
1570
        model.addAttribute("isAdmin", isAdmin);
1519
 
1571
 
1520
        return "wallet-summary-report";
1572
        return "wallet-summary-report";
1521
    }
1573
    }
1522
 
1574
 
1523
    @RequestMapping(value = "/pendingIndentReport", method = RequestMethod.GET)
1575
    @RequestMapping(value = "/pendingIndentReport", method = RequestMethod.GET)
1524
    public String getPendingIndentReport(HttpServletRequest request, Model model) throws Exception {
1576
    public String getPendingIndentReport(HttpServletRequest request, Model model) throws Exception {
1525
        LoginDetails fofoDetails = cookiesProcessor.getCookiesObject(request);
1577
        LoginDetails fofoDetails = cookiesProcessor.getCookiesObject(request);
-
 
1578
        boolean isAdmin = roleManager.isAdmin(fofoDetails.getRoleIds());
1526
 
1579
 
1527
        LocalDateTime currentDate = LocalDate.now().atStartOfDay();
1580
        LocalDateTime currentDate = LocalDate.now().atStartOfDay();
1528
        LocalDateTime currentStartMonth = currentDate.minusMonths(2).toLocalDate().atStartOfDay();
1581
        LocalDateTime currentStartMonth = currentDate.minusMonths(2).toLocalDate().atStartOfDay();
1529
 
1582
 
1530
        List<PendingIndentReportModel> pendingIndentReports = fofoOrderRepository
1583
        List<PendingIndentReportModel> pendingIndentReports = fofoOrderRepository
Line 1532... Line 1585...
1532
        LOGGER.info("pendingIndentReports {}", pendingIndentReports);
1585
        LOGGER.info("pendingIndentReports {}", pendingIndentReports);
1533
 
1586
 
1534
        model.addAttribute("startDate", currentDate.minusMonths(2).toLocalDate());
1587
        model.addAttribute("startDate", currentDate.minusMonths(2).toLocalDate());
1535
        model.addAttribute("endDate", LocalDate.now());
1588
        model.addAttribute("endDate", LocalDate.now());
1536
        model.addAttribute("pendingIndentReports", pendingIndentReports);
1589
        model.addAttribute("pendingIndentReports", pendingIndentReports);
-
 
1590
        model.addAttribute("isAdmin", isAdmin);
-
 
1591
 
1537
 
1592
 
1538
        return "pending-indent-report";
1593
        return "pending-indent-report";
1539
    }
1594
    }
1540
    @RequestMapping(value = "/pendingIndentFetchReportByDate", method = RequestMethod.GET)
1595
    @RequestMapping(value = "/pendingIndentFetchReportByDate", method = RequestMethod.GET)
1541
    public String getpendingIndentFetchReport(HttpServletRequest request,
1596
    public String getpendingIndentFetchReport(
-
 
1597
            HttpServletRequest request,
-
 
1598
            @RequestParam(defaultValue = "0") int fofoId,
1542
                                             @RequestParam(name = "startDate", required = true, defaultValue = "") LocalDate startDate,
1599
            @RequestParam(name = "startDate", required = true, defaultValue = "") LocalDate startDate,
1543
                                             @RequestParam(name = "endDate", required = true, defaultValue = "") LocalDate endDate, Model model)
1600
            @RequestParam(name = "endDate", required = true, defaultValue = "") LocalDate endDate,
-
 
1601
            Model model
1544
            throws Exception {
1602
    ) throws Exception {
1545
        LoginDetails fofoDetails = cookiesProcessor.getCookiesObject(request);
1603
        LoginDetails fofoDetails = cookiesProcessor.getCookiesObject(request);
-
 
1604
        boolean isAdmin = roleManager.isAdmin(fofoDetails.getRoleIds());
-
 
1605
        if (startDate == null) {
-
 
1606
            startDate = LocalDate.now().minusDays(30);
-
 
1607
            endDate = LocalDate.now();
-
 
1608
        }
-
 
1609
        model.addAttribute("startDate", startDate);
-
 
1610
        model.addAttribute("endDate", endDate);
-
 
1611
        model.addAttribute("isAdmin", isAdmin);
-
 
1612
        if (isAdmin) {
-
 
1613
            if (fofoId == 0) {
-
 
1614
                model.addAttribute("pendingIndentReports", new ArrayList<>());
-
 
1615
                return "pending-indent-report";
-
 
1616
            } else {
-
 
1617
                List<PendingIndentReportModel> pendingIndentReports = fofoOrderRepository
-
 
1618
                        .selectPendingIndentReport(fofoId, startDate.atStartOfDay(), endDate.atTime(LocalTime.MAX));
-
 
1619
                model.addAttribute("pendingIndentReports", pendingIndentReports);
-
 
1620
                return "pending-indent-report";
-
 
1621
            }
-
 
1622
        } else {
-
 
1623
            LocalDateTime currentDate = LocalDate.now().atStartOfDay();
-
 
1624
            List<PendingIndentReportModel> pendingIndentReports = fofoOrderRepository
-
 
1625
                    .selectPendingIndentReport(fofoDetails.getFofoId(), startDate.atStartOfDay(), endDate.atTime(LocalTime.MAX));
-
 
1626
            model.addAttribute("pendingIndentReports", pendingIndentReports);
-
 
1627
            return "pending-indent-report";
1546
 
1628
 
1547
        List<List<?>> rows = new ArrayList<>();
-
 
1548
 
-
 
1549
        LocalDateTime currentDate = LocalDate.now().atStartOfDay();
-
 
1550
        List<PendingIndentReportModel> pendingIndentReports = fofoOrderRepository
-
 
1551
                .selectPendingIndentReport(fofoDetails.getFofoId(), startDate.atStartOfDay(), endDate.atTime(LocalTime.MAX));
-
 
1552
        LOGGER.info("pendingIndentReports {}", pendingIndentReports);
-
 
1553
 
-
 
1554
        model.addAttribute("startDate",startDate);
-
 
1555
        model.addAttribute("endDate", LocalDate.now());
-
 
1556
        model.addAttribute("pendingIndentReports", pendingIndentReports);
-
 
1557
 
-
 
1558
        return "pending-indent-report";
1629
        }
1559
    }
1630
    }
1560
 
1631
 
1561
 
1632
 
1562
    @RequestMapping(value = "/pendingIndentReportDownload", method = RequestMethod.GET)
1633
    @RequestMapping(value = "/pendingIndentReportDownload", method = RequestMethod.GET)
1563
    public ResponseEntity<?> getPendingIndentReportDownload(HttpServletRequest request,
1634
    public ResponseEntity<?> getPendingIndentReportDownload(HttpServletRequest request,
Line 1747... Line 1818...
1747
 
1818
 
1748
        return "partner-billing-summary-report";
1819
        return "partner-billing-summary-report";
1749
    }
1820
    }
1750
 
1821
 
1751
    @RequestMapping(value = "/priceDropReport", method = RequestMethod.GET)
1822
    @RequestMapping(value = "/priceDropReport", method = RequestMethod.GET)
1752
    public String getSelectPriceDropReport(HttpServletRequest request, Model model) throws Exception {
1823
    public String getSelectPriceDropReport(HttpServletRequest request, @RequestParam(name = "startDate", required = true, defaultValue = "") LocalDate startDate,
-
 
1824
                                           @RequestParam(name = "endDate", required = true, defaultValue = "") LocalDate endDate, Model model) throws Exception {
1753
        LoginDetails fofoDetails = cookiesProcessor.getCookiesObject(request);
1825
        LoginDetails fofoDetails = cookiesProcessor.getCookiesObject(request);
1754
 
-
 
-
 
1826
        boolean isAdmin = roleManager.isAdmin(fofoDetails.getRoleIds());
-
 
1827
        if (startDate == null) {
1755
        LocalDateTime currentDate = LocalDate.now().atStartOfDay();
1828
            startDate = LocalDate.now().minusDays(30);
1756
        LocalDateTime currentStartMonth = currentDate.minusMonths(3).toLocalDate().atStartOfDay();
1829
            endDate = LocalDate.now();
1757
 
1830
        }
-
 
1831
        model.addAttribute("startDate", startDate);
-
 
1832
        model.addAttribute("endDate", endDate);
-
 
1833
        model.addAttribute("isAdmin", isAdmin);
1758
        List<PriceDropReportModel> priceDropReports = orderRepository.selectPriceDropReport(fofoDetails.getFofoId(),
1834
        List<PriceDropReportModel> priceDropReports = orderRepository.selectPriceDropReport(fofoDetails.getFofoId(),
1759
                currentStartMonth, currentDate);
-
 
1760
 
-
 
1761
        model.addAttribute("startDate", currentDate.minusMonths(3).toLocalDate());
1835
                startDate.atStartOfDay(), endDate.atTime(LocalTime.MAX));
1762
        model.addAttribute("endDate", LocalDate.now());
-
 
1763
        model.addAttribute("priceDropReports", priceDropReports);
1836
        model.addAttribute("priceDropReports", priceDropReports);
1764
 
1837
 
1765
        return "price-drop-report";
1838
        return "price-drop-report";
1766
    }
1839
    }
1767
    @RequestMapping(value = "/priceDropFetchReportByDate", method = RequestMethod.GET)
1840
    @RequestMapping(value = "/priceDropFetchReportByDate", method = RequestMethod.GET)
1768
    public String getpriceDropFetchReportByDate(HttpServletRequest request,
1841
    public String getpriceDropFetchReportByDate(HttpServletRequest request,
-
 
1842
                                                @RequestParam(defaultValue = "0") int fofoId,
1769
                                                @RequestParam(name = "startDate", required = true, defaultValue = "") LocalDate startDate,
1843
                                                @RequestParam(name = "startDate", required = true, defaultValue = "") LocalDate startDate,
1770
                                                @RequestParam(name = "endDate", required = true, defaultValue = "") LocalDate endDate, Model model)
1844
                                                @RequestParam(name = "endDate", required = true, defaultValue = "") LocalDate endDate, Model model)
1771
            throws Exception {
1845
            throws Exception {
1772
 
1846
 
1773
            LoginDetails fofoDetails = cookiesProcessor.getCookiesObject(request);
1847
            LoginDetails fofoDetails = cookiesProcessor.getCookiesObject(request);
-
 
1848
        boolean isAdmin = roleManager.isAdmin(fofoDetails.getRoleIds());
-
 
1849
        if (startDate == null) {
-
 
1850
            startDate = LocalDate.now().minusDays(30);
-
 
1851
            endDate = LocalDate.now();
-
 
1852
        }
-
 
1853
        model.addAttribute("startDate", startDate);
-
 
1854
        model.addAttribute("endDate", endDate);
-
 
1855
        model.addAttribute("isAdmin", isAdmin);
-
 
1856
        if (isAdmin) {
-
 
1857
            if (fofoId == 0) {
-
 
1858
                model.addAttribute("priceDropReports", new ArrayList<>());
-
 
1859
                return "price-drop-report";
-
 
1860
            } else {
-
 
1861
                List<PriceDropReportModel> priceDropReports = orderRepository.selectPriceDropReport(fofoId,
-
 
1862
                        startDate.atStartOfDay(), endDate.atTime(LocalTime.MAX));
-
 
1863
                model.addAttribute("priceDropReports", priceDropReports);
-
 
1864
                return "price-drop-report";
-
 
1865
            }
1774
 
1866
 
1775
            List<List<?>> rows = new ArrayList<>();
1867
        } else {
1776
            LocalDateTime currentDate = LocalDate.now().atStartOfDay();
-
 
1777
            List<PriceDropReportModel> priceDropReports = orderRepository.selectPriceDropReport(fofoDetails.getFofoId(),
1868
            List<PriceDropReportModel> priceDropReports = orderRepository.selectPriceDropReport(fofoDetails.getFofoId(),
1778
                    startDate.atStartOfDay(), endDate.atTime(LocalTime.MAX));
1869
                    startDate.atStartOfDay(), endDate.atTime(LocalTime.MAX));
1779
 
-
 
1780
                 model.addAttribute("startDate",startDate);
-
 
1781
                model.addAttribute("endDate", LocalDate.now());
-
 
1782
                model.addAttribute("priceDropReports", priceDropReports);
1870
            model.addAttribute("priceDropReports", priceDropReports);
1783
 
-
 
1784
        return "price-drop-report";
1871
            return "price-drop-report";
-
 
1872
        }
1785
    }
1873
    }
1786
 
1874
 
1787
 
1875
 
1788
    @RequestMapping(value = "/downloadPriceDropReport", method = RequestMethod.GET)
1876
    @RequestMapping(value = "/downloadPriceDropReport", method = RequestMethod.GET)
1789
    public ResponseEntity<?> getSelectDownloadPriceDropReport(HttpServletRequest request,
1877
    public ResponseEntity<?> getSelectDownloadPriceDropReport(HttpServletRequest request,