This commit is contained in:
chenyanchang
2026-06-03 15:16:41 +08:00
parent fec3d6eb64
commit 3e8b1d63f3
24 changed files with 198 additions and 37 deletions

View File

@@ -16,6 +16,7 @@ import io.swagger.annotations.ApiParam;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import javax.websocket.server.PathParam;
import java.util.List;
/**
@@ -135,4 +136,18 @@ public class AppFairController extends BaseController
{
return jobFairSignUpService.companySignUp(signUpVO);
}
/**
* 招聘会浏览数记录
*/
@BussinessLog(title = "招聘会浏览记录")
@ApiOperation("招聘会浏览记录")
@GetMapping("/view/add")
public AjaxResult viewAdd(@PathParam("fairId") Long fairId)
{
if (fairId == null) {
return AjaxResult.error("招聘会ID不能为空");
}
return toAjax(jobFairService.updateViewNumById(fairId));
}
}

View File

@@ -17,6 +17,7 @@ import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import org.apache.commons.lang3.ArrayUtils;
import org.apache.commons.lang3.StringUtils;
import org.dromara.easyes.core.biz.EsPageInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
@@ -217,7 +218,7 @@ public class AppJobController extends BaseController
List<String> sensitiveWords = sensitiveWordChecker.checkSensitiveWords(job.getDescription());
if (!sensitiveWords.isEmpty()) {
String errorMsg = "描述中包含敏感词:" + String.join("", sensitiveWords);
return AjaxResult.error(errorMsg);
return AjaxResult.error(errorMsg, sensitiveWords);
}
jobService.publishJob(job);
return success();
@@ -243,4 +244,13 @@ public class AppJobController extends BaseController
}
return success(jobService.selectApplyJobUserList(jobId));
}
@GetMapping("/review/status")
@ApiOperation("审核岗位")
public AjaxResult reviewStatus(@ApiParam("岗位id") @RequestParam("jobId") Long jobId, @ApiParam("审核状态") @RequestParam("reviewStatus") String reviewStatus) {
if (jobId == null || StringUtils.isEmpty(reviewStatus)) {
return AjaxResult.error("请传递岗位ID及审核状态");
}
return success(jobService.updateReviewStatus(jobId, reviewStatus));
}
}