Subversion Repositories SmartDukaan

Rev

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

Rev 34919 Rev 34920
Line 600... Line 600...
600
 
600
 
601
        Map<Integer,Map<String, Double>> fofoBrandMtdTertiaryMap = new HashMap<>();
601
        Map<Integer,Map<String, Double>> fofoBrandMtdTertiaryMap = new HashMap<>();
602
 
602
 
603
        for(Integer fofoId: retailerIds){
603
        for(Integer fofoId: retailerIds){
604
            String rbmName = "";
604
            String rbmName = "";
605
            int rbmL1 = csService.getAuthUserId(ProfitMandiConstants.TICKET_CATEGORY_RBM,EscalationType.L1,fofoId);
605
            int rbmL1 = csService.getAuthUserIdWithoutTicketAssignee(ProfitMandiConstants.TICKET_CATEGORY_RBM,EscalationType.L1,fofoId);
606
            if(rbmL1 != 0){
606
            if(rbmL1 != 0){
607
                 rbmName = authRepository.selectById(rbmL1).getFullName();
607
                 rbmName = authRepository.selectById(rbmL1).getFullName();
608
            }else {
608
            }else {
609
                int rbmL2 = csService.getAuthUserId(ProfitMandiConstants.TICKET_CATEGORY_RBM, EscalationType.L2, fofoId);
609
                int rbmL2 = csService.getAuthUserIdWithoutTicketAssignee(ProfitMandiConstants.TICKET_CATEGORY_RBM, EscalationType.L2, fofoId);
610
                if(rbmL2 != 0){
610
                if(rbmL2 != 0){
611
                    rbmName = authRepository.selectById(rbmL2).getFullName();
611
                    rbmName = authRepository.selectById(rbmL2).getFullName();
612
                }
612
                }
613
            }
613
            }
614
            String bmName ="";
614
            String bmName ="";
615
            int bmId = csService.getAuthUserId(ProfitMandiConstants.TICKET_CATEGORY_SALES,EscalationType.L2,fofoId);
615
            int bmId = csService.getAuthUserIdWithoutTicketAssignee(ProfitMandiConstants.TICKET_CATEGORY_SALES,EscalationType.L2,fofoId);
616
            if(bmId !=0){
616
            if(bmId !=0){
617
                bmName = authRepository.selectById(bmId).getFullName();
617
                bmName = authRepository.selectById(bmId).getFullName();
618
            }
618
            }
619
 
619
 
620
            int managerId = csService.getAuthUserId(ProfitMandiConstants.TICKET_CATEGORY_SALES,EscalationType.L1,fofoId);
620
            int managerId = csService.getAuthUserIdWithoutTicketAssignee(ProfitMandiConstants.TICKET_CATEGORY_SALES,EscalationType.L1,fofoId);
621
            String managerName = " ";
621
            String managerName = " ";
622
            LOGGER.info("managerId {}",managerId);
622
            LOGGER.info("managerId {}",managerId);
623
            if(managerId != 0){
623
            if(managerId != 0){
624
                 managerName = authRepository.selectById(managerId).getFullName();
624
                 managerName = authRepository.selectById(managerId).getFullName();
625
            }else {
625
            }else {
626
                managerName = bmName;
626
                managerName = bmName;
627
            }
627
            }
628
            String abmName ="";
628
            String abmName ="";
629
            int abmId = csService.getAuthUserId(ProfitMandiConstants.TICKET_CATEGORY_ABM,EscalationType.L1,fofoId);
629
            int abmId = csService.getAuthUserIdWithoutTicketAssignee(ProfitMandiConstants.TICKET_CATEGORY_ABM,EscalationType.L1,fofoId);
630
            int abmL2Id = csService.getAuthUserId(ProfitMandiConstants.TICKET_CATEGORY_ABM,EscalationType.L2,fofoId);
630
            int abmL2Id = csService.getAuthUserIdWithoutTicketAssignee(ProfitMandiConstants.TICKET_CATEGORY_ABM,EscalationType.L2,fofoId);
631
            int abmL3Id = csService.getAuthUserId(ProfitMandiConstants.TICKET_CATEGORY_ABM,EscalationType.L3,fofoId);
631
            int abmL3Id = csService.getAuthUserIdWithoutTicketAssignee(ProfitMandiConstants.TICKET_CATEGORY_ABM,EscalationType.L3,fofoId);
632
            if(abmId !=0){
632
            if(abmId !=0){
633
                abmName = authRepository.selectById(abmId).getFullName();
633
                abmName = authRepository.selectById(abmId).getFullName();
634
            }else if(abmL2Id != 0){
634
            }else if(abmL2Id != 0){
635
                abmName = authRepository.selectById(abmL2Id).getFullName();
635
                abmName = authRepository.selectById(abmL2Id).getFullName();
636
            }else if(abmL3Id != 0){
636
            }else if(abmL3Id != 0){