Subversion Repositories SmartDukaan

Rev

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

Rev 34069 Rev 34093
Line 405... Line 405...
405
            if (fofoId == 0) {
405
            if (fofoId == 0) {
406
                focoSaleReportList = new ArrayList<>();
406
                focoSaleReportList = new ArrayList<>();
407
            } else {
407
            } else {
408
 
408
 
409
                focoSaleReportList = fofoOrderRepository.selectFocoSaleReport(fofoId,
409
                focoSaleReportList = fofoOrderRepository.selectFocoSaleReport(fofoId,
410
                        fs.getCode(), startDate.atStartOfDay(), endDate.atStartOfDay());
410
                        fs.getCode(), startDate.atStartOfDay(), endDate.atStartOfDay().plusDays(1));
411
            }
411
            }
412
 
412
 
413
        } else {
413
        } else {
414
            fs = fofoStoreRepository.selectByRetailerId(fofoDetails.getFofoId());
414
            fs = fofoStoreRepository.selectByRetailerId(fofoDetails.getFofoId());
415
 
415
 
416
            focoSaleReportList = fofoOrderRepository.selectFocoSaleReport(fofoDetails.getFofoId(),
416
            focoSaleReportList = fofoOrderRepository.selectFocoSaleReport(fofoDetails.getFofoId(),
417
                    fs.getCode(), startDate.atStartOfDay(), endDate.atStartOfDay());
417
                    fs.getCode(), startDate.atStartOfDay(), endDate.atStartOfDay().plusDays(1));
418
        }
418
        }
419
        LOGGER.info("FocoSaleReportList {}", focoSaleReportList);
419
        LOGGER.info("FocoSaleReportList {}", focoSaleReportList);
420
        String partnerName = null;
420
        String partnerName = null;
421
        for (FocoSaleReportModel fsr : focoSaleReportList) {
421
        for (FocoSaleReportModel fsr : focoSaleReportList) {
422
            partnerName = fsr.getName();
422
            partnerName = fsr.getName();