行政区划接口逻辑完善,项目管理相关接口完善等

This commit is contained in:
mi9688
2024-11-01 17:54:16 +08:00
parent 318cee69c1
commit 915d630a44
13 changed files with 324 additions and 141 deletions

View File

@ -86,7 +86,7 @@ public class SysDistrictController extends BaseController
}
/**
* 获取行政区划详细信息
* 根据id获取行政区划详细信息
*/
@PreAuthorize("@ss.hasPermi('system:district:query')")
@GetMapping(value = "/{id}")
@ -95,6 +95,16 @@ public class SysDistrictController extends BaseController
{
return success(sysDistrictService.selectSysDistrictById(id));
}
/**
* 根据地区代码获取行政区划详细信息
*/
@GetMapping(value = "/by-code/{areaCode}")
@ApiOperation("获取行政区划详细信息")
public AjaxResult getInfoByCode(@PathVariable("areaCode") Long areaCode)
{
return success(sysDistrictService.selectSysDistrictByCode(areaCode));
}
/**
* 新增行政区划