| 
						
						
							
								
							
						
						
					 | 
					@ -37,10 +37,7 @@ async function list (ctx) { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					      const { pepProjectId, keyword, groupId, groupUnitId, sustainTimeStart, sustainTimeEnd, limit, page } = ctx.query | 
					 | 
					 | 
					      const { pepProjectId, keyword, groupId, groupUnitId, sustainTimeStart, sustainTimeEnd, limit, page } = ctx.query | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					
 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					      const isSuper = judgeSuper(ctx) | 
					 | 
					 | 
					      const isSuper = judgeSuper(ctx) | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					      let anxinStrucIds = null | 
					 | 
					 | 
					      let anxinStrucIds =  await anxinStrucIdRange({ ctx, pepProjectId }) | 
				
			
			
				
				
			
		
	
		
		
			
				
					 | 
					 | 
					      if (!isSuper || pepProjectId) { | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					         anxinStrucIds = await anxinStrucIdRange({ ctx, pepProjectId }) | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					      } | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
	
		
		
			
				
					 | 
					 | 
					      let whereOption = [] | 
					 | 
					 | 
					      let whereOption = [] | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					      if (anxinStrucIds) { | 
					 | 
					 | 
					      if (anxinStrucIds) { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					         whereOption.push(`alarms.StructureId IN (${anxinStrucIds.join(",")})`) | 
					 | 
					 | 
					         whereOption.push(`alarms.StructureId IN (${anxinStrucIds.join(",")})`) | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
						
					 | 
					
  |