|
@@ -2,18 +2,17 @@ package com.citu.module.menduner.system.service.interview;
|
|
|
|
|
|
|
|
|
import com.baomidou.dynamic.datasource.annotation.DSTransactional;
|
|
|
-import com.citu.framework.common.pojo.PageParam;
|
|
|
import com.citu.framework.common.pojo.PageResult;
|
|
|
import com.citu.framework.common.util.object.BeanUtils;
|
|
|
import com.citu.framework.security.core.LoginUser;
|
|
|
import com.citu.module.menduner.common.util.LoginUserContext;
|
|
|
+import com.citu.module.menduner.system.controller.app.interview.vo.AppInterviewInvitePageReqVO;
|
|
|
import com.citu.module.menduner.system.controller.app.interview.vo.AppInterviewInviteRespVO;
|
|
|
import com.citu.module.menduner.system.controller.appadmin.interview.vo.*;
|
|
|
import com.citu.module.menduner.system.controller.base.CommonRespVO;
|
|
|
import com.citu.module.menduner.system.controller.base.contact.EnterpriseUserContactRespVO;
|
|
|
import com.citu.module.menduner.system.controller.base.interview.InterviewInvitePageReqVO;
|
|
|
import com.citu.module.menduner.system.controller.base.interview.InterviewInviteSaveReqVO;
|
|
|
-import com.citu.module.menduner.system.dal.dataobject.enterprise.EnterprisePostDO;
|
|
|
import com.citu.module.menduner.system.dal.dataobject.interview.InterviewInviteDO;
|
|
|
import com.citu.module.menduner.system.dal.mysql.interview.InterviewInviteMapper;
|
|
|
import com.citu.module.menduner.system.dal.mysql.job.JobAdvertisedMapper;
|
|
@@ -135,8 +134,8 @@ public class InterviewInviteServiceImpl implements InterviewInviteService {
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
- public PageResult<AppInterviewInviteRespVO> page(PageParam reqVO) {
|
|
|
- PageResult<AppInterviewInviteRespVO> result = mapper.page(reqVO, LoginUserContext.getUserId());
|
|
|
+ public PageResult<AppInterviewInviteRespVO> page(AppInterviewInvitePageReqVO reqVO) {
|
|
|
+ PageResult<AppInterviewInviteRespVO> result = mapper.page(reqVO, LoginUserContext.getUserId());
|
|
|
result.getList().forEach(resp -> {
|
|
|
EnterpriseUserContactRespVO contactRespVO = userBindService
|
|
|
.getContact(resp.getEnterpriseId(), resp.getInviteUserId());
|
|
@@ -177,11 +176,36 @@ public class InterviewInviteServiceImpl implements InterviewInviteService {
|
|
|
|
|
|
@Override
|
|
|
@DSTransactional
|
|
|
- public void cancellation(AppAdminInterviewInviteReqCancellationVO reqVO) {
|
|
|
+ public void cancellation(AppAdminInterviewInviteCancellationReqVO reqVO) {
|
|
|
InterviewInviteDO interviewInvite = validateInterviewInviteExists(reqVO.getId());
|
|
|
setStatus(interviewInvite, InterviewInviteStatusEnum.CANCELLED);
|
|
|
interviewInvite.setReason(reqVO.getReason());
|
|
|
mapper.updateById(interviewInvite);
|
|
|
}
|
|
|
|
|
|
+ @Override
|
|
|
+ @DSTransactional
|
|
|
+ public void completed(Long id) {
|
|
|
+ InterviewInviteDO interviewInvite = validateInterviewInviteExists(id);
|
|
|
+ setStatus(interviewInvite, InterviewInviteStatusEnum.COMPLETED);
|
|
|
+ mapper.updateById(interviewInvite);
|
|
|
+ }
|
|
|
+
|
|
|
+ @Override
|
|
|
+ @DSTransactional
|
|
|
+ public void feedback(AppAdminInterviewInviteFeedbackReqVO reqVO) {
|
|
|
+ InterviewInviteDO interviewInvite = validateInterviewInviteExists(reqVO.getId());
|
|
|
+ setStatus(interviewInvite, InterviewInviteStatusEnum.FEEDBACK_PROVIDED);
|
|
|
+ interviewInvite.setEvaluate(reqVO.getEvaluate());
|
|
|
+ mapper.updateById(interviewInvite);
|
|
|
+ }
|
|
|
+
|
|
|
+ @Override
|
|
|
+ @DSTransactional
|
|
|
+ public void notAttended(AppAdminInterviewInviteNotAttendedReqVO reqVO) {
|
|
|
+ InterviewInviteDO interviewInvite = validateInterviewInviteExists(reqVO.getId());
|
|
|
+ setStatus(interviewInvite, InterviewInviteStatusEnum.NOT_ATTENDED);
|
|
|
+ interviewInvite.setReason(reqVO.getReason());
|
|
|
+ mapper.updateById(interviewInvite);
|
|
|
+ }
|
|
|
}
|