Subversion Repositories SmartDukaan

Rev

Rev 33248 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
30348 tejbeer 1
package com.spice.profitmandi.service;
2
 
33248 ranu 3
import com.spice.profitmandi.common.exception.ProfitMandiBusinessException;
4
import com.spice.profitmandi.dao.model.PartnerCollectionPlanModel;
5
import com.spice.profitmandi.dao.model.TotalTargetColectionModel;
6
import org.springframework.stereotype.Service;
7
 
30348 tejbeer 8
import java.time.LocalDateTime;
9
import java.util.List;
10
import java.util.Map;
11
 
12
@Service
13
public interface PartnerCollectionService {
14
 
33248 ranu 15
    Map<Integer, PartnerCollectionPlanModel> getCollectionMap(List<Integer> fofoIdList, LocalDateTime startDate) throws ProfitMandiBusinessException;
30808 tejbeer 16
 
17
	TotalTargetColectionModel getTotalTargetCollection(Map<Integer, PartnerCollectionPlanModel> todayPcpmMap,
18
			LocalDateTime startDate);
35631 ranu 19
 
20
    /**
21
     * Simplified method that only returns fofoId -> rank mapping.
22
     * Much faster than getCollectionMap as it skips unnecessary queries.
23
     * Rank values: 1=PlanToday, 2=CarryForward, 3=Untouched, 4=FuturePlan, 5=Normal
24
     */
25
    Map<Integer, Integer> getCollectionRankMap(List<Integer> fofoIdList, LocalDateTime startDate) throws ProfitMandiBusinessException;
30348 tejbeer 26
}