Subversion Repositories SmartDukaan

Rev

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

Rev 24083 Rev 24088
Line 531... Line 531...
531
			Integer catalogItemId) throws Exception {
531
			Integer catalogItemId) throws Exception {
532
		List<Item> items = itemRepository.selectAllByCatalogItemId(catalogItemId);
532
		List<Item> items = itemRepository.selectAllByCatalogItemId(catalogItemId);
533
		List<String> itemIds = items.stream().map(x -> String.valueOf(x.getId())).collect(Collectors.toList());
533
		List<String> itemIds = items.stream().map(x -> String.valueOf(x.getId())).collect(Collectors.toList());
534
 
534
 
535
		Map<String, String> params = new HashMap<>();
535
		Map<String, String> params = new HashMap<>();
536
		params.put("MANUAL_criteria1_FROMDATE", FormattingUtils.formatReporitcoDate(affectedOn));
536
		params.put("MANUAL_criteria1_FROMDATE", FormattingUtils.formatReporitcoDate(affectedOn.minusDays(1)));
537
		params.put("MANUAL_itemId", StringUtils.join(itemIds, ","));
537
		params.put("MANUAL_itemId", StringUtils.join(itemIds, ","));
538
 
538
 
539
		Map<String, String> params1 = new HashMap<>();
539
		Map<String, String> params1 = new HashMap<>();
540
		params1.put("MANUAL_criteriaDate_FROMDATE", FormattingUtils.formatReporitcoDate(affectedOn.minusDays(1)));
540
		params1.put("MANUAL_criteriaDate_FROMDATE", FormattingUtils.formatReporitcoDate(affectedOn.minusDays(1)));
541
		params1.put("MANUAL_criteriaItemId", StringUtils.join(itemIds, ","));
541
		params1.put("MANUAL_criteriaItemId", StringUtils.join(itemIds, ","));