mirror of
https://gitee.com/wangkang/udf.git
synced 2026-10-20 23:05:12 +00:00
更新
This commit is contained in:
@@ -32,10 +32,14 @@ public class GeneralJob extends AbstractBaseJob {
|
||||
//从trigger中获得jobDataMap
|
||||
JobDataMap jobDataMap = jobExecutionContext.getTrigger().getJobDataMap();
|
||||
//获得必要字段
|
||||
String serviceCode = jobDataMap.getString("serviceCode");
|
||||
String beanName = jobDataMap.getString("beanName");
|
||||
Boolean async = jobDataMap.getBoolean("async");
|
||||
Boolean ignore = jobDataMap.getBoolean("ignore");
|
||||
//校验
|
||||
if (StringUtils.isBlank(serviceCode)) {
|
||||
throw new SchException("serviceCode can not be empty");
|
||||
}
|
||||
if (StringUtils.isBlank(beanName)) {
|
||||
throw new SchException("beanName can not be empty");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user