Subversion Repositories SmartDukaan

Rev

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

Rev 30048 Rev 30426
Line 87... Line 87...
87
 
87
 
88
			List<User> users = userUserRepository.selectByEmailIds(emails);
88
			List<User> users = userUserRepository.selectByEmailIds(emails);
89
 
89
 
90
			List<Integer> fofoIds = users.stream().map(x -> x.getId()).collect(Collectors.toList());
90
			List<Integer> fofoIds = users.stream().map(x -> x.getId()).collect(Collectors.toList());
91
 
91
 
92
			Map<Integer, CustomRetailer> customRetailers = retailerService.getFofoRetailers(fofoIds);
92
			Map<Integer, CustomRetailer> customRetailerMap = retailerService.getAllFofoRetailers();
-
 
93
 
-
 
94
			Map<Integer, CustomRetailer> customRetailers = fofoIds.stream().map(x -> customRetailerMap.get(x))
-
 
95
					.filter(x -> x != null).collect(Collectors.toList()).stream()
-
 
96
					.collect(Collectors.toMap(x -> x.getPartnerId(), x -> x));
93
 
97
 
94
			customerRetailerMap = customRetailers.entrySet().stream()
98
			customerRetailerMap = customRetailers.entrySet().stream()
95
					.collect(Collectors.toMap(x -> x.getValue().getEmail(), x -> x.getValue()));
99
					.collect(Collectors.toMap(x -> x.getValue().getEmail(), x -> x.getValue()));
96
 
100
 
97
		}
101
		}
Line 117... Line 121...
117
 
121
 
118
			List<User> users = userUserRepository.selectByEmailIds(emails);
122
			List<User> users = userUserRepository.selectByEmailIds(emails);
119
 
123
 
120
			List<Integer> fofoIds = users.stream().map(x -> x.getId()).collect(Collectors.toList());
124
			List<Integer> fofoIds = users.stream().map(x -> x.getId()).collect(Collectors.toList());
121
 
125
 
122
			Map<Integer, CustomRetailer> customRetailers = retailerService.getFofoRetailers(fofoIds);
126
			Map<Integer, CustomRetailer> customRetailerMap = retailerService.getAllFofoRetailers();
-
 
127
 
-
 
128
			Map<Integer, CustomRetailer> customRetailers = fofoIds.stream().map(x -> customRetailerMap.get(x))
-
 
129
					.filter(x -> x != null).collect(Collectors.toList()).stream()
-
 
130
					.collect(Collectors.toMap(x -> x.getPartnerId(), x -> x));
123
 
131
 
124
			customerRetailerMap = customRetailers.entrySet().stream()
132
			customerRetailerMap = customRetailers.entrySet().stream()
125
					.collect(Collectors.toMap(x -> x.getValue().getEmail(), x -> x.getValue()));
133
					.collect(Collectors.toMap(x -> x.getValue().getEmail(), x -> x.getValue()));
126
 
134
 
127
		}
135
		}
Line 325... Line 333...
325
 
333
 
326
			List<User> users = userUserRepository.selectByEmailIds(emails);
334
			List<User> users = userUserRepository.selectByEmailIds(emails);
327
 
335
 
328
			List<Integer> fofoIds = users.stream().map(x -> x.getId()).collect(Collectors.toList());
336
			List<Integer> fofoIds = users.stream().map(x -> x.getId()).collect(Collectors.toList());
329
 
337
 
330
			Map<Integer, CustomRetailer> customRetailers = retailerService.getFofoRetailers(fofoIds);
338
			Map<Integer, CustomRetailer> customRetailerMap = retailerService.getAllFofoRetailers();
-
 
339
 
-
 
340
			Map<Integer, CustomRetailer> customRetailers = fofoIds.stream().map(x -> customRetailerMap.get(x))
-
 
341
					.filter(x -> x != null).collect(Collectors.toList()).stream()
-
 
342
					.collect(Collectors.toMap(x -> x.getPartnerId(), x -> x));
331
 
343
 
332
			customerRetailerMap = customRetailers.entrySet().stream()
344
			customerRetailerMap = customRetailers.entrySet().stream()
333
					.collect(Collectors.toMap(x -> x.getValue().getEmail(), x -> x.getValue()));
345
					.collect(Collectors.toMap(x -> x.getValue().getEmail(), x -> x.getValue()));
334
 
346
 
335
		}
347
		}
Line 456... Line 468...
456
 
468
 
457
			List<User> users = userUserRepository.selectByEmailIds(emails);
469
			List<User> users = userUserRepository.selectByEmailIds(emails);
458
 
470
 
459
			List<Integer> fofoIds = users.stream().map(x -> x.getId()).collect(Collectors.toList());
471
			List<Integer> fofoIds = users.stream().map(x -> x.getId()).collect(Collectors.toList());
460
 
472
 
461
			Map<Integer, CustomRetailer> customRetailers = retailerService.getFofoRetailers(fofoIds);
473
			Map<Integer, CustomRetailer> customRetailerMap = retailerService.getAllFofoRetailers();
-
 
474
 
-
 
475
			Map<Integer, CustomRetailer> customRetailers = fofoIds.stream().map(x -> customRetailerMap.get(x))
-
 
476
					.filter(x -> x != null).collect(Collectors.toList()).stream()
-
 
477
					.collect(Collectors.toMap(x -> x.getPartnerId(), x -> x));
462
 
478
 
463
			customerRetailerMap = customRetailers.entrySet().stream()
479
			customerRetailerMap = customRetailers.entrySet().stream()
464
					.collect(Collectors.toMap(x -> x.getValue().getEmail(), x -> x.getValue()));
480
					.collect(Collectors.toMap(x -> x.getValue().getEmail(), x -> x.getValue()));
465
 
481
 
466
		}
482
		}