添加微信抓取判重的方法

This commit is contained in:
sh
2025-12-11 15:51:13 +08:00
parent 6385dd163b
commit 3822488f26
5 changed files with 46 additions and 8 deletions

View File

@@ -346,6 +346,12 @@ public class CmsJobController extends BaseController
if (job.getJobContactList() == null) {
job.setJobContactList(new ArrayList<>());
}
return toAjax(jobService.insertJob(job));
Integer total=jobService.getTotals(job);
int totalNum = total != null ? total : 0;
System.out.println("岗位条数======================"+totalNum);
if (totalNum == 0) {
return toAjax(jobService.insertJob(job));
}
return AjaxResult.success("此岗位已存在!");
}
}