| 
						
						
							
								
							
						
						
					 | 
					 | 
					@ -15,8 +15,10 @@ import com.hnac.hzinfo.inspect.task.service.ITaskUserService; | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					import lombok.AllArgsConstructor; | 
					 | 
					 | 
					 | 
					import lombok.AllArgsConstructor; | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					import lombok.RequiredArgsConstructor; | 
					 | 
					 | 
					 | 
					import lombok.RequiredArgsConstructor; | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					import lombok.extern.slf4j.Slf4j; | 
					 | 
					 | 
					 | 
					import lombok.extern.slf4j.Slf4j; | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					import org.aspectj.lang.JoinPoint; | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					import org.aspectj.lang.ProceedingJoinPoint; | 
					 | 
					 | 
					 | 
					import org.aspectj.lang.ProceedingJoinPoint; | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					import org.aspectj.lang.annotation.After; | 
					 | 
					 | 
					 | 
					import org.aspectj.lang.annotation.After; | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					import org.aspectj.lang.annotation.AfterReturning; | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					import org.aspectj.lang.annotation.Aspect; | 
					 | 
					 | 
					 | 
					import org.aspectj.lang.annotation.Aspect; | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					import org.aspectj.lang.annotation.Pointcut; | 
					 | 
					 | 
					 | 
					import org.aspectj.lang.annotation.Pointcut; | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					import org.springblade.core.secure.utils.AuthUtil; | 
					 | 
					 | 
					 | 
					import org.springblade.core.secure.utils.AuthUtil; | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
							
								
							
						
						
					 | 
					 | 
					@ -67,8 +69,9 @@ public class TaskGenerateAspect { | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    public void taskSaveCutBatch() { | 
					 | 
					 | 
					 | 
					    public void taskSaveCutBatch() { | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    } | 
					 | 
					 | 
					 | 
					    } | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    @After("taskSaveCut()") | 
					 | 
					 | 
					 | 
					    @AfterReturning(value = "taskSaveCut()",returning = "result") | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    private void saveTask(ProceedingJoinPoint joinPoint) throws Throwable { | 
					 | 
					 | 
					 | 
					    private void saveTask(JoinPoint joinPoint,boolean result) throws Throwable { | 
				
			
			
				
				
			
		
	
		
		
	
		
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					        if(result) { | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					            Object[] args = joinPoint.getArgs(); | 
					 | 
					 | 
					 | 
					            Object[] args = joinPoint.getArgs(); | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					            new Thread(() -> { | 
					 | 
					 | 
					 | 
					            new Thread(() -> { | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                if(ObjectUtil.isNotEmpty(args[0]) && args[0] instanceof TaskEntity) { | 
					 | 
					 | 
					 | 
					                if(ObjectUtil.isNotEmpty(args[0]) && args[0] instanceof TaskEntity) { | 
				
			
			
		
	
	
		
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
					 | 
					@ -76,11 +79,12 @@ public class TaskGenerateAspect { | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                    this.pushMessageByTask(task); | 
					 | 
					 | 
					 | 
					                    this.pushMessageByTask(task); | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                } | 
					 | 
					 | 
					 | 
					                } | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					            },"巡检任务消息推送"); | 
					 | 
					 | 
					 | 
					            },"巡检任务消息推送"); | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        joinPoint.proceed(); | 
					 | 
					 | 
					 | 
					        } | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    } | 
					 | 
					 | 
					 | 
					    } | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    @After("taskSaveCutBatch()") | 
					 | 
					 | 
					 | 
					    @AfterReturning(value = "taskSaveCutBatch()",returning = "result") | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    private void saveTaskBatch(ProceedingJoinPoint joinPoint) throws Throwable { | 
					 | 
					 | 
					 | 
					    private void saveTaskBatch(JoinPoint joinPoint,boolean result) throws Throwable { | 
				
			
			
				
				
			
		
	
		
		
	
		
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					        if(result) { | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					            Object[] args = joinPoint.getArgs(); | 
					 | 
					 | 
					 | 
					            Object[] args = joinPoint.getArgs(); | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					            new Thread(() -> { | 
					 | 
					 | 
					 | 
					            new Thread(() -> { | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                if(args.length == 1) { | 
					 | 
					 | 
					 | 
					                if(args.length == 1) { | 
				
			
			
		
	
	
		
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
					 | 
					@ -88,7 +92,7 @@ public class TaskGenerateAspect { | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                    taskList.forEach(this::pushMessageByTask); | 
					 | 
					 | 
					 | 
					                    taskList.forEach(this::pushMessageByTask); | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                } | 
					 | 
					 | 
					 | 
					                } | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					            },"巡检任务消息批量推送").start(); | 
					 | 
					 | 
					 | 
					            },"巡检任务消息批量推送").start(); | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        joinPoint.proceed(); | 
					 | 
					 | 
					 | 
					        } | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    } | 
					 | 
					 | 
					 | 
					    } | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    /** | 
					 | 
					 | 
					 | 
					    /** | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
						
					 | 
					 | 
					
  |