update:
执行任务按钮校验任务状态防止重复发起
This commit is contained in:
		@@ -523,6 +523,9 @@ public class CurrTaskServiceImpl extends BaseService implements CurrTaskService
 | 
			
		||||
    @Override
 | 
			
		||||
    public R runTask(Long taskId) throws InterruptedException, IOException {
 | 
			
		||||
        CurrTask currTask = currTaskServiceBiz.getById(taskId);
 | 
			
		||||
        if (currTask.getStatus()!=0){
 | 
			
		||||
            return R.failed("该任务状态不为未执行,无法执行!");
 | 
			
		||||
        }
 | 
			
		||||
        //是否为自动任务
 | 
			
		||||
        if (currTask.getIsAuto()==1){
 | 
			
		||||
            List<AutoExeTask> exeTaskList = autoExeTaskServiceBiz.list(new QueryWrapper<AutoExeTask>().eq(AutoExeTask.F_TASK_ID, taskId));
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user