Преглед на файлове

fix: 招聘会接口调整

zhangying преди 2 дни
родител
ревизия
a4ea20cfa8

+ 31 - 0
jeecg-boot/jeecg-boot-module/jeecg-module-zjrs/src/main/java/org/jeecg/modules/zjrs/recruitmentfair/controller/RecruitmentFairController.java

@@ -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);
+    }
+
     /**
      * 小程序-查询我的招聘会(企业端)
      */