邀请面试完善
This commit is contained in:
parent
364b9d0ff4
commit
e30287d0d5
|
@ -22,11 +22,10 @@ public class VxInterviewController {
|
|||
@PostMapping("addInterviewApplication")
|
||||
public R addInterviewApplication( @RequestParam(value = "jobId")Integer jobId,
|
||||
@RequestParam(value = "userId")Integer userId,
|
||||
@RequestParam(value = "resumeId")Integer resumeId,
|
||||
@RequestParam(value = "postingId")Integer postingId,
|
||||
@RequestParam(value = "companyEncoding")String companyEncoding,
|
||||
@RequestParam(value = "status")Integer status){
|
||||
Integer rows=vxInterviewApplicationService.addInterviewApplication(jobId,userId,resumeId,postingId,companyEncoding,status);
|
||||
@RequestParam(value = "companyEncoding")String companyEncoding
|
||||
){
|
||||
Integer rows=vxInterviewApplicationService.addInterviewApplication(jobId,userId,postingId,companyEncoding);
|
||||
if(rows==-2){
|
||||
return R.error("申请失败");
|
||||
}
|
||||
|
|
|
@ -4,5 +4,5 @@ import com.baomidou.mybatisplus.extension.service.IService;
|
|||
import com.yzdx.AiInterviewer.entity.vxEntity.VxInterviewApplication;
|
||||
|
||||
public interface VxInterviewApplicationService extends IService<VxInterviewApplication> {
|
||||
Integer addInterviewApplication(Integer jobId, Integer userId, Integer resumeId, Integer postingId, String companyEncoding, Integer status);
|
||||
Integer addInterviewApplication(Integer jobId, Integer userId, Integer postingId, String companyEncoding);
|
||||
}
|
||||
|
|
|
@ -2,7 +2,9 @@ package com.yzdx.AiInterviewer.service.VxService.impl;
|
|||
|
||||
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import com.yzdx.AiInterviewer.entity.Resume;
|
||||
import com.yzdx.AiInterviewer.entity.vxEntity.VxInterviewApplication;
|
||||
import com.yzdx.AiInterviewer.mapper.ResumeMapper;
|
||||
import com.yzdx.AiInterviewer.mapper.VxMapper.VxInterviewApplicationMapper;
|
||||
import com.yzdx.AiInterviewer.service.VxService.VxInterviewApplicationService;
|
||||
import com.yzdx.AiInterviewer.utiles.TimeUtil;
|
||||
|
@ -13,8 +15,11 @@ import org.springframework.stereotype.Service;
|
|||
public class VxInterviewApplicationServiceImpl extends ServiceImpl<VxInterviewApplicationMapper, VxInterviewApplication> implements VxInterviewApplicationService {
|
||||
@Autowired
|
||||
private VxInterviewApplicationMapper vxInterviewApplicationMapper;
|
||||
@Autowired
|
||||
private ResumeMapper resumeMapper;
|
||||
|
||||
@Override
|
||||
public Integer addInterviewApplication(Integer jobId, Integer userId, Integer resumeId, Integer postingId, String companyEncoding, Integer status) {
|
||||
public Integer addInterviewApplication(Integer jobId, Integer userId, Integer postingId, String companyEncoding) {
|
||||
LambdaQueryWrapper<VxInterviewApplication> queryWrapper=new LambdaQueryWrapper<>();
|
||||
queryWrapper.eq(VxInterviewApplication::getJobId,jobId).eq(VxInterviewApplication::getPostingId,postingId);
|
||||
VxInterviewApplication vxInterviewApplication = vxInterviewApplicationMapper.selectOne(queryWrapper);
|
||||
|
@ -26,8 +31,13 @@ public class VxInterviewApplicationServiceImpl extends ServiceImpl<VxInterviewAp
|
|||
vxInterviewApplication1.setCompanyEncoding(companyEncoding);
|
||||
vxInterviewApplication1.setPostingId(postingId);
|
||||
vxInterviewApplication1.setUserId(userId);
|
||||
vxInterviewApplication1.setResumeId(resumeId);
|
||||
vxInterviewApplication1.setStatus(status);
|
||||
//获取用户简历id
|
||||
LambdaQueryWrapper<Resume> queryWrapper1=new LambdaQueryWrapper<>();
|
||||
|
||||
queryWrapper1.eq(Resume::getUserId,userId);
|
||||
|
||||
Resume resume = resumeMapper.selectOne(queryWrapper1);
|
||||
vxInterviewApplication1.setResumeId(resume.getId());
|
||||
vxInterviewApplication1.setCreateTime(TimeUtil.getTime());
|
||||
vxInterviewApplication1.setUpdateTime(TimeUtil.getTime());
|
||||
vxInterviewApplication1.setCreateUser(userId);
|
||||
|
|
|
@ -139,7 +139,6 @@ public class InvitePromoteServiceImpl extends ServiceImpl<InvitePromoteMapper, I
|
|||
questions.add(getQuestion);
|
||||
|
||||
}
|
||||
|
||||
invitePromoteDto.setQuestions(questions);
|
||||
|
||||
return invitePromoteDto;
|
||||
|
|
Loading…
Reference in New Issue