示例#1
0
  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;
  }
示例#2
0
 public List<Industryclass> findAllIndustryClass() throws XueWenServiceException {
   return industryclassRepository.findAll();
 }