Subversion Repositories SmartDukaan

Rev

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

Rev 26542 Rev 26543
Line 1118... Line 1118...
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
			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 {
-
 
1124
				LOGGER.info("Store shortname is {}", shortName);
1123
			LOGGER.info("Store shortname is {}", shortName);
1125
				districtMaster = districtMasterRepository.selectByShortName(shortName);
1124
			districtMaster = districtMasterRepository.selectByShortName(shortName);
1126
			} catch (Exception e) {
1125
			if (districtMaster == null) {
1127
				districtMaster = districtMasterRepository.selectByShortName("FB");
1126
				districtMaster = districtMasterRepository.selectByShortName("FB");
1128
			}
1127
			}
1129
			LOGGER.info("Store id - {}", store.getId());
1128
			LOGGER.info("Store id - {}", store.getId());
1130
			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());
1131
			String storeName = user.getName();
1130
			String storeName = user.getName();