Subversion Repositories SmartDukaan

Rev

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

Rev 26179 Rev 26618
Line 602... Line 602...
602
		}
602
		}
603
		LOGGER.info("plannedDetailMap" + plannedDetailMap);
603
		LOGGER.info("plannedDetailMap" + plannedDetailMap);
604
 
604
 
605
		LOGGER.info("fofoOrderIds" + fofoOrderIds);
605
		LOGGER.info("fofoOrderIds" + fofoOrderIds);
606
		Map<String, Object> equalsJoinMap = new HashMap<>();
606
		Map<String, Object> equalsJoinMap = new HashMap<>();
607
		equalsJoinMap.put("orderId", fofoOrderIds);
-
 
608
 
607
 
-
 
608
		equalsJoinMap.put("orderId", fofoOrderIds);
609
		Map<Integer, Integer> last15daysMap = itemRepository
609
		Map<Integer, Integer> last15daysMap = null;
610
				.selectItems(FofoOrderItem.class, "id", "itemId", equalsMap, notEqualsMap, equalsJoinMap,
-
 
611
						notEqualsJoinMap, "quantity")
610
		if (!fofoOrderIds.isEmpty()) {
612
				.stream().collect(Collectors.toMap(x -> x.getCatalogId(), x -> (int) x.getAggregateValue()));
-
 
613
 
611
 
-
 
612
			last15daysMap = itemRepository
-
 
613
					.selectItems(FofoOrderItem.class, "id", "itemId", equalsMap, notEqualsMap, equalsJoinMap,
-
 
614
							notEqualsJoinMap, "quantity")
-
 
615
					.stream().collect(Collectors.toMap(x -> x.getCatalogId(), x -> (int) x.getAggregateValue()));
-
 
616
		}
614
		LOGGER.info("last15daysMap" + last15daysMap);
617
		LOGGER.info("last15daysMap" + last15daysMap);
615
 
618
 
616
		Map<Integer, TagListing> taglistingMap = tagListings.stream()
619
		Map<Integer, TagListing> taglistingMap = tagListings.stream()
617
				.collect(Collectors.toMap(x -> x.getItemId(), x -> x));
620
				.collect(Collectors.toMap(x -> x.getItemId(), x -> x));
618
		List<Item> items = itemRepository.selectByIds(taglistingMap.keySet());
621
		List<Item> items = itemRepository.selectByIds(taglistingMap.keySet());