mirror of
https://github.com/ccmjga/zhilu-admin
synced 2026-03-19 17:03:46 +08:00
20 lines
532 B
Java
20 lines
532 B
Java
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()));
|
|
}
|
|
}
|