回传任务表 定时回传

This commit is contained in:
liuhanqing
2025-09-25 15:57:49 +08:00
parent 535ef2fd6b
commit 91394ef32e
5 changed files with 61 additions and 22 deletions

View File

@@ -2,6 +2,8 @@ package com.ruoyi.job.controller;
import java.util.List;
import javax.servlet.http.HttpServletResponse;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
@@ -23,7 +25,7 @@ import com.ruoyi.common.core.page.TableDataInfo;
/**
* 任务完成回传Controller
*
*
* @author ruoyi
* @date 2025-09-25
*/
@@ -101,4 +103,9 @@ public class JobCallBackController extends BaseController
{
return toAjax(jobCallBackService.deleteJobCallBackByIds(ids));
}
@Scheduled(fixedDelay=1500)
public void jobCallBack() {
jobCallBackService.jobCallBack();
}
}