查询项目的行政区域信息接口,项目相关管理接口逻辑完善,行政区划管理相关接口逻辑完善

This commit is contained in:
mi9688
2024-10-25 18:08:22 +08:00
parent 9912eb5671
commit c19a08f78c
14 changed files with 425 additions and 59 deletions

View File

@ -102,11 +102,11 @@ public class GLegendController extends BaseController
/**
* 删除图例
*/
@DeleteMapping("/{ids}")
@DeleteMapping("/{id}")
@ApiOperation("删除图例")
public AjaxResult remove(@PathVariable Long[] ids)
public AjaxResult remove(@PathVariable Long id)
{
return toAjax(gLegendService.deleteGLegendByIds(ids));
return toAjax(gLegendService.deleteGLegendById(id));
}
/**

View File

@ -139,4 +139,13 @@ public class ProjectController extends BaseController
public AjaxResult getUnbindProjectDeptList(){
return success(projectService.getUnbindDeptList());
}
/**
* 查询项目的行政区划树状列表
*/
@GetMapping("/areaTree/{projectId}/{reachLevel}")
@ApiOperation("查询项目的行政区划树状列表")
public AjaxResult getProjectAreaTree(@PathVariable("projectId") Long projectId, @PathVariable("reachLevel") Integer reachLevel){
return success(projectService.getProjectAreaTree(projectId, reachLevel));
}
}