| Line 163... |
Line 163... |
| 163 |
offerRepository.persist(offer);
|
163 |
offerRepository.persist(offer);
|
| 164 |
createOfferRequest.setId(offer.getId());
|
164 |
createOfferRequest.setId(offer.getId());
|
| 165 |
}
|
165 |
}
|
| 166 |
|
166 |
|
| 167 |
@Override
|
167 |
@Override
|
| - |
|
168 |
@Cacheable(value = "publishedOffersWithAchievement", cacheManager = "redisShortCacheManager")
|
| 168 |
public List<CreateOfferRequest> getPublishedOffers(int fofoId, YearMonth yearMonth) throws ProfitMandiBusinessException {
|
169 |
public List<CreateOfferRequest> getPublishedOffers(int fofoId, YearMonth yearMonth) throws ProfitMandiBusinessException {
|
| 169 |
Map<Integer, List<Offer>> publishedMapByPartner = offerRepository.selectAllPublishedMapByPartner(yearMonth);
|
170 |
Map<Integer, List<Offer>> publishedMapByPartner = offerRepository.selectAllPublishedMapByPartner(yearMonth);
|
| 170 |
List<Offer> publishedOffers = publishedMapByPartner != null ? publishedMapByPartner.get(fofoId) : null;
|
171 |
List<Offer> publishedOffers = publishedMapByPartner != null ? publishedMapByPartner.get(fofoId) : null;
|
| 171 |
List<CreateOfferRequest> createOfferRequests = new ArrayList<>();
|
172 |
List<CreateOfferRequest> createOfferRequests = new ArrayList<>();
|
| 172 |
if (publishedOffers != null) {
|
173 |
if (publishedOffers != null) {
|