Subversion Repositories SmartDukaan

Rev

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

Rev 31180 Rev 31556
Line 1125... Line 1125...
1125
 
1125
 
1126
	@Override
1126
	@Override
1127
	@Cacheable(value = "retailerNames", cacheManager = "thirtyMinsTimeOutCacheManager")
1127
	@Cacheable(value = "retailerNames", cacheManager = "thirtyMinsTimeOutCacheManager")
1128
	public Map<Integer, CustomRetailer> getFofoRetailers(boolean activeOnly) {
1128
	public Map<Integer, CustomRetailer> getFofoRetailers(boolean activeOnly) {
1129
		// TODO Auto-generated method stub
1129
		// TODO Auto-generated method stub
1130
		Stream<FofoStore> storeStream = fofoStoreRepository.selectAll().stream();
1130
		Stream<FofoStore> storeStream = fofoStoreRepository.selectAll().stream().filter(x -> !x.isInternal());
1131
		if (activeOnly) {
1131
		if (activeOnly) {
1132
			storeStream = storeStream.filter(x -> x.isActive());
1132
			storeStream = storeStream.filter(x -> x.isActive());
1133
		}
1133
		}
1134
		List<Integer> storeIds = storeStream.map(x -> x.getId()).collect(Collectors.toList());
1134
		List<Integer> storeIds = storeStream.map(x -> x.getId()).collect(Collectors.toList());
1135
		return this.getFofoRetailers(storeIds);
1135
		return this.getFofoRetailers(storeIds);