Subversion Repositories SmartDukaan

Rev

Rev 37022 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 37022 Rev 37145
Line 929... Line 929...
929
        // Get fofo IDs from mtdBillingData (same source as Partner Count in getRbmCallTargetModels)
929
        // Get fofo IDs from mtdBillingData (same source as Partner Count in getRbmCallTargetModels)
930
        List<RbmWeeklyBillingModel> mtdBillingData = getWeeklyBillingDataForMonth(firstOfMonth, endOfMonth);
930
        List<RbmWeeklyBillingModel> mtdBillingData = getWeeklyBillingDataForMonth(firstOfMonth, endOfMonth);
931
 
931
 
932
        List<Integer> fofoIdList;
932
        List<Integer> fofoIdList;
933
        if (isL2) {
933
        if (isL2) {
934
            // L2: get fofo IDs from escalated tickets (same as getRbmCallTargetModels)
934
            // L2: get fofo IDs from escalated tickets (same as getRbmCallTargetModels).
-
 
935
            // selectOpenEscalatedTicketsByAuthIds already filters to tickets where authId is the
-
 
936
            // current assignee AND the ticket has moved past L1 — no post-filter needed.
935
            List<Ticket> escalatedTickets = ticketRepository.selectOpenEscalatedTicketsByAuthIds(Collections.singletonList(authId));
937
            List<Ticket> escalatedTickets = ticketRepository.selectOpenEscalatedTicketsByAuthIds(Collections.singletonList(authId));
936
            fofoIdList = escalatedTickets.stream()
938
            fofoIdList = escalatedTickets.stream()
937
                    .filter(t -> t.getL2AuthUser() == authId
-
 
938
                            || t.getL3AuthUser() == authId
-
 
939
                            || t.getL4AuthUser() == authId
-
 
940
                            || t.getL5AuthUser() == authId)
-
 
941
                    .map(Ticket::getFofoId)
939
                    .map(Ticket::getFofoId)
942
                    .distinct()
940
                    .distinct()
943
                    .collect(Collectors.toList());
941
                    .collect(Collectors.toList());
944
        } else {
942
        } else {
945
            // L1: get fofo IDs from mtdBillingData with isTargetedPartner (same as Partner Count)
943
            // L1: get fofo IDs from mtdBillingData with isTargetedPartner (same as Partner Count)