Subversion Repositories SmartDukaan

Rev

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

Rev 24124 Rev 24168
Line 894... Line 894...
894
		for (UserAccount userAccount : userAccounts) {
894
		for (UserAccount userAccount : userAccounts) {
895
			retailerIdEmailIdMap.put(userAccount.getAccountKey(), userIdEmailIdMap.get(userAccount.getUserId()));
895
			retailerIdEmailIdMap.put(userAccount.getAccountKey(), userIdEmailIdMap.get(userAccount.getUserId()));
896
		}
896
		}
897
		return retailerIdEmailIdMap;
897
		return retailerIdEmailIdMap;
898
	}
898
	}
-
 
899
	@Override
-
 
900
	public Map<Integer, String> getFofoRetailerIdNameMap(List<Integer> storeIds) {
-
 
901
		Map<Integer, CustomRetailer> retailersMap = this.getFofoRetailers(storeIds);
-
 
902
		Map<Integer, String> retailerIdNameMap = new HashMap<>();
-
 
903
		for (Map.Entry<Integer, CustomRetailer> entry: retailersMap.entrySet()) {
-
 
904
			retailerIdNameMap.put(entry.getKey(), entry.getValue().getBusinessName() + "(" + entry.getValue().getEmail() + ")");
-
 
905
		}
-
 
906
		return retailerIdNameMap;
-
 
907
	}
-
 
908
 
-
 
909
	@Override
-
 
910
	public Map<Integer, String> getAllFofoRetailerIdNameMap() {
-
 
911
		// TODO Auto-generated method stub
-
 
912
		List<FofoStore> stores = fofoStoreRepository.selectAll();
-
 
913
		List<Integer> storeIds = stores.stream().map(x->x.getId()).collect(Collectors.toList());
-
 
914
		return this.getFofoRetailerIdNameMap(storeIds);
-
 
915
	}
899
	
916
	
900
}
917
}