| 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();
|