feat: Add functionality for companies to query their registered jobs without accessing admin details
This commit is contained in:
@@ -123,6 +123,11 @@ public interface IPublicJobFairService {
|
||||
*/
|
||||
AjaxResult removeCurrentCompanyJob(String jobFairId, Long jobId);
|
||||
|
||||
/**
|
||||
* 查询当前企业已报名的岗位,不返回招聘会管理员详情。
|
||||
*/
|
||||
List<Job> getCurrentCompanyJobs(String jobFairId);
|
||||
|
||||
/**
|
||||
* 查询招聘会报名列表
|
||||
*/
|
||||
|
||||
@@ -474,6 +474,17 @@ public class PublicJobFairServiceImpl implements IPublicJobFairService {
|
||||
: AjaxResult.error("岗位移除失败");
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<Job> getCurrentCompanyJobs(String jobFairId) {
|
||||
ensureCompanyOperation();
|
||||
if (StringUtils.isBlank(jobFairId)) {
|
||||
throw new ServiceException("招聘会ID不能为空");
|
||||
}
|
||||
Company company = getCurrentCompanyOrThrow();
|
||||
ensureApproved(jobFairId, company.getCompanyId());
|
||||
return publicJobFairMapper.selectJobListByJobFairIdAndCompanyId(jobFairId, company.getCompanyId());
|
||||
}
|
||||
|
||||
/**
|
||||
* 为企业端列表补充报名状态和按钮状态。
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user