Ejemplo n.º 1
0
 /**
  * 求职中心首页初始化时加载顾问列表
  *
  * @param size
  */
 private void loadAdrisorList(int size) {
   ApplyJobInfoDto advisorDto = new ApplyJobInfoDto();
   advisorDto.setIsAdvisor(ApplicationConstant.COMMON_Y_EN);
   advisorDto.setActStatus(ApplicationConstant.APPLYJOBCTR_ACTSTATUS_ACTIVE);
   advisorList =
       applyJobService.queryApplyJobInfoList(
           advisorDto, ApplicationConstant.APPLYJOBCTR_LIST_MAX_RESULT);
 }
Ejemplo n.º 2
0
 public String morePartTimeJobseeker() {
   countOFEnterprise = peopleExcavateService.getCountOFEnterprise();
   if (pageInfo == null) {
     pageInfo = new PageInfo();
   }
   pageInfo.setPageSize(ApplicationConstant.APPLYJOBCTR_PAGE_SIZE);
   ApplyJobInfoDto applyJobInfoDto = new ApplyJobInfoDto();
   applyJobInfoDto.setJobTypeCode(ApplicationConstant.PART_TIME_WORK);
   applyJobInfoDto.setActStatus(ApplicationConstant.APPLYJOBCTR_ACTSTATUS_ACTIVE);
   partTimeList = applyJobService.queryApplyJobInfoList(pageInfo, applyJobInfoDto);
   return "morePartTimeJobSeeker";
 }
Ejemplo n.º 3
0
 public String moreAdvisor() {
   countOFEnterprise = peopleExcavateService.getCountOFEnterprise();
   if (pageInfo == null) {
     pageInfo = new PageInfo();
   }
   pageInfo.setPageSize(ApplicationConstant.APPLYJOBCTR_PAGE_SIZE);
   ApplyJobInfoDto applyJobInfoDto = new ApplyJobInfoDto();
   applyJobInfoDto.setIsAdvisor(ApplicationConstant.COMMON_Y_EN);
   applyJobInfoDto.setActStatus(ApplicationConstant.APPLYJOBCTR_ACTSTATUS_ACTIVE);
   advisorList = applyJobService.queryApplyJobInfoList(pageInfo, applyJobInfoDto);
   return "moreAdvisor";
 }
Ejemplo n.º 4
0
 public String viewJobseeker4ParticularCity() {
   countOFEnterprise = peopleExcavateService.getCountOFEnterprise();
   if (pageInfo == null) {
     pageInfo = new PageInfo();
   }
   pageInfo.setPageSize(ApplicationConstant.APPLYJOBCTR_PAGE_SIZE);
   request = ServletActionContext.getRequest();
   if (cityCode == null || cityCode == "") {
     cityCode = request.getParameter("cityCode");
   }
   cityName = RegionDataUtil.getCityByCode(cityCode).getName();
   ApplyJobInfoDto applyJobInfoDto = new ApplyJobInfoDto();
   applyJobInfoDto.setCityCode(cityCode);
   applyJobInfoDto.setActStatus(ApplicationConstant.APPLYJOBCTR_ACTSTATUS_ACTIVE);
   applyJobInfoList = applyJobService.queryApplyJobInfoList(pageInfo, applyJobInfoDto);
   return "viewJobseeker4ParticularCity";
 }
Ejemplo n.º 5
0
  public String submitApplyJobInfo() {
    if (!verifyPersonalUser()) {
      return "closeWindow";
    }
    LoginUserInfoDto loginUserInfo = getLoginUserInfo();
    Long userId = loginUserInfo.getId();
    applyJobInfoDto.setActStatus("A");
    applyJobInfoDto.setLastEditDate(new Date());
    applyJobInfoDto.setSubmitDate(new Date());
    applyJobInfoDto.setUserId(userId);
    ApplyJobInfoDto tempDto = new ApplyJobInfoDto();
    tempDto.setUserId(userId);
    tempDto.setExpectedPosition(applyJobInfoDto.getExpectedPosition());
    tempDto.setIsAdvisor(applyJobInfoDto.getIsAdvisor());
    tempDto.setJobTypeCode(applyJobInfoDto.getJobTypeCode());
    tempDto.setFunctionCode(applyJobInfoDto.getFunctionCode());
    int size = applyJobService.queryDuplicatedIntentionCount(tempDto);

    // 求职意向重复
    if (size > 0) {
      actionMessage = "求职意向重复,请重新输入求职信息!";
      return toApplyJob();
    }

    // 判断用户是否已经是线下推荐对象
    if (pageInfo == null) {
      pageInfo = new PageInfo();
    }
    pageInfo.setPageSize(10);
    if (ApplicationConstant.COMMON_Y_EN.equalsIgnoreCase(isApplyRecommendation)) {
      RecommendationDto recommendationDto = new RecommendationDto();
      recommendationDto.setUserId(userId);
      List<RecommendationVo> recommendationList =
          applyJobService.queryRecommendationList(pageInfo, recommendationDto);

      // 用户已经是线下推荐对象
      if (recommendationList != null && !recommendationList.isEmpty()) {
        isApplyRecommendation = null;
      }
    }
    applyJobService.saveApplyJobInfo(applyJobInfoDto, isApplyRecommendation);
    HtmlGeneration htmlGeneration = HtmlGeneration.getInstance();
    htmlGeneration.refreshApplyJobPage();
    isApplyRecommendation = null; // 重置
    return "submitApplyJobInfo";
  }
Ejemplo n.º 6
0
 /**
  * 求职中心首页初始化时加载兼职列表
  *
  * @param size
  */
 private void loadPartTimeJobseekerList(int size) {
   ApplyJobInfoDto partTimeDto = new ApplyJobInfoDto();
   partTimeDto.setJobTypeCode(ApplicationConstant.PART_TIME_WORK);
   partTimeDto.setActStatus(ApplicationConstant.APPLYJOBCTR_ACTSTATUS_ACTIVE);
   partTimeList = applyJobService.queryApplyJobInfoList(partTimeDto, size);
 }