master
rdpnr_hemingxia 2025-04-15 16:58:57 +08:00
commit 2f11fabc3e
1 changed files with 2 additions and 1 deletions

View File

@ -349,7 +349,8 @@ public class SysUserController extends BaseController
@GetMapping("/selectDeptTree/{deptId}")
public String selectDeptTree(@PathVariable("deptId") Long deptId, ModelMap mmap)
{
mmap.put("dept", deptService.selectDeptById(deptId));
SysDept value = deptService.selectDeptById(deptId);
mmap.put("dept", value==null?new SysDept():value);
return prefix + "/deptTree";
}
}