public List<Industryclass> getAllIndustry() throws XueWenServiceException { List<Industryclass> industryclasses = industryclassRepository.findAll(); if (industryclasses != null && industryclasses.size() > 0) { for (Industryclass industryclass : industryclasses) { List<Jobs> jobs = jobsRepository.findByPId(industryclass.getId()); if (jobs != null && jobs.size() > 0) { industryclass.setIndustryClass(jobs); } } } return industryclasses; }
public List<Industryclass> findAllIndustryClass() throws XueWenServiceException { return industryclassRepository.findAll(); }