QuartzJobKey jobKey = QuartzJobKey.parse( job.getJobId() );
String groupName = jobKey.getUserName();
if ( trigger instanceof SimpleTrigger ) {
SimpleTrigger simpleTrigger = (SimpleTrigger) trigger;
SimpleJobTrigger simpleJobTrigger = new SimpleJobTrigger();
simpleJobTrigger.setStartTime( simpleTrigger.getStartTime() );
simpleJobTrigger.setEndTime( simpleTrigger.getEndTime() );
simpleJobTrigger.setUiPassParam( (String) job.getJobParams().get( RESERVEDMAPKEY_UIPASSPARAM ) );
long interval = simpleTrigger.getRepeatInterval();
if ( interval > 0 ) {
interval /= 1000;
}
simpleJobTrigger.setRepeatInterval( interval );
simpleJobTrigger.setRepeatCount( simpleTrigger.getRepeatCount() );
job.setJobTrigger( simpleJobTrigger );
} else if ( trigger instanceof CronTrigger ) {
CronTrigger cronTrigger = (CronTrigger) trigger;
ComplexJobTrigger complexJobTrigger = createComplexTrigger( cronTrigger.getCronExpression() );
complexJobTrigger.setUiPassParam( (String) job.getJobParams().get( RESERVEDMAPKEY_UIPASSPARAM ) );