添加企业对简历投递反馈

This commit is contained in:
chenshaohua
2026-07-21 17:15:43 +08:00
parent 36fb767b8e
commit 950e360a4e
6 changed files with 44 additions and 2 deletions

View File

@@ -166,4 +166,16 @@ public class JobApplyController extends BaseController {
jobApply.setHireSource(StringUtil.HIRE_SOURCE_ZPH);
return success(iJobApplyService.updateJobZphApply(jobApply));
}
@Log(title = "岗位", businessType = BusinessType.UPDATE)
@ApiOperation("企业筛选求职者")
@PreAuthorize("@ss.hasPermi('cms:jobApply:filterQzz')")
@PutMapping("/filterQzz")
public AjaxResult filterQzz(@RequestBody JobApply jobApply)
{
if(jobApply.getId() == null || jobApply.getFilterStatus() == null){
return AjaxResult.error("参数id为空");
}
return success(iJobApplyService.updateFilterQzz(jobApply));
}
}

View File

@@ -273,4 +273,10 @@ public class Job extends BaseEntity
//简历是否被查看
@TableField(exist = false)
private String isView;
@TableField(exist = false)
private String filterStatus;
@TableField(exist = false)
private String filterReason;
}

View File

@@ -50,4 +50,10 @@ public class JobApply extends BaseEntity
@ApiModelProperty("是否已被查看 0未查看 1已查看")
private String isView;
@ApiModelProperty("筛选状态 同意0,不同意2")
private String filterStatus;
@ApiModelProperty("筛选原因")
private String filterReason;
}

View File

@@ -74,4 +74,6 @@ public interface IJobApplyService
public int updateJobZphApply(JobApply jobApply);
JobApply selectByJobIdAndUserId(Long jobId, Long userId);
public int updateFilterQzz(JobApply jobApply);
}

View File

@@ -1,6 +1,7 @@
package com.ruoyi.cms.service.impl;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruoyi.cms.domain.*;
@@ -189,4 +190,17 @@ public class JobApplyServiceImpl extends ServiceImpl<JobApplyMapper,JobApply> im
public JobApply selectByJobIdAndUserId(Long jobId, Long userId) {
return jobApplyMapper.selectByJobIdAndUserId(jobId, userId);
}
@Override
public int updateFilterQzz(JobApply jobApply) {
if (jobApply == null || jobApply.getId() == null) {
throw new IllegalArgumentException("ID不能为空");
}
LambdaUpdateWrapper<JobApply> updateWrapper = Wrappers.lambdaUpdate();
updateWrapper.eq(JobApply::getDelFlag,"0")
.eq(JobApply::getId, jobApply.getId())
.set(JobApply::getFilterStatus, jobApply.getFilterStatus())
.set(JobApply::getFilterReason, jobApply.getFilterReason());
return jobApplyMapper.update(null, updateWrapper);
}
}