|
|
@@ -229,6 +229,7 @@ public class ApplyPlanServiceImpl extends ServiceImpl<ApplyPlanMapper, ApplyPlan |
|
|
|
BeanUtils.copyBeanProp(newApplyPlan, plan); |
|
|
|
newApplyPlan.setId(null); |
|
|
|
newApplyPlan.setTaskStatus(PlanRunStatus.AWAIT_CREATE.getKey()); |
|
|
|
newApplyPlan.setTaskUuid(null); |
|
|
|
newApplyPlan.setNextExecTime(newApplyPlan.getLastExecTime()); |
|
|
|
if (jobQueryBO.getNewData()) { |
|
|
|
if (null != apply.getSupportParam() && apply.getSupportParam() == 1) { |
|
|
@@ -727,8 +728,13 @@ public class ApplyPlanServiceImpl extends ServiceImpl<ApplyPlanMapper, ApplyPlan |
|
|
|
JobStartVO jobStartVO = YinDaoHttpUtils.appStart(applyStartBO); |
|
|
|
ApplyPlan updateApplyPlan = new ApplyPlan(); |
|
|
|
updateApplyPlan.setId(runApplyPlan.getId()); |
|
|
|
updateApplyPlan.setCreateBy("系统创建"); |
|
|
|
updateApplyPlan.setCreateTime(new Date()); |
|
|
|
try{ |
|
|
|
updateApplyPlan.setCreateBy(SecurityUtils.getUsername()); |
|
|
|
updateApplyPlan.setCreateTime(new Date()); |
|
|
|
}catch (Exception e){ |
|
|
|
updateApplyPlan.setCreateBy("系统创建"); |
|
|
|
updateApplyPlan.setCreateTime(new Date()); |
|
|
|
} |
|
|
|
updateApplyPlan.setUpdateBy("系统修改"); |
|
|
|
updateApplyPlan.setUpdateTime(new Date()); |
|
|
|
updateApplyPlan.setStartTime(new Date()); |
|
|
@@ -815,6 +821,7 @@ public class ApplyPlanServiceImpl extends ServiceImpl<ApplyPlanMapper, ApplyPlan |
|
|
|
AtomicBoolean insert = new AtomicBoolean(false); |
|
|
|
|
|
|
|
ApplyPlan applyPlan = new ApplyPlan(); |
|
|
|
applyPlan.setCreateBy(SecurityUtils.getUsername()); |
|
|
|
if ("2".equals(addApplyPlanBO.getExcType())) { |
|
|
|
final CronExpression cron = new CronExpression(addApplyPlanBO.getCronExpression()); |
|
|
|
Date date = new Date(); |
|
|
|