修改定时任务岗位下架

This commit is contained in:
sh
2026-04-02 17:52:45 +08:00
parent c2b62fac6d
commit 73d817bad9

View File

@@ -1406,6 +1406,11 @@ public class JobServiceImpl extends ServiceImpl<JobMapper,Job> implements IJobSe
public void updateJobDown() {
//查询下架岗位
List<Long> ids=jobMapper.getJobDownList();
if (ids == null || ids.isEmpty()) {
System.out.println("【定时任务】暂无需要下架的岗位");
return;
}
//更新岗位状态
jobMapper.updateJobDown(ids);
//刷新es