Subversion Repositories SmartDukaan

Rev

Rev 33248 | View as "text/plain" | Blame | Compare with Previous | Last modification | View Log | RSS feed

package com.spice.profitmandi.service;

import com.spice.profitmandi.common.exception.ProfitMandiBusinessException;
import com.spice.profitmandi.dao.model.PartnerCollectionPlanModel;
import com.spice.profitmandi.dao.model.TotalTargetColectionModel;
import org.springframework.stereotype.Service;

import java.time.LocalDateTime;
import java.util.List;
import java.util.Map;

@Service
public interface PartnerCollectionService {

    Map<Integer, PartnerCollectionPlanModel> getCollectionMap(List<Integer> fofoIdList, LocalDateTime startDate) throws ProfitMandiBusinessException;

        TotalTargetColectionModel getTotalTargetCollection(Map<Integer, PartnerCollectionPlanModel> todayPcpmMap,
                        LocalDateTime startDate);

    /**
     * Simplified method that only returns fofoId -> rank mapping.
     * Much faster than getCollectionMap as it skips unnecessary queries.
     * Rank values: 1=PlanToday, 2=CarryForward, 3=Untouched, 4=FuturePlan, 5=Normal
     */
    Map<Integer, Integer> getCollectionRankMap(List<Integer> fofoIdList, LocalDateTime startDate) throws ProfitMandiBusinessException;
}