| 
					
				 | 
			
			
				@@ -10,6 +10,7 @@ import com.bizmatics.mhfire.service.vo.DeviceMapVO; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import org.springframework.beans.factory.annotation.Autowired; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import org.springframework.web.bind.annotation.GetMapping; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import org.springframework.web.bind.annotation.RequestMapping; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+import org.springframework.web.bind.annotation.RequestParam; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import org.springframework.web.bind.annotation.RestController; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import java.util.List; 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -49,7 +50,10 @@ public class DeviceController { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				      * @return 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				      */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     @GetMapping("collect") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    public ApiResult<CommonPage<DeviceCollectVO>> getCollect(Integer current, Integer size, String deviceType, String deviceCode){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    public ApiResult<CommonPage<DeviceCollectVO>> getCollect(@RequestParam Integer current, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                                                             @RequestParam Integer size, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                                                             @RequestParam(required = false) String deviceType, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                                                             @RequestParam(required = false) String deviceCode){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         return ApiResult.success(deviceService.getCollect(current,size,deviceType,deviceCode)); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -59,7 +63,7 @@ public class DeviceController { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				      * @return 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				      */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     @GetMapping("/one") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    public ApiResult<Device> one(Long id){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    public ApiResult<Device> one(@RequestParam Long id){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         return ApiResult.success(deviceService.getById(id)); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 |