Subversion Repositories SmartDukaan

Rev

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

Rev 22353 Rev 22362
Line 177... Line 177...
177
		return mopPriceMap;
177
		return mopPriceMap;
178
	}
178
	}
179
	
179
	
180
	//Currently it only handles fofos
180
	//Currently it only handles fofos
181
	public List<Integer> getTagsIdsByRetailerId(int retailerId) throws Throwable{
181
	public List<Integer> getTagsIdsByRetailerId(int retailerId) throws Throwable{
182
		int addressId = retailerRegisteredAddressRepository.selectAddressIdByRetailerId(retailerId);
182
		//int addressId = retailerRegisteredAddressRepository.selectAddressIdByRetailerId(retailerId);
183
		Address retailerAddress = addressRepository.selectById(addressId);
183
		/*Address retailerAddress = addressRepository.selectById(addressId);
184
		Set<Integer> pinCodeTagIds = tagService.getFofoTagIdsByPinCode(retailerAddress.getPinCode());
184
		Set<Integer> pinCodeTagIds = tagService.getFofoTagIdsByPinCode(retailerAddress.getPinCode());*/
-
 
185
		//Hardcoded temporarily
-
 
186
		Set<Integer> pinCodeTagIds = tagService.getFofoTagIdsByPinCode("110001");
185
		Set<Integer> pinNegativeTagIds = tagService.getPinCodeNegativeTagIds();
187
		Set<Integer> pinNegativeTagIds = tagService.getPinCodeNegativeTagIds();
186
		Set<Integer> pinCodeIntersection = new HashSet<>(CollectionUtils.intersection(pinCodeTagIds, pinNegativeTagIds));
188
		Set<Integer> pinCodeIntersection = new HashSet<>(CollectionUtils.intersection(pinCodeTagIds, pinNegativeTagIds));
187
		
189
		
188
		Set<Integer> validTagIds = new HashSet<>(CollectionUtils.subtract(pinNegativeTagIds, pinCodeIntersection));
190
		Set<Integer> validTagIds = new HashSet<>(CollectionUtils.subtract(pinNegativeTagIds, pinCodeIntersection));
189
		Set<Integer> pinPositiveTagIds = tagService.getPinCodePositiveTagIds();
191
		Set<Integer> pinPositiveTagIds = tagService.getPinCodePositiveTagIds();