| 
					
				 | 
			
			
				@@ -1,6 +1,7 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 package com.ruoyi.web.controller.iot.service.impl; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import com.ruoyi.common.constant.HttpStatus; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+import com.ruoyi.common.core.domain.AjaxResult; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import com.ruoyi.common.core.page.PageDomain; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import com.ruoyi.common.core.page.TableDataInfo; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import com.ruoyi.common.core.page.TableSupport; 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -71,4 +72,21 @@ public class OrderServiceImpl implements IOrderService { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         tableDataInfo.setTotal(count); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         return tableDataInfo; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    @Override 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    public AjaxResult details(Order order) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        Order detail = new Order(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        try { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            DriverManagerDataSource dataSource = new DriverManagerDataSource(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            dataSource.setDriverClassName("com.mysql.cj.jdbc.Driver"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            dataSource.setUrl("jdbc:mysql://47.94.195.4:3525/boyo_fb4a88d6f6f24d67953f68c4fe829f63?useUnicode=true&useSSL=false&characterEncoding=utf8&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=Asia/Shanghai"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            dataSource.setUsername("db_cdyq6tkqn1ioja179i8b"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            dataSource.setPassword("By@#5c9i75sgtx3b620g6m6e"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            JdbcTemplate template = new JdbcTemplate(dataSource); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            detail = template.queryForObject("SELECT * FROM t_factory_order where id = ;" + order.getId(), Order.class); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        } catch (Exception e) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            throw new RuntimeException(e.getMessage()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        return AjaxResult.success(detail); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 } 
			 |