Subversion Repositories SmartDukaan

Rev

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

Rev 24467 Rev 24468
Line 389... Line 389...
389
		 size=ticketRepository.selectAllCount();
389
		 size=ticketRepository.selectAllCount();
390
		}
390
		}
391
		else
391
		else
392
		{
392
		{
393
			tickets=ticketRepository.selectAllByEscalatedUserType(authUser.getId(),EscalationType.L2, offset, limit);
393
			tickets=ticketRepository.selectAllByEscalatedUserType(authUser.getId(),EscalationType.L2, offset, limit);
394
			if(tickets==null)
394
			if(tickets.size()==0)
395
			{
395
			{
396
				tickets=ticketRepository.selectAllByEscalatedUserType(authUser.getId(),EscalationType.L3, offset, limit);
396
				tickets=ticketRepository.selectAllByEscalatedUserType(authUser.getId(),EscalationType.L3, offset, limit);
397
				size=ticketRepository.selectAllCountByEscalatedUserType(authUser.getId(),EscalationType.L3);
397
				size=ticketRepository.selectAllCountByEscalatedUserType(authUser.getId(),EscalationType.L3);
398
				Map<Integer, CustomRetailer> fofoIdsAndCustomRetailer=csService.getPartnerByFofoIds(tickets);
398
				Map<Integer, CustomRetailer> fofoIdsAndCustomRetailer=csService.getPartnerByFofoIds(tickets);
399
				model.addAttribute("fofoIdsAndCustomRetailer", fofoIdsAndCustomRetailer);
399
				model.addAttribute("fofoIdsAndCustomRetailer", fofoIdsAndCustomRetailer);
Line 433... Line 433...
433
		 tickets=ticketRepository.selectAll(offset, limit,Optional.empty());
433
		 tickets=ticketRepository.selectAll(offset, limit,Optional.empty());
434
		}
434
		}
435
		else
435
		else
436
		{
436
		{
437
			tickets=ticketRepository.selectAllByEscalatedUserType(authUser.getId(),EscalationType.L2, offset, limit);
437
			tickets=ticketRepository.selectAllByEscalatedUserType(authUser.getId(),EscalationType.L2, offset, limit);
438
			if(tickets==null)
438
			if(tickets.size()==0)
439
			{
439
			{
440
				tickets=ticketRepository.selectAllByEscalatedUserType(authUser.getId(),EscalationType.L3, offset, limit);
440
				tickets=ticketRepository.selectAllByEscalatedUserType(authUser.getId(),EscalationType.L3, offset, limit);
441
				Map<Integer, CustomRetailer> fofoIdsAndCustomRetailer=csService.getPartnerByFofoIds(tickets);
441
				Map<Integer, CustomRetailer> fofoIdsAndCustomRetailer=csService.getPartnerByFofoIds(tickets);
442
				model.addAttribute("fofoIdsAndCustomRetailer", fofoIdsAndCustomRetailer);
442
				model.addAttribute("fofoIdsAndCustomRetailer", fofoIdsAndCustomRetailer);
443
			}
443
			}