Subversion Repositories SmartDukaan

Rev

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

Rev 25590 Rev 25592
Line 735... Line 735...
735
				new ByteArrayResource(baos.toByteArray()));
735
				new ByteArrayResource(baos.toByteArray()));
736
	}
736
	}
737
 
737
 
738
	private Map<String, Set<String>> getStoreGuyMap() {
738
	private Map<String, Set<String>> getStoreGuyMap() {
739
		Map<String, Set<String>> storeGuyMap = new HashMap<>();
739
		Map<String, Set<String>> storeGuyMap = new HashMap<>();
740
		List<Position> categoryPositions = positionRepository.selectPositionByCategoryId(ProfitMandiConstants.TICKET_CATEGORY_CATEGORY);
740
		List<Position> categoryPositions = positionRepository.selectPositionByCategoryId(ProfitMandiConstants.TICKET_CATEGORY_SALES);
741
		Map<Integer, Position> positionsMap = categoryPositions.stream().collect(Collectors.toMap(x->x.getId(), x->x));
741
		Map<Integer, Position> positionsMap = categoryPositions.stream().collect(Collectors.toMap(x->x.getId(), x->x));
742
		
742
		
743
		Map<Integer, List<CustomRetailer>> positonPartnerMap = csService.getPositionCustomRetailerMap(categoryPositions);
743
		Map<Integer, List<CustomRetailer>> positonPartnerMap = csService.getPositionCustomRetailerMap(categoryPositions);
744
		for(Map.Entry<Integer, List<CustomRetailer>> positionPartnerEntry : positonPartnerMap.entrySet()) {
744
		for(Map.Entry<Integer, List<CustomRetailer>> positionPartnerEntry : positonPartnerMap.entrySet()) {
745
			int authUserId = positionsMap.get(positionPartnerEntry.getKey()).getAuthUserId();
745
			int authUserId = positionsMap.get(positionPartnerEntry.getKey()).getAuthUserId();