From cdec6945dda92b20339495706260c6d9bf0e59b9 Mon Sep 17 00:00:00 2001 From: ljq <2660820526@qq.com> Date: Sat, 9 Dec 2023 11:10:53 +0800 Subject: [PATCH] =?UTF-8?q?=E9=9D=A2=E8=AF=95=E8=AE=B0=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../controller/RecruitmentController.java | 11 +++++++++-- .../VxService/VxInterviewApplicationService.java | 4 ++++ .../impl/VxInterviewApplicationServiceImpl.java | 10 ++++++++++ 3 files changed, 23 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/yzdx/AiInterviewer/controller/RecruitmentController.java b/src/main/java/com/yzdx/AiInterviewer/controller/RecruitmentController.java index 45bb67a..4c24b9c 100644 --- a/src/main/java/com/yzdx/AiInterviewer/controller/RecruitmentController.java +++ b/src/main/java/com/yzdx/AiInterviewer/controller/RecruitmentController.java @@ -6,10 +6,12 @@ import com.yzdx.AiInterviewer.entity.JobEntity; import com.yzdx.AiInterviewer.entity.dto.JobDto; import com.yzdx.AiInterviewer.entity.dto.JobPostingDto; import com.yzdx.AiInterviewer.entity.dto.JobSettingDto; +import com.yzdx.AiInterviewer.entity.vxEntity.VxInterviewApplication; import com.yzdx.AiInterviewer.service.CompanyService; import com.yzdx.AiInterviewer.service.InterviewSettingService; import com.yzdx.AiInterviewer.service.JobListService; import com.yzdx.AiInterviewer.service.JobPostingService; +import com.yzdx.AiInterviewer.service.VxService.VxInterviewApplicationService; import io.swagger.annotations.*; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.*; @@ -30,6 +32,8 @@ public class RecruitmentController { private CompanyService companyService; @Autowired private JobPostingService jobPostingService; + @Autowired + private VxInterviewApplicationService vxInterviewApplicationService; @ApiImplicitParams({ @@ -425,8 +429,11 @@ public class RecruitmentController { List jobPostingDtos=jobPostingService.getJobPostingList(encoding); return R.success(jobPostingDtos); - - + } + @GetMapping("/getApplicationList") + public R getApplicationList(String companyEncoding,Integer jobId){ + List list=vxInterviewApplicationService.getApplicationList(companyEncoding,jobId); + return R.success(list); } } diff --git a/src/main/java/com/yzdx/AiInterviewer/service/VxService/VxInterviewApplicationService.java b/src/main/java/com/yzdx/AiInterviewer/service/VxService/VxInterviewApplicationService.java index a72132f..2edf3c7 100644 --- a/src/main/java/com/yzdx/AiInterviewer/service/VxService/VxInterviewApplicationService.java +++ b/src/main/java/com/yzdx/AiInterviewer/service/VxService/VxInterviewApplicationService.java @@ -3,6 +3,8 @@ package com.yzdx.AiInterviewer.service.VxService; import com.baomidou.mybatisplus.extension.service.IService; import com.yzdx.AiInterviewer.entity.vxEntity.VxInterviewApplication; +import java.util.List; + public interface VxInterviewApplicationService extends IService { /** * vx投递简历 @@ -15,6 +17,8 @@ public interface VxInterviewApplicationService extends IService getApplicationList(String companyEncoding, Integer jobId); + /** * Hr端获取面试申请 diff --git a/src/main/java/com/yzdx/AiInterviewer/service/VxService/impl/VxInterviewApplicationServiceImpl.java b/src/main/java/com/yzdx/AiInterviewer/service/VxService/impl/VxInterviewApplicationServiceImpl.java index 1a8653a..5014b7f 100644 --- a/src/main/java/com/yzdx/AiInterviewer/service/VxService/impl/VxInterviewApplicationServiceImpl.java +++ b/src/main/java/com/yzdx/AiInterviewer/service/VxService/impl/VxInterviewApplicationServiceImpl.java @@ -11,6 +11,8 @@ import com.yzdx.AiInterviewer.utiles.TimeUtil; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; +import java.util.List; + @Service public class VxInterviewApplicationServiceImpl extends ServiceImpl implements VxInterviewApplicationService { @Autowired @@ -45,4 +47,12 @@ public class VxInterviewApplicationServiceImpl extends ServiceImpl getApplicationList(String companyEncoding, Integer jobId) { + LambdaQueryWrapper queryWrapper=new LambdaQueryWrapper<>(); + queryWrapper.eq(VxInterviewApplication::getCompanyEncoding,companyEncoding).eq(VxInterviewApplication::getJobId,jobId); + List list = vxInterviewApplicationMapper.selectList(queryWrapper); + return list; + } }