mirror of
https://github.com/PlayEdu/PlayEdu
synced 2025-12-17 08:54:21 +08:00
完成部门管理
This commit is contained in:
@@ -42,7 +42,7 @@ public class DepartmentController {
|
||||
}
|
||||
|
||||
@PostMapping("/create")
|
||||
public JsonResponse store(@RequestBody DepartmentRequest request) throws NotFoundException {
|
||||
public JsonResponse store(@RequestBody @Validated DepartmentRequest request) throws NotFoundException {
|
||||
String parentChain = "";
|
||||
if (request.getParentId() != 0) {
|
||||
parentChain = departmentBus.compParentChain(request.getParentId());
|
||||
|
||||
Reference in New Issue
Block a user