| 
					
				 | 
			
			
				@@ -2,6 +2,7 @@ package com.huaxu.controller; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import com.baomidou.mybatisplus.core.metadata.IPage; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import com.baomidou.mybatisplus.extension.plugins.pagination.Page; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+import com.huaxu.dto.AreaDto; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import com.huaxu.entity.Area; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import com.huaxu.model.AjaxMessage; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import com.huaxu.model.Pagination; 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -11,10 +12,9 @@ import io.swagger.annotations.Api; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import io.swagger.annotations.ApiOperation; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import io.swagger.annotations.ApiParam; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import org.springframework.beans.factory.annotation.Autowired; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-import org.springframework.web.bind.annotation.RequestBody; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-import org.springframework.web.bind.annotation.RequestMapping; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-import org.springframework.web.bind.annotation.RequestMethod; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-import org.springframework.web.bind.annotation.RestController; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+import org.springframework.web.bind.annotation.*; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+import java.util.List; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 /** 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  * (Area)控制层 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -24,7 +24,7 @@ import org.springframework.web.bind.annotation.RestController; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 @RestController 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 @RequestMapping("/area") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-@Api(tags = "") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+@Api(tags = "区域接口") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 public class AreaController { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     /** 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				      * 服务对象 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -39,7 +39,7 @@ public class AreaController { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				      * @return 单条数据 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				      */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     @RequestMapping(value = "get", method = RequestMethod.POST) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    @ApiOperation(value = "查询设施配置列表") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    @ApiOperation(value = "查询区域列表") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     public AjaxMessage<Area> selectOne( 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             @ApiParam(value = "设置配置", required = true) @RequestBody Area area) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         Area result = areaService.selectById(area.getId()); 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -54,7 +54,7 @@ public class AreaController { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				      * @return Response对象 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				      */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     @RequestMapping(value = "insert", method = RequestMethod.POST) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    @ApiOperation(value = "查询设施配置列表") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    @ApiOperation(value = "查询区域列表") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     public AjaxMessage<Integer> insert(@ApiParam(value = "设置配置", required = true) @RequestBody Area area) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         int result = areaService.insert(area); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -68,7 +68,7 @@ public class AreaController { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				      * @return Response对象 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				      */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     @RequestMapping(value = "update", method = RequestMethod.POST) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    @ApiOperation(value = "查询设施配置列表") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    @ApiOperation(value = "查询区域列表") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     public AjaxMessage<Integer> update(@ApiParam(value = "设置配置", required = true) @RequestBody Area area) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         int result = areaService.update(area); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         return new AjaxMessage<>(ResultStatus.OK, result); 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -82,12 +82,26 @@ public class AreaController { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				      * @return Response对象 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				      */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     @RequestMapping(value = "delete", method = RequestMethod.POST) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    @ApiOperation(value = "查询设施配置列表") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    @ApiOperation(value = "查询区域列表") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     public AjaxMessage<Integer> delete(@ApiParam(value = "设置配置", required = true) @RequestBody Area area) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         int result = areaService.deleteById(area.getId()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         return new AjaxMessage<>(ResultStatus.OK, result); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    /** 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+     * 修改一条数据 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+     * 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+     * @param id 父类id 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+     * @return Response对象 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+     */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    @RequestMapping(value = "selectAll", method = RequestMethod.POST) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    @ApiOperation(value = "查询区域列表") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    public AjaxMessage<List<AreaDto>> selectAll(@ApiParam(value = "设置配置", required = true) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                                              @RequestParam Integer id) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        Area area=new Area(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        return new AjaxMessage<>(ResultStatus.OK, areaService.selectList(area)); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     /** 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				      * 分页查询 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -97,7 +111,7 @@ public class AreaController { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				      * @return Response对象 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				      */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     @RequestMapping(value = "selectPage", method = RequestMethod.POST) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    @ApiOperation(value = "查询设施配置列表") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    @ApiOperation(value = "查询区域列表") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     public AjaxMessage<Pagination<Area>> selectPage(Integer pageNum, Integer pageSize) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         Area area = new Area(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         IPage<Area> iPage = new Page<>(pageNum, pageSize); 
			 |