修改申请记录表
This commit is contained in:
@@ -18,9 +18,9 @@ public class JobApplyParam {
|
|||||||
@NotNull(message = "岗位ID不能为空")
|
@NotNull(message = "岗位ID不能为空")
|
||||||
private Long jobId;
|
private Long jobId;
|
||||||
|
|
||||||
/** 投递状态 0=已投递 1=面试中 2=有Offer 3=未通过 4=已结束 */
|
/** 投递状态 -1=待投递 0=已投递 1=面试中 2=有Offer 3=未通过 4=已结束 */
|
||||||
@NotNull(message = "投递状态不能为空")
|
@NotNull(message = "投递状态不能为空")
|
||||||
@Min(value = 0, message = "投递状态值范围0-4")
|
@Min(value = -1, message = "投递状态值范围-1到4")
|
||||||
@Max(value = 4, message = "投递状态值范围0-4")
|
@Max(value = 4, message = "投递状态值范围-1到4")
|
||||||
private Integer status;
|
private Integer status;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -429,7 +429,7 @@ public class JobService {
|
|||||||
public PageResult<JobDto> listApplications(JobApplyQueryParam param, Long userId) {
|
public PageResult<JobDto> listApplications(JobApplyQueryParam param, Long userId) {
|
||||||
// 1. 分页查询投递记录
|
// 1. 分页查询投递记录
|
||||||
Page<UserJobApplication> appPage = new Page<>(param.getPageNum(), param.getPageSize());
|
Page<UserJobApplication> appPage = new Page<>(param.getPageNum(), param.getPageSize());
|
||||||
LambdaQueryWrapper<UserJobApplication> wrapper = new LambdaQueryWrapper<UserJobApplication>().eq(UserJobApplication::getUserId, userId);
|
LambdaQueryWrapper<UserJobApplication> wrapper = new LambdaQueryWrapper<UserJobApplication>().eq(UserJobApplication::getUserId, userId).ne(UserJobApplication::getStatus, -1);
|
||||||
if (param.getStatus() != null) {
|
if (param.getStatus() != null) {
|
||||||
wrapper.eq(UserJobApplication::getStatus, param.getStatus());
|
wrapper.eq(UserJobApplication::getStatus, param.getStatus());
|
||||||
}
|
}
|
||||||
@@ -516,7 +516,7 @@ public class JobService {
|
|||||||
*/
|
*/
|
||||||
public JobApplyCountVo getApplyCount(Long userId) {
|
public JobApplyCountVo getApplyCount(Long userId) {
|
||||||
// 1. 查询所有投递记录
|
// 1. 查询所有投递记录
|
||||||
List<UserJobApplication> applications = userJobApplicationMapper.selectList(new LambdaQueryWrapper<UserJobApplication>().eq(UserJobApplication::getUserId, userId));
|
List<UserJobApplication> applications = userJobApplicationMapper.selectList(new LambdaQueryWrapper<UserJobApplication>().eq(UserJobApplication::getUserId, userId).ne(UserJobApplication::getStatus, -1));
|
||||||
|
|
||||||
// 2. 按状态分组统计
|
// 2. 按状态分组统计
|
||||||
JobApplyCountVo vo = new JobApplyCountVo();
|
JobApplyCountVo vo = new JobApplyCountVo();
|
||||||
|
|||||||
@@ -25,7 +25,7 @@ public class UserJobApplication {
|
|||||||
/** 岗位ID */
|
/** 岗位ID */
|
||||||
private Long jobId;
|
private Long jobId;
|
||||||
|
|
||||||
/** 投递状态 0=已投递 1=面试中 2=有Offer 3=未通过 4=已结束 */
|
/** 投递状态 -1=待投递 0=已投递 1=面试中 2=有Offer 3=未通过 4=已结束 */
|
||||||
private Integer status;
|
private Integer status;
|
||||||
|
|
||||||
/** 投递时间 */
|
/** 投递时间 */
|
||||||
|
|||||||
Reference in New Issue
Block a user