Subversion Repositories SmartDukaan

Rev

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

Rev 35632 Rev 35649
Line 832... Line 832...
832
 
832
 
833
        long startTime = System.currentTimeMillis();
833
        long startTime = System.currentTimeMillis();
834
        long lapTime = startTime;
834
        long lapTime = startTime;
835
 
835
 
836
        AuthUser authUser = authRepository.selectByGmailId(gmailId);
836
        AuthUser authUser = authRepository.selectByGmailId(gmailId);
837
        LOGGER.info("PERF: selectByGmailId took {} ms", System.currentTimeMillis() - lapTime);
-
 
838
        lapTime = System.currentTimeMillis();
-
 
839
 
837
 
840
        // Optimized: get partner IDs only for this specific user instead of ALL users
838
        Map<String, Set<Integer>> storeGuyMap = csService.getAuthUserPartnerIdMapping();
841
        Set<Integer> fofoIds = csService.getPartnerIdsByAuthUserId(authUser.getId());
839
        Set<Integer> fofoIds = storeGuyMap.get(authUser.getEmailId());
842
        LOGGER.info("PERF: getPartnerIdsByAuthUserId took {} ms", System.currentTimeMillis() - lapTime);
-
 
843
        lapTime = System.currentTimeMillis();
-
 
844
        List<String> brands = Arrays.asList("Vivo", "Samsung", "Oppo", "Itel", "Almost New", "Others");
840
        List<String> brands = Arrays.asList("Vivo", "Samsung", "Oppo", "Itel", "Almost New", "Others");
845
 
841
 
-
 
842
 
846
        float totalPartnerTargetSecondary = 0;
843
        float totalPartnerTargetSecondary = 0;
847
        float totalPartnerTargetCollection = 0;
844
        float totalPartnerTargetCollection = 0;
848
        float totalPartnerAchievementSecondary = 0;
845
        float totalPartnerAchievementSecondary = 0;
849
        float totalPartnerAchievementCollection = 0;
846
        float totalPartnerAchievementCollection = 0;
850
        TargetModel tm = new TargetModel();
847
        TargetModel tm = new TargetModel();