Exemplo n.º 1
0
 public void insertIndustryclass(String industryclass, String pid) throws XueWenServiceException {
   List<Object> names = StringToList.tranfer(industryclass);
   for (Object obj : names) {
     Industryclass ind = new Industryclass();
     ind.setName(obj.toString());
     ind.setpId(pid);
     industryclassRepository.save(ind);
   }
 }
Exemplo n.º 2
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;
  }
Exemplo n.º 3
0
 public List<Industryclass> findAllIndustryClass() throws XueWenServiceException {
   return industryclassRepository.findAll();
 }
Exemplo n.º 4
0
 public Industryclass findIndustryClass(String id) throws XueWenServiceException {
   return industryclassRepository.findOneById(id);
 }