Subversion Repositories SmartDukaan

Rev

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

Rev 28198 Rev 28330
Line 1... Line 1...
1
package com.spice.profitmandi.service.user;
1
package com.spice.profitmandi.service.user;
2
 
2
 
3
import java.nio.charset.StandardCharsets;
3
import java.nio.charset.StandardCharsets;
4
import java.time.LocalDateTime;
4
import java.time.LocalDateTime;
5
import java.util.ArrayList;
5
import java.util.ArrayList;
6
import java.util.Arrays;
-
 
7
import java.util.HashMap;
6
import java.util.HashMap;
8
import java.util.HashSet;
7
import java.util.HashSet;
9
import java.util.List;
8
import java.util.List;
10
import java.util.Map;
9
import java.util.Map;
11
import java.util.Set;
10
import java.util.Set;
Line 1085... Line 1084...
1085
		}
1084
		}
1086
		return retailerIdNameMap;
1085
		return retailerIdNameMap;
1087
	}
1086
	}
1088
 
1087
 
1089
	@Override
1088
	@Override
-
 
1089
	@Cacheable(value = "FofoRetailerIdNameMap", cacheManager = "oneDayCacheManager")
1090
	public Map<Integer, String> getAllFofoRetailerIdNameMap() {
1090
	public Map<Integer, String> getAllFofoRetailerIdNameMap() {
1091
		List<FofoStore> stores = fofoStoreRepository.selectAll();
1091
		List<FofoStore> stores = fofoStoreRepository.selectAll();
1092
		List<Integer> storeIds = stores.stream().map(x -> x.getId()).collect(Collectors.toList());
1092
		List<Integer> storeIds = stores.stream().map(x -> x.getId()).collect(Collectors.toList());
1093
		return this.getAllFofoRetailerIdNameMap(storeIds);
1093
		return this.getAllFofoRetailerIdNameMap(storeIds);
1094
	}
1094
	}