Subversion Repositories SmartDukaan

Rev

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

Rev 33588 Rev 33773
Line 328... Line 328...
328
 
328
 
329
        LOGGER.info("authUser {}", authUser);
329
        LOGGER.info("authUser {}", authUser);
330
 
330
 
331
        int managerAuthId = authUser.getManagerId();
331
        int managerAuthId = authUser.getManagerId();
332
 
332
 
-
 
333
        TicketSubCategory ticketSubCategory = ticketSubCategoryRepository.selectById(ticket.getSubCategoryId());
-
 
334
        TicketCategory ticketCategory = ticketCategoryRepository.selectById(ticketSubCategory.getCategoryId());
-
 
335
 
-
 
336
        int authUserL2 = this.getAuthUserId(ticketCategory.getId(), EscalationType.L2, ticket.getFofoId());
-
 
337
        int authUserL3 = this.getAuthUserId(ticketCategory.getId(), EscalationType.L3, ticket.getFofoId());
-
 
338
        int authUserL4 = this.getAuthUserId(ticketCategory.getId(), EscalationType.L4, ticket.getFofoId());
-
 
339
        int authUserL5 = this.getAuthUserId(ticketCategory.getId(), EscalationType.L5, ticket.getFofoId());
-
 
340
 
333
        if (escalationType.equals(EscalationType.L1)) {
341
        if (escalationType.equals(EscalationType.L1)) {
334
            ticket.setL1AuthUser(authUserId);
342
            ticket.setL1AuthUser(authUserId);
335
            ticket.setL2AuthUser(0);
343
            ticket.setL2AuthUser(authUserL2);
336
            ticket.setL3AuthUser(0);
344
            ticket.setL3AuthUser(authUserL3);
337
            ticket.setL4AuthUser(0);
345
            ticket.setL4AuthUser(authUserL4);
338
            ticket.setL5AuthUser(0);
346
            ticket.setL5AuthUser(authUserL5);
339
        } else if (escalationType.equals(EscalationType.L2)) {
347
        } else if (escalationType.equals(EscalationType.L2)) {
340
            ticket.setL2AuthUser(authUserId);
348
            ticket.setL2AuthUser(authUserId);
341
            ticket.setL3AuthUser(0);
349
            ticket.setL3AuthUser(authUserL3);
342
            ticket.setL4AuthUser(0);
350
            ticket.setL4AuthUser(authUserL4);
343
            ticket.setL5AuthUser(0);
351
            ticket.setL5AuthUser(authUserL5);
344
        }
352
        }
345
        if (escalationType.equals(EscalationType.L3)) {
353
        if (escalationType.equals(EscalationType.L3)) {
346
            ticket.setL3AuthUser(authUserId);
354
            ticket.setL3AuthUser(authUserId);
347
            ticket.setL4AuthUser(0);
355
            ticket.setL4AuthUser(authUserL4);
348
            ticket.setL5AuthUser(0);
356
            ticket.setL5AuthUser(authUserL5);
349
        }
357
        }
350
        if (escalationType.equals(EscalationType.L4)) {
358
        if (escalationType.equals(EscalationType.L4)) {
351
 
359
 
352
            ticket.setL4AuthUser(authUserId);
360
            ticket.setL4AuthUser(authUserId);
353
            ticket.setL5AuthUser(0);
361
            ticket.setL5AuthUser(authUserL5);
354
        }
362
        }
355
        if (escalationType.equals(EscalationType.L5)) {
363
        if (escalationType.equals(EscalationType.L5)) {
356
            ticket.setL5AuthUser(authUserId);
364
            ticket.setL5AuthUser(authUserId);
357
        }
365
        }
358
 
366