mirror of
https://github.com/ccmjga/zhilu-admin
synced 2026-03-20 01:13:46 +08:00
init
This commit is contained in:
19
backend/src/main/java/com/zl/mjga/job/DataBackupJob.java
Normal file
19
backend/src/main/java/com/zl/mjga/job/DataBackupJob.java
Normal file
@@ -0,0 +1,19 @@
|
||||
package com.zl.mjga.job;
|
||||
|
||||
import java.text.MessageFormat;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.quartz.Job;
|
||||
import org.quartz.JobExecutionContext;
|
||||
|
||||
@Slf4j
|
||||
public class DataBackupJob implements Job {
|
||||
|
||||
@Override
|
||||
public void execute(JobExecutionContext context) {
|
||||
String userId = context.getJobDetail().getJobDataMap().getString("roleId");
|
||||
log.info(
|
||||
MessageFormat.format(
|
||||
"Job execute: JobName {0} Param {1} Thread: {2}",
|
||||
getClass(), userId, Thread.currentThread().getName()));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user