|
|
@@ -248,6 +248,37 @@ public class RecruitmentFairController extends JeecgController<RecruitmentFair,
|
|
|
return Result.OK("取消报名成功!");
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * 小程序-查询企业是否已报名招聘会
|
|
|
+ */
|
|
|
+ @Operation(summary = "小程序-查询企业是否已报名招聘会")
|
|
|
+ @GetMapping(value = "/checkEnterpriseApplied")
|
|
|
+ public Result<Boolean> checkEnterpriseApplied(
|
|
|
+ @RequestParam(name = "fairId", required = true) String fairId,
|
|
|
+ @RequestParam(name = "enterpriseId", required = true) String enterpriseId) {
|
|
|
+ QueryWrapper<RecruitmentFairEnterprise> wrapper = new QueryWrapper<>();
|
|
|
+ wrapper.eq("fair_id", fairId);
|
|
|
+ wrapper.eq("enterprise_id", enterpriseId);
|
|
|
+ Long count = fairEnterpriseMapper.selectCount(wrapper);
|
|
|
+ return Result.OK(count > 0);
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 小程序-查询个人是否已报名招聘会
|
|
|
+ */
|
|
|
+ @Operation(summary = "小程序-查询个人是否已报名招聘会")
|
|
|
+ @GetMapping(value = "/checkPersonalSigned")
|
|
|
+ public Result<Boolean> checkPersonalSigned(
|
|
|
+ @RequestParam(name = "fairId", required = true) String fairId,
|
|
|
+ @RequestParam(name = "personalId", required = true) String personalId) {
|
|
|
+ QueryWrapper<RecruitmentFairPersonal> wrapper = new QueryWrapper<>();
|
|
|
+ wrapper.eq("fair_id", fairId);
|
|
|
+ wrapper.eq("personal_id", personalId);
|
|
|
+ wrapper.ne("status", "2"); // 排除已取消的
|
|
|
+ Long count = fairPersonalMapper.selectCount(wrapper);
|
|
|
+ return Result.OK(count > 0);
|
|
|
+ }
|
|
|
+
|
|
|
/**
|
|
|
* 小程序-查询我的招聘会(企业端)
|
|
|
*/
|