Subversion Repositories SmartDukaan

Rev

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

Rev 32581 Rev 32886
Line 568... Line 568...
568
				}
568
				}
569
			}
569
			}
570
 
570
 
571
			if (Arrays.asList("amit.gupta@smartdukaan.com", "ranu.rajput@smartdukaan.com",
571
			if (Arrays.asList("amit.gupta@smartdukaan.com", "ranu.rajput@smartdukaan.com",
572
					"shampa.banerjee@smartdukaan.com", "raveendra.bharati@smartdukaan.com", "tejbeer.kaur@smartdukaan.com").contains(email)) {
572
					"shampa.banerjee@smartdukaan.com", "raveendra.bharati@smartdukaan.com", "tejbeer.kaur@smartdukaan.com").contains(email)) {
573
				menus = menuRepository.selectAll();
573
				menus = menuRepository.selectAllBySequence();
574
			} else if (positions.size() > 0) {
574
			} else if (positions.size() > 0) {
575
				if (positions.stream().filter(x -> x.getEscalationType().equals(EscalationType.L5)).count() > 0) {
575
				if (positions.stream().filter(x -> x.getEscalationType().equals(EscalationType.L5)).count() > 0) {
576
					menus = menuRepository.selectAll();
576
					menus = menuRepository.selectAllBySequence();
577
				} else {
577
				} else {
578
					List<Integer> menuIds = menuCategoryRepository.selectAllByPositions(positions).stream()
578
					List<Integer> menuIds = menuCategoryRepository.selectAllByPositions(positions).stream()
579
							.map(x -> x.getMenuId()).collect(Collectors.toList());
579
							.map(x -> x.getMenuId()).collect(Collectors.toList());
580
					if (menuIds.size() > 0) {
580
					if (menuIds.size() > 0) {
581
						menus = menuRepository.selectAllByIds(menuIds);
581
						menus = menuRepository.selectAllByIds(menuIds);