|
|
|
@ -1,11 +1,19 @@
|
|
|
|
|
package ${basePackage}.module.system.mgr;
|
|
|
|
|
|
|
|
|
|
import com.github.pagehelper.PageHelper;
|
|
|
|
|
import com.github.pagehelper.PageInfo;
|
|
|
|
|
import com.github.pagehelper.util.StringUtil;
|
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
|
import org.springframework.scheduling.support.CronSequenceGenerator;
|
|
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
import org.springframework.transaction.annotation.Transactional;
|
|
|
|
|
import ${basePackage}.frame.auth.Token;
|
|
|
|
|
import ${basePackage}.frame.base.ErrorType;
|
|
|
|
|
import ${basePackage}.frame.schedule.RunCronTask;
|
|
|
|
|
import ${basePackage}.frame.schedule.RunDelayRepeatTask;
|
|
|
|
|
import ${basePackage}.frame.schedule.RunFixRepeatTask;
|
|
|
|
|
import ${basePackage}.frame.schedule.Scheduler;
|
|
|
|
|
import ${basePackage}.frame.schedule.exception.TaskRunException;
|
|
|
|
|
import ${basePackage}.frame.utils.IDgenerator;
|
|
|
|
|
import ${basePackage}.frame.utils.MapperUtil;
|
|
|
|
|
import ${basePackage}.frame.utils.Message;
|
|
|
|
@ -23,13 +31,6 @@ import ${basePackage}.module.system.rsp.TaskSqlDeleteResponse;
|
|
|
|
|
import ${basePackage}.module.system.rsp.TaskSqlFindResponse;
|
|
|
|
|
import ${basePackage}.module.system.rsp.TaskSqlGetResponse;
|
|
|
|
|
import ${basePackage}.module.system.rsp.TaskSqlUpdateResponse;
|
|
|
|
|
import com.github.pagehelper.PageHelper;
|
|
|
|
|
import com.github.pagehelper.PageInfo;
|
|
|
|
|
import com.github.pagehelper.util.StringUtil;
|
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
|
import org.springframework.scheduling.support.CronSequenceGenerator;
|
|
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
import org.springframework.transaction.annotation.Transactional;
|
|
|
|
|
|
|
|
|
|
import java.time.Duration;
|
|
|
|
|
|
|
|
|
@ -257,7 +258,7 @@ public class TaskSqlManagerImpl implements TaskSqlManager {
|
|
|
|
|
try {
|
|
|
|
|
SqlUtil.exec(taskSql.getTaskSql());
|
|
|
|
|
} catch (Exception e) {
|
|
|
|
|
e.printStackTrace();
|
|
|
|
|
throw new TaskRunException("SQL任务执行异常", taskId());
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
@ -285,7 +286,7 @@ public class TaskSqlManagerImpl implements TaskSqlManager {
|
|
|
|
|
try {
|
|
|
|
|
SqlUtil.exec(taskSql.getTaskSql());
|
|
|
|
|
} catch (Exception e) {
|
|
|
|
|
e.printStackTrace();
|
|
|
|
|
throw new TaskRunException("SQL任务执行异常", taskId());
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
@ -313,7 +314,7 @@ public class TaskSqlManagerImpl implements TaskSqlManager {
|
|
|
|
|
try {
|
|
|
|
|
SqlUtil.exec(taskSql.getTaskSql());
|
|
|
|
|
} catch (Exception e) {
|
|
|
|
|
e.printStackTrace();
|
|
|
|
|
throw new TaskRunException("SQL任务执行异常", taskId());
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|