瀏覽代碼

撤回校验

caixiaofeng 7 月之前
父節點
當前提交
8afdf79c7f

+ 1 - 1
flow-workflow/flow-workflow-biz/src/main/java/com/flow/service/impl/FlowInstanceServiceImpl.java

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