|
|
@ -57,6 +57,7 @@ public class SeekServiceImpl implements SeekService { |
|
|
|
Page<EmploySeek> pageList = employSeekService.lambdaQuery() |
|
|
|
.like(employSeek.getAddress() != null, EmploySeek::getAddress, employSeek.getAddress()) |
|
|
|
.orderByDesc(EmploySeek::getCreateTime) |
|
|
|
.notIn(EmploySeek::getSeekStatus, 1, 2) |
|
|
|
.page(page); |
|
|
|
//创建一个新的集合 |
|
|
|
for (EmploySeek seek : pageList.getRecords()) { |
|
|
@ -76,6 +77,16 @@ public class SeekServiceImpl implements SeekService { |
|
|
|
one.setCategoryOne(employCategoryService.getById(one.getCategoryOne()).getName()); |
|
|
|
one.setCategoryTwo(employCategoryService.getById(one.getCategoryTwo()).getName()); |
|
|
|
|
|
|
|
List<EmployOrder> list = employOrderService.lambdaQuery() |
|
|
|
.orderByDesc(EmployOrder::getStatus, EmployOrder::getCreateTime) |
|
|
|
.eq(EmployOrder::getSeekId, one.getId()).list(); |
|
|
|
|
|
|
|
for (EmployOrder employOrder : list) { |
|
|
|
employOrder.setEmployAuthenticationCompany(employAuthenticationCompanyService.getById(employOrder.getCompanyId())); |
|
|
|
} |
|
|
|
|
|
|
|
one.setEmployOrder(list); |
|
|
|
|
|
|
|
return Result.OK("求职信息查询成功", one); |
|
|
|
} |
|
|
|
//求职信息-添加求职信息 |
|
|
@ -136,8 +147,12 @@ public class SeekServiceImpl implements SeekService { |
|
|
|
for (EmploySeek seek : pageList.getRecords()) { |
|
|
|
seek.setHanHaiMember(hanHaiMemberService.getById(seek.getUserId())); |
|
|
|
seek.setEmployResume(employResumeService.getById(seek.getResumeId())); |
|
|
|
EmployOrder one = employOrderService.lambdaQuery().eq(EmployOrder::getSeekId, seek.getId()).one(); |
|
|
|
seek.setEmployOrder(one); |
|
|
|
|
|
|
|
List<EmployOrder> list = employOrderService.lambdaQuery() |
|
|
|
.orderByDesc(EmployOrder::getStatus, EmployOrder::getCreateTime) |
|
|
|
.eq(EmployOrder::getSeekId, seek.getId()).list(); |
|
|
|
seek.setEmployOrder(list); |
|
|
|
|
|
|
|
} |
|
|
|
return Result.OK("求职信息查询成功", pageList); |
|
|
|
} |
|
|
|