|
|
@ -48,7 +48,7 @@ public class MaintenanceTaskSchedule { |
|
|
|
private final IOperMaintenanceTaskService taskService; |
|
|
|
private final IOperMaintenanceTaskService taskService; |
|
|
|
private final IFlowClient flowClient; |
|
|
|
private final IFlowClient flowClient; |
|
|
|
|
|
|
|
|
|
|
|
@XxlJob(TASK_VALUE_MAINTENANCE_TASK_CREATE) |
|
|
|
//@XxlJob(TASK_VALUE_MAINTENANCE_TASK_CREATE)
|
|
|
|
public ReturnT<String> execute(String param) throws Exception { |
|
|
|
public ReturnT<String> execute(String param) throws Exception { |
|
|
|
Date startDate = StringUtil.isNotBlank(param) ? DateUtil.parse(param, DateUtil.PATTERN_DATE) : DateUtil.parse(DateUtil.formatDate(DateUtil.now()), DateUtil.PATTERN_DATE); |
|
|
|
Date startDate = StringUtil.isNotBlank(param) ? DateUtil.parse(param, DateUtil.PATTERN_DATE) : DateUtil.parse(DateUtil.formatDate(DateUtil.now()), DateUtil.PATTERN_DATE); |
|
|
|
Date endDate = DateUtil.parse(DateUtil.formatDate(DateUtil.plusDays(startDate, 1)), DateUtil.PATTERN_DATE); |
|
|
|
Date endDate = DateUtil.parse(DateUtil.formatDate(DateUtil.plusDays(startDate, 1)), DateUtil.PATTERN_DATE); |
|
|
|