Subversion Repositories SmartDukaan

Rev

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

Rev 33968 Rev 34081
Line 158... Line 158...
158
        double totalProductSaleAmount = upSaleAgentCollections.stream()
158
        double totalProductSaleAmount = upSaleAgentCollections.stream()
159
                .mapToDouble(UpSaleAgentCollection::getProductSaleAmount)
159
                .mapToDouble(UpSaleAgentCollection::getProductSaleAmount)
160
                .sum();
160
                .sum();
161
 
161
 
162
        try {
162
        try {
-
 
163
            LOGGER.info("LocalDateTime {}", endDate);
163
            // Fetch all rescheduled calls and filter them in-memory
164
            // Fetch all rescheduled calls and filter them in-memory
164
            List<UpSaleCall> upSaleCalls = upSaleCallRepository.selectAllByDispostion(UpSaleCallStatus.RESCHEDULED);
165
            List<UpSaleCall> upSaleCalls = upSaleCallRepository.selectAllByDispostion(UpSaleCallStatus.RESCHEDULED);
-
 
166
            LOGGER.info("UpSaleCall {}", upSaleCalls);
165
            List<UpSaleCall> filteredUpSaleCalls = upSaleCalls.stream()
167
            List<UpSaleCall> filteredUpSaleCalls = upSaleCalls.stream()
166
                    .filter(call -> call.getRescheduledTimestamp() != null && call.getRescheduledTimestamp().isBefore(endDate))
168
                    .filter(call -> call.getRescheduledTimestamp() != null && call.getRescheduledTimestamp().isBefore(endDate))
167
                    .collect(Collectors.toList());
169
                    .collect(Collectors.toList());
168
 
-
 
-
 
170
            LOGGER.info("UpSaleCall {}", filteredUpSaleCalls);
169
 
171
 
170
            if (!filteredUpSaleCalls.isEmpty()) {
172
            if (!filteredUpSaleCalls.isEmpty()) {
171
                for (UpSaleCall upSaleCall : filteredUpSaleCalls) {
173
                for (UpSaleCall upSaleCall : filteredUpSaleCalls) {
172
                    FofoOrder fofoOrder = fofoOrderRepository.selectByOrderId(upSaleCall.getOriginalOrderId());
174
                    FofoOrder fofoOrder = fofoOrderRepository.selectByOrderId(upSaleCall.getOriginalOrderId());
173
 
175