| 
					
				 | 
			
			
				@@ -6,15 +6,11 @@ import com.usky.common.core.bean.CommonPage; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import com.usky.common.log.annotation.Log; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import com.usky.common.log.enums.BusinessType; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import com.usky.iot.domain.BaseFacilityType; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-import com.usky.iot.domain.DmpDeviceInfo; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import com.usky.iot.service.BaseFacilityTypeService; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-import com.usky.iot.service.BaseGgpFacilityService; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import com.usky.iot.service.vo.BaseGgpFacilityTypeVO; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import org.springframework.beans.factory.annotation.Autowired; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import org.springframework.web.bind.annotation.*; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-import org.springframework.stereotype.Controller; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import java.util.List; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 /** 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -32,7 +28,7 @@ public class BaseFacilityTypeController { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     @Autowired 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     private BaseFacilityTypeService baseFacilityTypeService; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     /** 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-     * 设施类型信息查询 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+     * 设施类型查看查询 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				      * 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				      * @return 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				      */ 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -59,7 +55,7 @@ public class BaseFacilityTypeController { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     /** 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-     * 单位信息采集-名称模糊查询 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+     * 设施类型根据ID查询 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				      * 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				      * @param id   单位名称 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				      * @return 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -68,5 +64,37 @@ public class BaseFacilityTypeController { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     public ApiResult<List<BaseFacilityType>> typeSelect(@RequestParam(value = "id", required = false) Integer id) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         return ApiResult.success(baseFacilityTypeService.typeSelect(id)); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    /** 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+     * 新增 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+     * @param baseFacilityType 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+     * @return 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+     */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    @PostMapping("/add") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    public ApiResult<Void> add(@RequestBody BaseFacilityType baseFacilityType){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        baseFacilityTypeService.add(baseFacilityType); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        return ApiResult.success(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    /** 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+     * 修改 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+     * @param baseFacilityType 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+     * @return 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+     */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    @PutMapping("/edit") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    public ApiResult<Void> edit(@RequestBody BaseFacilityType baseFacilityType){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        baseFacilityTypeService.update(baseFacilityType); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        return ApiResult.success(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    /** 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+     * 删除 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+     */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    @DeleteMapping("/{id}") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    public ApiResult<Void> remove(@PathVariable("id") Integer id) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        baseFacilityTypeService.remove(id); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        return ApiResult.success(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 |