Subversion Repositories SmartDukaan

Rev

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

Rev 25011 Rev 25013
Line 461... Line 461...
461
		List<Integer> categoryIds = new ArrayList<>();
461
		List<Integer> categoryIds = new ArrayList<>();
462
		for(int i=0;i< groups.length();i++) {
462
		for(int i=0;i< groups.length();i++) {
463
			JSONObject groupObject = groups.getJSONObject(i); 
463
			JSONObject groupObject = groups.getJSONObject(i); 
464
			int subCategoryId =  groupObject.getInt("groupValue");
464
			int subCategoryId =  groupObject.getInt("groupValue");
465
			int quantity = groupObject.getJSONObject("doclist").getInt("numFound");
465
			int quantity = groupObject.getJSONObject("doclist").getInt("numFound");
-
 
466
			categoryIds.add(subCategoryId);
466
		}
467
		}
467
		
468
		
468
		List<Category> categories = categoryRepository.selectByIds(categoryIds);
469
		List<Category> categories = categoryRepository.selectByIds(categoryIds);
469
		AtomicInteger i= new AtomicInteger(0);
470
		AtomicInteger i= new AtomicInteger(0);
470
		categories.forEach(x->{
471
		categories.forEach(x->{