Subversion Repositories SmartDukaan

Rev

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

Rev 30426 Rev 30428
Line 349... Line 349...
349
			fofoIds.add(ticket.getFofoId());
349
			fofoIds.add(ticket.getFofoId());
350
		}
350
		}
351
 
351
 
352
		Map<Integer, CustomRetailer> customRetailerMap = retailerService.getAllFofoRetailers();
352
		Map<Integer, CustomRetailer> customRetailerMap = retailerService.getAllFofoRetailers();
353
 
353
 
354
		Map<Integer, CustomRetailer> fofoIdsAndCustomRetailer = fofoIds.stream().map(x -> customRetailerMap.get(x))
354
		Map<Integer, CustomRetailer> fofoIdsAndCustomRetailer = fofoIds.stream().distinct().map(x -> customRetailerMap.get(x))
355
				.filter(x -> x != null).collect(Collectors.toList()).stream()
355
				.filter(x -> x != null).collect(Collectors.toList()).stream()
356
				.collect(Collectors.toMap(x -> x.getPartnerId(), x -> x));
356
				.collect(Collectors.toMap(x -> x.getPartnerId(), x -> x));
357
		return fofoIdsAndCustomRetailer;
357
		return fofoIdsAndCustomRetailer;
358
	}
358
	}
359
 
359