|
@@ -175,9 +175,9 @@ public class SysDeptController extends AbstractController {
|
|
* @param deptId 主键
|
|
* @param deptId 主键
|
|
* @return R
|
|
* @return R
|
|
*/
|
|
*/
|
|
- @RequestMapping("/info")
|
|
|
|
|
|
+ @RequestMapping("/info/{deptId}")
|
|
@RequiresPermissions("sys:dept:info")
|
|
@RequiresPermissions("sys:dept:info")
|
|
- public Result info(@RequestParam("deptId") Long deptId) {
|
|
|
|
|
|
+ public Result info(@PathVariable("deptId") Long deptId) {
|
|
SysDeptEntity dept = sysDeptService.queryObject(deptId);
|
|
SysDeptEntity dept = sysDeptService.queryObject(deptId);
|
|
|
|
|
|
return Result.success( dept);
|
|
return Result.success( dept);
|