| Line 169... |
Line 169... |
| 169 |
}
|
169 |
}
|
| 170 |
return mopPriceMap;
|
170 |
return mopPriceMap;
|
| 171 |
}
|
171 |
}
|
| 172 |
|
172 |
|
| 173 |
//Currently it only handles fofos
|
173 |
//Currently it only handles fofos
|
| 174 |
public List<Integer> getTagsIdsByRetailerId(int retailerId) throws Throwable {
|
174 |
public List<Integer> getTagsIdsByRetailerId(int retailerId) throws Throwable{
|
| 175 |
int addressId = retailerRegisteredAddressRepository.selectAddressIdByRetailerId(retailerId);
|
175 |
int addressId = retailerRegisteredAddressRepository.selectAddressIdByRetailerId(retailerId);
|
| 176 |
Address retailerAddress = addressRepository.selectById(addressId);
|
176 |
Address retailerAddress = addressRepository.selectById(addressId);
|
| 177 |
Set<Integer> pinCodeTagIds = tagService.getFofoTagIdsByPinCode(retailerAddress.getPinCode());
|
177 |
Set<Integer> pinCodeTagIds = tagService.getFofoTagIdsByPinCode(retailerAddress.getPinCode());
|
| 178 |
Set<Integer> pinNegativeTagIds = tagService.getPinCodeNegativeTagIds();
|
178 |
Set<Integer> pinNegativeTagIds = tagService.getPinCodeNegativeTagIds();
|
| 179 |
Set<Integer> pinCodeIntersection = new HashSet<>(CollectionUtils.intersection(pinCodeTagIds, pinNegativeTagIds));
|
179 |
Set<Integer> pinCodeIntersection = new HashSet<>(CollectionUtils.intersection(pinCodeTagIds, pinNegativeTagIds));
|