Subversion Repositories SmartDukaan

Rev

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

Rev 30423 Rev 30424
Line 427... Line 427...
427
			if (!fofoIds.isEmpty()) {
427
			if (!fofoIds.isEmpty()) {
428
				if (fofoIds.contains(0)) {
428
				if (fofoIds.contains(0)) {
429
					fofoIds = partnerRegionRepository.selectByRegionId(position.getRegionId()).stream()
429
					fofoIds = partnerRegionRepository.selectByRegionId(position.getRegionId()).stream()
430
							.map(x -> x.getFofoId()).collect(Collectors.toList());
430
							.map(x -> x.getFofoId()).collect(Collectors.toList());
431
					if (fofoIds.contains(0)) {
431
					if (fofoIds.contains(0)) {
432
						fofoIds = fofoStoreRepository.selectAll().stream().map(x -> x.getId())
432
						fofoIds = new ArrayList<>(customRetailerMap.keySet());
433
								.collect(Collectors.toList());
-
 
434
					}
433
					}
435
 
434
 
436
				}
435
				}
437
				LOGGER.info("fofoIds - {}", fofoIds);
436
				LOGGER.info("fofoIds - {}", fofoIds);
438
				positionRetailerMap.put(position.getId(), fofoIds.stream().map(x -> customRetailerMap.get(x)).collect(Collectors.toList()));
437
				positionRetailerMap.put(position.getId(), fofoIds.stream().map(x -> customRetailerMap.get(x)).filter(x -> x != null).collect(Collectors.toList()));
439
 
438
 
440
			}
439
			}
441
		}
440
		}
442
		return positionRetailerMap;
441
		return positionRetailerMap;
443
	}
442
	}