public String sendInterviewNotice() { LoginUserInfoDto userInfo = getLoginUserInfo(); if (userInfo == null) { sendInterviewNoticeStatus = ApplicationConstant.COMMON_UNLOGON; return "sendInterviewNotice"; } else { String userType = userInfo.getUserType(); if (userType == null || "".equalsIgnoreCase(userType)) { sendInterviewNoticeStatus = "permissionDenied"; return "sendInterviewNotice"; } else { if (ApplicationConstant.USER_TYPE_PERSONAL.equalsIgnoreCase(userType)) { sendInterviewNoticeStatus = "userTypeError"; return "sendInterviewNotice"; } } } ApplyJobInfoVo applyJobInfoVo = applyJobService.getApplyJobInfoById(new Long(jobId)); Long receiverId = new Long(applyJobInfoVo.getUserId()); Long senderId = userInfo.getId(); Date currentDate = new Date(); InterviewNoticeDto interviewNoticeDto = new InterviewNoticeDto(); interviewNoticeDto.setSenderId(senderId); interviewNoticeDto.setReceiverId(receiverId); interviewNoticeDto.setTitle(ApplicationConstant.INTERVIEW_NOTICE_TITLE); interviewNoticeDto.setMessage(ApplicationConstant.INTERVIEW_NOTICE_MESSAGE); interviewNoticeDto.setNoticeDate(currentDate); interviewNoticeDto.setStatus("0"); interviewNoticeDto.setJobName(applyJobInfoVo.getExpectedPosition()); if (applyJobService.saveInterviewNotice(interviewNoticeDto, userInfo)) sendInterviewNoticeStatus = SUCCESS; else sendInterviewNoticeStatus = "serviceOutOfDate"; return "sendInterviewNotice"; }
private List<ApplyJobInfoVo> analyzeApplyJobInfoList(List<ApplyJobInfoVo> resultList) { ApplyJobInfoVo result = new ApplyJobInfoVo(); for (int i = 0; i < resultList.size(); i++) { result = resultList.get(i); if (ApplicationConstant.APPLYJOBCTR_YES_EN.equalsIgnoreCase(result.getIsAdvisor())) { result.setIsAdvisorStr(ApplicationConstant.APPLYJOBCTR_YES_CN); } else { result.setIsAdvisorStr(ApplicationConstant.APPLYJOBCTR_NO_CN); } } return resultList; }