| 
						
						
							
								
							
						
						
					 | 
					 | 
					@ -29,6 +29,8 @@ import org.springblade.core.oss.OssTemplate; | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					import org.springblade.core.oss.model.BladeFile; | 
					 | 
					 | 
					 | 
					import org.springblade.core.oss.model.BladeFile; | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					import org.springblade.core.tool.api.R; | 
					 | 
					 | 
					 | 
					import org.springblade.core.tool.api.R; | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					import org.springblade.core.tool.utils.Func; | 
					 | 
					 | 
					 | 
					import org.springblade.core.tool.utils.Func; | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					import org.springblade.system.user.cache.UserCache; | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					import org.springblade.system.user.entity.User; | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					import org.springframework.validation.annotation.Validated; | 
					 | 
					 | 
					 | 
					import org.springframework.validation.annotation.Validated; | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					import org.springframework.web.bind.annotation.*; | 
					 | 
					 | 
					 | 
					import org.springframework.web.bind.annotation.*; | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					import com.baomidou.mybatisplus.core.metadata.IPage; | 
					 | 
					 | 
					 | 
					import com.baomidou.mybatisplus.core.metadata.IPage; | 
				
			
			
		
	
	
		
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
					 | 
					@ -39,6 +41,7 @@ import com.hnac.hzinfo.inspect.ai.service.IRobotService; | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					import java.util.List; | 
					 | 
					 | 
					 | 
					import java.util.List; | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					import java.util.Map; | 
					 | 
					 | 
					 | 
					import java.util.Map; | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					import java.util.Optional; | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					/** | 
					 | 
					 | 
					 | 
					/** | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 *  控制器 | 
					 | 
					 | 
					 | 
					 *  控制器 | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
							
								
							
						
						
					 | 
					 | 
					@ -80,6 +83,10 @@ public class RobotController extends BladeController { | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
						public R<IPage<RobotEntity>> list(@ApiIgnore @RequestParam Map<String,Object> st_robot, Query query) { | 
					 | 
					 | 
					 | 
						public R<IPage<RobotEntity>> list(@ApiIgnore @RequestParam Map<String,Object> st_robot, Query query) { | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
							QueryWrapper<RobotEntity> queryWrapper = Condition.getQueryWrapper( st_robot, RobotEntity.class); | 
					 | 
					 | 
					 | 
							QueryWrapper<RobotEntity> queryWrapper = Condition.getQueryWrapper( st_robot, RobotEntity.class); | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
							IPage<RobotEntity> pages = st_robotService.page(Condition.getPage(query), queryWrapper); | 
					 | 
					 | 
					 | 
							IPage<RobotEntity> pages = st_robotService.page(Condition.getPage(query), queryWrapper); | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
							pages.getRecords().stream().filter(robot -> Func.isNotEmpty(robot.getUserId())).forEach(robotEntity -> { | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
								User user = UserCache.getUser(robotEntity.getUserId()); | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
								robotEntity.setUserName(Optional.ofNullable(user).map(User::getName).orElse(null)); | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
							}); | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
							return R.data(pages); | 
					 | 
					 | 
					 | 
							return R.data(pages); | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
						} | 
					 | 
					 | 
					 | 
						} | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
							
								
							
						
						
					 | 
					 | 
					@ -157,7 +164,7 @@ public class RobotController extends BladeController { | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
						@ApiOperationSupport(order = 11) | 
					 | 
					 | 
					 | 
						@ApiOperationSupport(order = 11) | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
						@ApiOperation(value = "获取机器人各项属性实时数据", notes = "获取机器人各项属性实时数据") | 
					 | 
					 | 
					 | 
						@ApiOperation(value = "获取机器人各项属性实时数据", notes = "获取机器人各项属性实时数据") | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
						@Operate(label = "获取机器人实时数据",type = BusinessType.QUERY,ignore = false) | 
					 | 
					 | 
					 | 
						@Operate(label = "获取机器人实时数据",type = BusinessType.QUERY,ignore = false) | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
						public R<List<RobotRealDataVO>> getRealDataByRobotCode(@RequestParam @ApiParam(value = "机器人编号", required = true) String robotCode) { | 
					 | 
					 | 
					 | 
						public R<Map<String,List<RobotRealDataVO>>> getRealDataByRobotCode(@RequestParam @ApiParam(value = "机器人编号", required = true) String robotCode) { | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
							return R.data(st_robotService.getRealDataByRobotCode(robotCode)); | 
					 | 
					 | 
					 | 
							return R.data(st_robotService.getRealDataByRobotCode(robotCode)); | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
						} | 
					 | 
					 | 
					 | 
						} | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
						
					 | 
					 | 
					
  |