Subversion Repositories SmartDukaan

Rev

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

Rev 36337 Rev 36374
Line 623... Line 623...
623
        // TODO Auto-generated method stub
623
        // TODO Auto-generated method stub
624
        return null;
624
        return null;
625
    }
625
    }
626
 
626
 
627
    @Override
627
    @Override
-
 
628
    public List<CreateOfferRequest> getActiveOffers(int fofoId) throws ProfitMandiBusinessException {
-
 
629
        List<Offer> activeOffers = offerRepository.selectCurrentlyActiveForPartner(fofoId);
-
 
630
        List<CreateOfferRequest> result = new ArrayList<>();
-
 
631
 
-
 
632
        for (Offer offer : activeOffers) {
-
 
633
            CreateOfferRequest copy = deepCopy(this.getCreateOfferRequest(offer));
-
 
634
            setCriteriaPayoutAchieved(fofoId, copy);
-
 
635
            result.add(copy);
-
 
636
        }
-
 
637
 
-
 
638
        return result;
-
 
639
    }
-
 
640
 
-
 
641
    @Override
628
    @Cacheable(value = "slabPayoutMap1", cacheManager = "oneDayCacheManager")
642
    @Cacheable(value = "slabPayoutMap1", cacheManager = "oneDayCacheManager")
629
    public Map<Integer, Map<Integer, Long>> getSlabPayoutMap(CreateOfferRequest createOfferRequest) throws ProfitMandiBusinessException {
643
    public Map<Integer, Map<Integer, Long>> getSlabPayoutMap(CreateOfferRequest createOfferRequest) throws ProfitMandiBusinessException {
630
        Map<Integer, Map<Integer, Long>> catalogSlabPayoutMap = new HashMap<>();
644
        Map<Integer, Map<Integer, Long>> catalogSlabPayoutMap = new HashMap<>();
631
        com.spice.profitmandi.dao.model.TargetSlab targetSlab = createOfferRequest.getTargetSlabs().get(0);
645
        com.spice.profitmandi.dao.model.TargetSlab targetSlab = createOfferRequest.getTargetSlabs().get(0);
632
        List<ItemCriteriaPayout> payouts = targetSlab.getItemCriteriaPayouts();
646
        List<ItemCriteriaPayout> payouts = targetSlab.getItemCriteriaPayouts();