添加微信抓取判重的方法
This commit is contained in:
@@ -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("此岗位已存在!");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user