|  | @@ -3,8 +3,10 @@ package com.ym.mec.web.controller;
 | 
	
		
			
				|  |  |  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.GetMapping;
 | 
	
		
			
				|  |  | +import org.springframework.web.bind.annotation.PathVariable;
 | 
	
		
			
				|  |  |  import org.springframework.web.bind.annotation.RequestMapping;
 | 
	
		
			
				|  |  |  import org.springframework.web.bind.annotation.RestController;
 | 
	
		
			
				|  |  |  
 | 
	
	
		
			
				|  | @@ -52,12 +54,12 @@ public class SysAreaController extends BaseController {
 | 
	
		
			
				|  |  |      public Object update(SysArea area){
 | 
	
		
			
				|  |  |          area.setUpdateTime(new Date());
 | 
	
		
			
				|  |  |          return succeed(sysAreaService.update(area));
 | 
	
		
			
				|  |  | -    }
 | 
	
		
			
				|  |  | +    }*/
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -    @ApiOperation(value = "根据区域编号查询区域详情")
 | 
	
		
			
				|  |  | -    @GetMapping("/get/{id}")
 | 
	
		
			
				|  |  | +    @ApiOperation(value = "根据子级区域获取父级节点")
 | 
	
		
			
				|  |  | +    @GetMapping("/getParentArea/{id}")
 | 
	
		
			
				|  |  |      @ApiParam(value = "区域编号", required = true)
 | 
	
		
			
				|  |  | -    public Object get( @PathVariable("id") Integer id){
 | 
	
		
			
				|  |  | -        return succeed(sysAreaService.get(id));
 | 
	
		
			
				|  |  | -    }*/
 | 
	
		
			
				|  |  | +    public Object getParentArea( @PathVariable("id") Integer id){
 | 
	
		
			
				|  |  | +        return succeed(sysAreaService.getParentArea(id));
 | 
	
		
			
				|  |  | +    }
 | 
	
		
			
				|  |  |  }
 |