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