定时任务导出增加并发执行字段
This commit is contained in:
@ -123,7 +123,7 @@ public class SysJobController extends BaseController
|
||||
@RequiresPermissions("monitor:job:add")
|
||||
@PostMapping("/add")
|
||||
@ResponseBody
|
||||
public AjaxResult addSave(SysJob job) throws Exception
|
||||
public AjaxResult addSave(SysJob job) throws SchedulerException, TaskException
|
||||
{
|
||||
return toAjax(jobService.insertJobCron(job));
|
||||
}
|
||||
|
@ -48,6 +48,7 @@ public class SysJob extends BaseEntity implements Serializable
|
||||
private String misfirePolicy = ScheduleConstants.MISFIRE_DEFAULT;
|
||||
|
||||
/** 是否并发执行(0允许 1禁止) */
|
||||
@Excel(name = "并发执行", readConverterExp = "0=允许,1=禁止")
|
||||
private String concurrent;
|
||||
|
||||
/** 任务状态(0正常 1暂停) */
|
||||
|
@ -3,7 +3,6 @@ package com.ruoyi.quartz.domain;
|
||||
import java.util.Date;
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import com.ruoyi.common.annotation.Excel;
|
||||
import com.ruoyi.common.core.domain.BaseEntity;
|
||||
|
||||
@ -49,11 +48,9 @@ public class SysJobLog extends BaseEntity
|
||||
private String exceptionInfo;
|
||||
|
||||
/** 开始时间 */
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
private Date startTime;
|
||||
|
||||
/** 结束时间 */
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
private Date endTime;
|
||||
|
||||
public Long getJobLogId()
|
||||
|
@ -33,11 +33,6 @@ public class JobInvokeUtil
|
||||
* @param bean 目标对象
|
||||
* @param methodName 方法名称
|
||||
* @param methodParams 方法参数
|
||||
* @throws InvocationTargetException
|
||||
* @throws SecurityException
|
||||
* @throws NoSuchMethodException
|
||||
* @throws IllegalArgumentException
|
||||
* @throws IllegalAccessException
|
||||
*/
|
||||
private static void invokeSpringBean(Object bean, String methodName, String methodParams)
|
||||
throws NoSuchMethodException, SecurityException, IllegalAccessException, IllegalArgumentException,
|
||||
|
Reference in New Issue
Block a user