Subversion Repositories SmartDukaan

Rev

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

Rev 26536 Rev 26537
Line 1115... Line 1115...
1115
				.collect(Collectors.toList());
1115
				.collect(Collectors.toList());
1116
		Map<Integer, com.spice.profitmandi.dao.entity.user.User> userMap = userUserRepository
1116
		Map<Integer, com.spice.profitmandi.dao.entity.user.User> userMap = userUserRepository
1117
				.selectByIds(stores.stream().map(x -> x.getId()).collect(Collectors.toList())).stream()
1117
				.selectByIds(stores.stream().map(x -> x.getId()).collect(Collectors.toList())).stream()
1118
				.collect(Collectors.toMap(x -> x.getId(), x -> x));
1118
				.collect(Collectors.toMap(x -> x.getId(), x -> x));
1119
		for (FofoStore store : stores) {
1119
		for (FofoStore store : stores) {
-
 
1120
			LOGGER.info("Store is {}", store);
1120
			String shortName = store.getCode().replaceAll("\\d+", "");
1121
			String shortName = store.getCode().replaceAll("\\d+", "");
1121
			DistrictMaster districtMaster = districtMasterRepository.selectByShortName(shortName);
1122
			DistrictMaster districtMaster = districtMasterRepository.selectByShortName(shortName);
1122
			com.spice.profitmandi.dao.entity.user.User user = userMap.get(store.getId());
1123
			com.spice.profitmandi.dao.entity.user.User user = userMap.get(store.getId());
1123
			String storeName = user.getName();
1124
			String storeName = user.getName();
1124
			String urlString = districtMaster.getStateShortName() + "/"
1125
			String urlString = districtMaster.getStateShortName() + "/"