job
parent
0511f365bb
commit
59a0ea8441
|
|
@ -0,0 +1,34 @@
|
||||||
|
package org.qinan.safetyeval.adapter.job;
|
||||||
|
|
||||||
|
import com.jjb.saas.framework.job.Job;
|
||||||
|
import com.jjb.saas.framework.job.annotation.JobRegister;
|
||||||
|
import com.xxl.job.core.biz.model.ReturnT;
|
||||||
|
import com.xxl.job.core.context.XxlJobHelper;
|
||||||
|
import com.xxl.job.core.handler.annotation.XxlJob;
|
||||||
|
import lombok.RequiredArgsConstructor;
|
||||||
|
import lombok.extern.slf4j.Slf4j;
|
||||||
|
import org.springframework.stereotype.Component;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @author ltq
|
||||||
|
* @since 2026/08/13
|
||||||
|
*/
|
||||||
|
@Component
|
||||||
|
@Slf4j
|
||||||
|
@RequiredArgsConstructor
|
||||||
|
public class EvalProjectProcessWaringTaskJob implements Job {
|
||||||
|
|
||||||
|
|
||||||
|
@Override
|
||||||
|
@XxlJob("org.qinan.safetyeval.adapter.job.EvalProjectProcessWaringTaskJob")
|
||||||
|
@JobRegister(cron = "0/1 * * * * ?",
|
||||||
|
jobDesc = "机构项目风险预警",
|
||||||
|
author = "ltq",
|
||||||
|
triggerStatus = 1)
|
||||||
|
public ReturnT<String> execute(String param) {
|
||||||
|
param = XxlJobHelper.getJobParam();
|
||||||
|
log.info("机构项目风险预警");
|
||||||
|
return ReturnT.SUCCESS;
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue