|
|
|
|
@ -37,6 +37,7 @@ import io.swagger.v3.oas.annotations.tags.Tag; |
|
|
|
|
import jakarta.validation.Valid; |
|
|
|
|
import lombok.AllArgsConstructor; |
|
|
|
|
import org.springblade.common.cache.DictCache; |
|
|
|
|
import org.springblade.common.cache.SysCache; |
|
|
|
|
import org.springblade.common.cache.UserCache; |
|
|
|
|
import org.springblade.common.enums.DictEnum; |
|
|
|
|
import org.springblade.core.boot.ctrl.BladeController; |
|
|
|
|
@ -227,4 +228,12 @@ public class DeptController extends BladeController { |
|
|
|
|
return R.data(tree); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* 根据部门id获取部门名称 |
|
|
|
|
*/ |
|
|
|
|
@GetMapping("/getDeptName") |
|
|
|
|
public R<String> getDeptName(Long deptId) { |
|
|
|
|
Dept dept = deptService.getById(deptId); |
|
|
|
|
return R.data(dept.getDeptName()); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|