|
|
@@ -32,7 +32,7 @@ public class DeptController { |
|
|
|
*/ |
|
|
|
@GetMapping("/list/tree") |
|
|
|
public JsonResult getListTree() { |
|
|
|
log.info("进入获取部门列表接口"); |
|
|
|
// log.info("进入获取部门列表接口"); |
|
|
|
return deptService.getListTree(); |
|
|
|
} |
|
|
|
|
|
|
@@ -41,7 +41,7 @@ public class DeptController { |
|
|
|
*/ |
|
|
|
@GetMapping("/child/list/{id}") |
|
|
|
public JsonResult getChildList(@PathVariable("id") String id) { |
|
|
|
log.info("进入获取子部门分页列表列表接口, id:{}", id); |
|
|
|
// log.info("进入获取子部门分页列表列表接口, id:{}", id); |
|
|
|
return deptService.getChildList(id); |
|
|
|
} |
|
|
|
|
|
|
@@ -50,7 +50,7 @@ public class DeptController { |
|
|
|
*/ |
|
|
|
@GetMapping(value = "/{id}") |
|
|
|
public JsonResult getInfo(@PathVariable("id") String id) { |
|
|
|
log.info("进入获取部门信息接口"); |
|
|
|
// log.info("进入获取部门信息接口"); |
|
|
|
return deptService.getDeptInfo(id); |
|
|
|
} |
|
|
|
|
|
|
@@ -59,7 +59,7 @@ public class DeptController { |
|
|
|
*/ |
|
|
|
@PostMapping("/add") |
|
|
|
public JsonResult add(@RequestBody AddDeptRequest addDeptRequest) { |
|
|
|
log.info("进入新增部门接口"); |
|
|
|
// log.info("进入新增部门接口"); |
|
|
|
return deptService.insert(addDeptRequest); |
|
|
|
} |
|
|
|
|
|
|
@@ -68,7 +68,7 @@ public class DeptController { |
|
|
|
*/ |
|
|
|
@PutMapping("/edit") |
|
|
|
public JsonResult update(@RequestBody Map<String, Object> param) { |
|
|
|
log.info("进入修改部门接口"); |
|
|
|
// log.info("进入修改部门接口"); |
|
|
|
EditDeptRequest oldEditDeptRequest = JSON.parseObject(JSON.toJSONString(param.get("oldEditDeptRequest")), EditDeptRequest.class); |
|
|
|
EditDeptRequest newEditDeptRequest = JSON.parseObject(JSON.toJSONString(param.get("newEditDeptRequest")), EditDeptRequest.class); |
|
|
|
return deptService.update(oldEditDeptRequest, newEditDeptRequest); |
|
|
@@ -79,7 +79,7 @@ public class DeptController { |
|
|
|
*/ |
|
|
|
@DeleteMapping("/delete/{id}") |
|
|
|
public JsonResult delete(@PathVariable("id") String id) { |
|
|
|
log.info("进入删除部门接口"); |
|
|
|
// log.info("进入删除部门接口"); |
|
|
|
return deptService.deleteById(id); |
|
|
|
} |
|
|
|
} |