Subversion Repositories SmartDukaan

Rev

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

Rev 35760 Rev 35761
Line 5... Line 5...
5
import com.spice.profitmandi.common.model.CustomRetailer;
5
import com.spice.profitmandi.common.model.CustomRetailer;
6
import com.spice.profitmandi.common.model.ProfitMandiConstants;
6
import com.spice.profitmandi.common.model.ProfitMandiConstants;
7
import com.spice.profitmandi.dao.entity.auth.AuthUser;
7
import com.spice.profitmandi.dao.entity.auth.AuthUser;
8
import com.spice.profitmandi.dao.entity.auth.PartnerCollectionRemark;
8
import com.spice.profitmandi.dao.entity.auth.PartnerCollectionRemark;
9
import com.spice.profitmandi.dao.entity.auth.RbmCallSequenceLog;
9
import com.spice.profitmandi.dao.entity.auth.RbmCallSequenceLog;
-
 
10
import com.spice.profitmandi.dao.entity.cs.AgentCallLog;
10
import com.spice.profitmandi.dao.entity.cs.Position;
11
import com.spice.profitmandi.dao.entity.cs.Position;
11
import com.spice.profitmandi.dao.entity.cs.Ticket;
12
import com.spice.profitmandi.dao.entity.cs.Ticket;
12
import com.spice.profitmandi.dao.entity.fofo.FofoStore;
13
import com.spice.profitmandi.dao.entity.fofo.FofoStore;
13
import com.spice.profitmandi.dao.entity.fofo.MonthlyTarget;
14
import com.spice.profitmandi.dao.entity.fofo.MonthlyTarget;
14
import com.spice.profitmandi.dao.entity.fofo.RetailerContact;
15
import com.spice.profitmandi.dao.entity.fofo.RetailerContact;
Line 1041... Line 1042...
1041
 
1042
 
1042
    @Override
1043
    @Override
1043
    public List<CalledPartnerDetailModel> getCalledPartnerDetails(int authId, LocalDate date) throws ProfitMandiBusinessException {
1044
    public List<CalledPartnerDetailModel> getCalledPartnerDetails(int authId, LocalDate date) throws ProfitMandiBusinessException {
1044
        // Get all call logs for this auth user on this date
1045
        // Get all call logs for this auth user on this date
1045
        LOGGER.info("getCalledPartnerDetails: authId={}, date={}", authId, date);
1046
        LOGGER.info("getCalledPartnerDetails: authId={}, date={}", authId, date);
1046
        List<com.spice.profitmandi.dao.entity.cs.AgentCallLog> callLogs = agentCallLogRepository.findByAuthIdAndDate(authId, date);
1047
        List<AgentCallLog> callLogs = agentCallLogRepository.findByAuthIdAndDate(authId, date);
1047
        LOGGER.info("Found {} call logs for authId={} on date={}", callLogs.size(), authId, date);
1048
        LOGGER.info("Found {} call logs for authId={} on date={}", callLogs.size(), authId, date);
1048
 
1049
 
1049
        if (callLogs.isEmpty()) {
1050
        if (callLogs.isEmpty()) {
1050
            return Collections.emptyList();
1051
            return Collections.emptyList();
1051
        }
1052
        }