Subversion Repositories SmartDukaan

Rev

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

Rev 31662 Rev 31831
Line 30... Line 30...
30
    CsService csService;
30
    CsService csService;
31
 
31
 
32
    @Autowired
32
    @Autowired
33
    PositionRepository positionRepository;
33
    PositionRepository positionRepository;
34
 
34
 
-
 
35
    private static List<Integer> categoryIds = Arrays.asList(ProfitMandiConstants.TICKET_CATEGORY_LOGISTICS,
-
 
36
            ProfitMandiConstants.TICKET_CATEGORY_FINANCIAL_SERVICES, ProfitMandiConstants.TICKET_CATEGORY_CATEGORY,
-
 
37
            ProfitMandiConstants.TICKET_CATEGORY_RBM, ProfitMandiConstants.TICKET_CATEGORY_SALES,
-
 
38
            ProfitMandiConstants.TICKET_CATEGORY_MARKETING, ProfitMandiConstants.TICKET_CATEGORY_ACCOUNTS,
-
 
39
            ProfitMandiConstants.TICKET_CATEGORY_BUSINESSINTELLIGENT, ProfitMandiConstants.TICKET_CATEGORY_STOCKS,
-
 
40
            ProfitMandiConstants.TICKET_CATEGORY_TECHNOLOGY, ProfitMandiConstants.TICKET_CATEGORY_TRAINING);
35
 
41
 
36
    @Override
42
    @Override
37
    public Set<Integer> getAuthFofoIds(String email, boolean active) throws ProfitMandiBusinessException {
43
    public Set<Integer> getAuthFofoIds(String email, boolean active) throws ProfitMandiBusinessException {
38
 
44
 
39
        List<Integer> categoryIds = Arrays.asList(ProfitMandiConstants.TICKET_CATEGORY_LOGISTICS,
-
 
40
                ProfitMandiConstants.TICKET_CATEGORY_FINANCIAL_SERVICES, ProfitMandiConstants.TICKET_CATEGORY_CATEGORY,
-
 
41
                ProfitMandiConstants.TICKET_CATEGORY_RBM, ProfitMandiConstants.TICKET_CATEGORY_SALES,
-
 
42
                ProfitMandiConstants.TICKET_CATEGORY_MARKETING, ProfitMandiConstants.TICKET_CATEGORY_ACCOUNTS,
-
 
43
                ProfitMandiConstants.TICKET_CATEGORY_BUSINESSINTELLIGENT,
-
 
44
                ProfitMandiConstants.TICKET_CATEGORY_TECHNOLOGY, ProfitMandiConstants.TICKET_CATEGORY_TRAINING);
-
 
45
 
45
 
46
        Map<String, Set<Integer>> storeGuyMap = csService.getAuthUserPartnerIdMappingByCategoryIds(categoryIds, active);
46
        Map<String, Set<Integer>> storeGuyMap = csService.getAuthUserPartnerIdMappingByCategoryIds(categoryIds, active);
47
        Set<Integer> authfofoIds = storeGuyMap.get(email);
47
        Set<Integer> authfofoIds = storeGuyMap.get(email);
48
 
48
 
49
        AuthUser authUser = authRepository.selectByEmailOrMobile(email);
49
        AuthUser authUser = authRepository.selectByEmailOrMobile(email);