feat: Implement job fair company registration review workflow

- Added review status fields to the public_job_fair_company table to manage company registration states (pending, approved, rejected).
- Enhanced PublicJobFairServiceImpl to handle company registration, review, and job management for companies.
- Updated PublicJobFairMapper.xml with new SQL queries for managing company relations and reviews.
- Created migration script to add review fields and set default values for existing records.
- Introduced new permissions for company users to manage job postings and registration status.
- Added utility methods for ensuring proper role checks and company retrieval.
This commit is contained in:
2026-07-15 11:34:31 +08:00
parent 8538de3776
commit 5060fb0557
13 changed files with 1091 additions and 36 deletions

View File

@@ -27,6 +27,28 @@ public interface PublicJobFairMapper extends BaseMapper<PublicJobFair> {
*/
List<PublicJobFairCompanyVO> selectCompanyListByJobFairId(@Param("jobFairId") String jobFairId);
/**
* 查询指定企业在招聘会中的关联记录。
*/
PublicJobFairCompany selectCompanyRelation(@Param("jobFairId") String jobFairId,
@Param("companyId") Long companyId);
/**
* 批量查询指定企业的招聘会报名状态。
*/
List<PublicJobFairCompany> selectCompanyRelations(@Param("jobFairIds") List<String> jobFairIds,
@Param("companyId") Long companyId);
/**
* 查询招聘会企业关联记录。
*/
PublicJobFairCompany selectCompanyRelationById(@Param("id") String id);
/**
* 审核招聘会企业报名。
*/
int updateCompanyReview(PublicJobFairCompany relation);
/**
* 查询招聘会关联的岗位列表
*/
@@ -94,6 +116,12 @@ public interface PublicJobFairMapper extends BaseMapper<PublicJobFair> {
*/
int deleteJobFairCompanyById(@Param("id") String id);
/**
* 删除招聘会中指定企业的全部岗位关联。
*/
int deleteJobFairJobsByCompany(@Param("jobFairId") String jobFairId,
@Param("companyId") Long companyId);
/**
* 添加岗位到招聘会
*/
@@ -109,6 +137,17 @@ public interface PublicJobFairMapper extends BaseMapper<PublicJobFair> {
*/
int deleteJobFairJobById(@Param("id") String id);
/**
* 查询招聘会岗位关联。
*/
PublicJobFairJob selectJobRelation(@Param("jobFairId") String jobFairId,
@Param("jobId") Long jobId);
/**
* 根据关联主键查询招聘会岗位关联。
*/
PublicJobFairJob selectJobRelationById(@Param("id") String id);
/**
* 查询招聘会报名列表(包含用户信息)
*/