@Override
 public void active(String type, String id) throws ServiceException {
   // TODO Auto-generated method stub
   if (type.equals("0")) { // 内部推荐
     RecruitmentInsideApplyModel model = recruitmentInsideApplyDAO.get(id);
     model.setActiveFlag(1);
     recruitmentInsideApplyDAO.merge(model);
   } else { // 外部
     RecruitmentOutsideApplyModel model = recruitmentOutsideApplyDAO.get(id);
     model.setActiveFlag(1);
     recruitmentOutsideApplyDAO.merge(model);
   }
 }
 private List<RecruitmentApplyVO> getRecruitmentApplyListByStage(String id, Integer stage)
     throws ServiceException {
   List<RecruitmentApplyVO> results = new ArrayList<RecruitmentApplyVO>();
   List<RecruitmentInsideApplyModel> insides =
       recruitmentInsideApplyDAO.getRecruitmentInsideAppliesByStage(id, stage);
   List<RecruitmentOutsideApplyModel> outsides =
       recruitmentOutsideApplyDAO.getRecruitmentOutsideApplysByStage(id, stage);
   if (insides != null && insides.size() > 0)
     for (RecruitmentInsideApplyModel model : insides) {
       RecruitmentApplyVO vo = new RecruitmentApplyVO();
       vo.setId(model.getId());
       vo.setStage(model.getStage());
       vo.setApplyTime(model.getApplyTime());
       vo.setStageState(model.getStageState());
       vo.setType(0);
       vo.setActiveFlag(model.getActiveFlag());
       vo.setUserName(model.getName());
       results.add(vo);
     }
   if (outsides != null && outsides.size() > 0)
     for (RecruitmentOutsideApplyModel model : outsides) {
       RecruitmentApplyVO vo = new RecruitmentApplyVO();
       vo.setId(model.getId());
       vo.setStage(model.getStage());
       vo.setRecommandUserId(model.getRecommandUserId());
       vo.setApplyTime(model.getRecommandTime());
       vo.setStageState(model.getStageState());
       vo.setType(1);
       vo.setActiveFlag(model.getActiveFlag());
       vo.setUserName(model.getName());
       results.add(vo);
     }
   return results;
 }