| Line 913... |
Line 913... |
| 913 |
}
|
913 |
}
|
| 914 |
return districtMasterRepository.selectByStateShortName(stateInfo.getShortName());
|
914 |
return districtMasterRepository.selectByStateShortName(stateInfo.getShortName());
|
| 915 |
}
|
915 |
}
|
| 916 |
|
916 |
|
| 917 |
@Override
|
917 |
@Override
|
| - |
|
918 |
@Cacheable(value = "getFofoRetailer", cacheManager = "thirtyMinsTimeOutCacheManager")
|
| 918 |
public Map<Integer, CustomRetailer> getFofoRetailers(List<Integer> fofoIds) throws ProfitMandiBusinessException {
|
919 |
public Map<Integer, CustomRetailer> getFofoRetailers(List<Integer> fofoIds) throws ProfitMandiBusinessException {
|
| 919 |
List<com.spice.profitmandi.dao.entity.user.User> saholicUsers = userUserRepository.selectByIds(fofoIds);
|
920 |
List<com.spice.profitmandi.dao.entity.user.User> saholicUsers = userUserRepository.selectByIds(fofoIds);
|
| 920 |
Map<Integer, com.spice.profitmandi.dao.entity.user.User> userAddressMap = saholicUsers.stream().filter(x -> x.getAddressId() != null).collect(Collectors.toMap(x -> x.getAddressId(), x -> x));
|
921 |
Map<Integer, com.spice.profitmandi.dao.entity.user.User> userAddressMap = saholicUsers.stream().filter(x -> x.getAddressId() != null).collect(Collectors.toMap(x -> x.getAddressId(), x -> x));
|
| 921 |
List<Address> addresses = addressRepository.selectByIds(new ArrayList<>(userAddressMap.keySet()));
|
922 |
List<Address> addresses = addressRepository.selectByIds(new ArrayList<>(userAddressMap.keySet()));
|
| 922 |
Map<Integer, CustomRetailer> customRetailersMap = new HashMap<>();
|
923 |
Map<Integer, CustomRetailer> customRetailersMap = new HashMap<>();
|