feat: Add functionality for companies to query their registered jobs without accessing admin details

This commit is contained in:
2026-07-15 13:18:54 +08:00
parent 5060fb0557
commit 47aedb03fc
6 changed files with 53 additions and 2 deletions

View File

@@ -123,6 +123,11 @@ public interface IPublicJobFairService {
*/
AjaxResult removeCurrentCompanyJob(String jobFairId, Long jobId);
/**
* 查询当前企业已报名的岗位,不返回招聘会管理员详情。
*/
List<Job> getCurrentCompanyJobs(String jobFairId);
/**
* 查询招聘会报名列表
*/

View File

@@ -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());
}
/**
* 为企业端列表补充报名状态和按钮状态。
*/