|
@@ -137,8 +137,7 @@ public class FlowInstanceServiceImpl extends BaseServiceImpl<FlowInstanceDao, Fl
|
|
|
throw new BaseException("无法撤回流程");
|
|
|
}
|
|
|
LocalDateTime startTime = instance.getStartTime();
|
|
|
- startTime.plusDays(cancelDays);
|
|
|
- if (LocalDateTime.now().isBefore(startTime)) {
|
|
|
+ if (LocalDateTime.now().isAfter(startTime.plusDays(cancelDays))) {
|
|
|
throw new BaseException("流程撤回时间已过");
|
|
|
}
|
|
|
taskService.createTaskQuery().processInstanceId(instanceId).list().forEach(task -> {
|