|  | @@ -117,6 +117,9 @@ public class FlowInstanceServiceImpl extends BaseServiceImpl<FlowInstanceDao, Fl
 | 
											
												
													
														|  |                  throw new BaseException("流程已结束,不能撤回");
 |  |                  throw new BaseException("流程已结束,不能撤回");
 | 
											
												
													
														|  |              }
 |  |              }
 | 
											
												
													
														|  |              Integer cancelDays = instance.getCancelDays();
 |  |              Integer cancelDays = instance.getCancelDays();
 | 
											
												
													
														|  | 
 |  | +            if (cancelDays <= 0) {
 | 
											
												
													
														|  | 
 |  | +                throw new BaseException("无法撤回流程");
 | 
											
												
													
														|  | 
 |  | +            }
 | 
											
												
													
														|  |              LocalDateTime startTime = instance.getStartTime();
 |  |              LocalDateTime startTime = instance.getStartTime();
 | 
											
												
													
														|  |              startTime.plusDays(cancelDays);
 |  |              startTime.plusDays(cancelDays);
 | 
											
												
													
														|  |              if (LocalDateTime.now().isAfter(startTime)) {
 |  |              if (LocalDateTime.now().isAfter(startTime)) {
 |