Subversion Repositories SmartDukaan

Rev

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

Rev 26540 Rev 26541
Line 1119... Line 1119...
1119
		for (FofoStore store : stores) {
1119
		for (FofoStore store : stores) {
1120
			LOGGER.info("Store is {}", store);
1120
			LOGGER.info("Store is {}", store);
1121
			String shortName = store.getCode().replaceAll("\\d+", "").substring(2);
1121
			String shortName = store.getCode().replaceAll("\\d+", "").substring(2);
1122
			DistrictMaster districtMaster = null;
1122
			DistrictMaster districtMaster = null;
1123
			try {
1123
			try {
-
 
1124
				LOGGER.info("Store shortname is {}", shortName);
1124
				districtMaster = districtMasterRepository.selectByShortName(shortName);
1125
				districtMaster = districtMasterRepository.selectByShortName(shortName);
1125
			} catch (Exception e) {
1126
			} catch (Exception e) {
1126
				districtMaster = districtMasterRepository.selectByShortName("FB");
1127
				districtMaster = districtMasterRepository.selectByShortName("FB");
1127
			}
1128
			}
1128
			com.spice.profitmandi.dao.entity.user.User user = userMap.get(store.getId());
1129
			com.spice.profitmandi.dao.entity.user.User user = userMap.get(store.getId());
1129
			String storeName = user.getName();
1130
			String storeName = user.getName();
1130
			String urlString = districtMaster.getStateShortName() + "/"
1131
			String urlString = districtMaster.getStateShortName() + "/"
1131
					+ Utils.getHyphenatedString(districtMaster.getName()) + "/"
1132
					+ Utils.getHyphenatedString(districtMaster.getName()) + "/"
1132
					+ Utils.getHyphenatedString(store.getCode() + " " + storeName);
1133
					+ Utils.getHyphenatedString(store.getCode() + " " + storeName);
1133
			fofoRetailerUrlMap.put(store.getId(), urlString);
1134
			fofoRetailerUrlMap.put(store.getId(), urlString);
-
 
1135
			LOGGER.info("Store is {} end", store);
1134
 
1136
 
1135
		}
1137
		}
1136
		return fofoRetailerUrlMap;
1138
		return fofoRetailerUrlMap;
1137
	}
1139
	}
1138
 
1140