|
@@ -47,7 +47,7 @@ public class SysDeptController extends BaseController {
|
|
|
*
|
|
*
|
|
|
* @param deptId 部门ID
|
|
* @param deptId 部门ID
|
|
|
*/
|
|
*/
|
|
|
- @SaCheckPermission("system:dept:list")
|
|
|
|
|
|
|
+// @SaCheckPermission("system:dept:list")
|
|
|
@GetMapping("/list/exclude/{deptId}")
|
|
@GetMapping("/list/exclude/{deptId}")
|
|
|
public R<List<SysDeptVo>> excludeChild(@PathVariable(value = "deptId", required = false) Long deptId) {
|
|
public R<List<SysDeptVo>> excludeChild(@PathVariable(value = "deptId", required = false) Long deptId) {
|
|
|
List<SysDeptVo> depts = deptService.selectDeptList(new SysDeptBo());
|
|
List<SysDeptVo> depts = deptService.selectDeptList(new SysDeptBo());
|
|
@@ -59,7 +59,7 @@ public class SysDeptController extends BaseController {
|
|
|
/**
|
|
/**
|
|
|
* 获取部门列表
|
|
* 获取部门列表
|
|
|
*/
|
|
*/
|
|
|
- @SaCheckPermission("system:dept:list")
|
|
|
|
|
|
|
+// @SaCheckPermission("system:dept:list")
|
|
|
@GetMapping("/customerDeptList/{customerId}")
|
|
@GetMapping("/customerDeptList/{customerId}")
|
|
|
public R<List<SysDeptVo>> customerDeptList(@PathVariable(value = "customerId", required = false) Long customerId) {
|
|
public R<List<SysDeptVo>> customerDeptList(@PathVariable(value = "customerId", required = false) Long customerId) {
|
|
|
List<SysDeptVo> depts = deptService.selectCustomerDeptList(customerId);
|
|
List<SysDeptVo> depts = deptService.selectCustomerDeptList(customerId);
|
|
@@ -71,7 +71,7 @@ public class SysDeptController extends BaseController {
|
|
|
*
|
|
*
|
|
|
* @param deptId 部门ID
|
|
* @param deptId 部门ID
|
|
|
*/
|
|
*/
|
|
|
- @SaCheckPermission("system:dept:query")
|
|
|
|
|
|
|
+// @SaCheckPermission("system:dept:query")
|
|
|
@GetMapping(value = "/{deptId}")
|
|
@GetMapping(value = "/{deptId}")
|
|
|
public R<SysDeptVo> getInfo(@PathVariable Long deptId) {
|
|
public R<SysDeptVo> getInfo(@PathVariable Long deptId) {
|
|
|
deptService.checkDeptDataScope(deptId);
|
|
deptService.checkDeptDataScope(deptId);
|
|
@@ -81,7 +81,7 @@ public class SysDeptController extends BaseController {
|
|
|
/**
|
|
/**
|
|
|
* 新增部门
|
|
* 新增部门
|
|
|
*/
|
|
*/
|
|
|
- @SaCheckPermission("system:dept:add")
|
|
|
|
|
|
|
+// @SaCheckPermission("system:dept:add")
|
|
|
@Log(title = "部门管理", businessType = BusinessType.INSERT)
|
|
@Log(title = "部门管理", businessType = BusinessType.INSERT)
|
|
|
@PostMapping
|
|
@PostMapping
|
|
|
public R<Void> add(@Validated @RequestBody SysDeptBo dept) {
|
|
public R<Void> add(@Validated @RequestBody SysDeptBo dept) {
|
|
@@ -94,7 +94,7 @@ public class SysDeptController extends BaseController {
|
|
|
/**
|
|
/**
|
|
|
* 修改部门
|
|
* 修改部门
|
|
|
*/
|
|
*/
|
|
|
- @SaCheckPermission("system:dept:edit")
|
|
|
|
|
|
|
+// @SaCheckPermission("system:dept:edit")
|
|
|
@Log(title = "部门管理", businessType = BusinessType.UPDATE)
|
|
@Log(title = "部门管理", businessType = BusinessType.UPDATE)
|
|
|
@PutMapping
|
|
@PutMapping
|
|
|
public R<Void> edit(@Validated @RequestBody SysDeptBo dept) {
|
|
public R<Void> edit(@Validated @RequestBody SysDeptBo dept) {
|
|
@@ -119,7 +119,7 @@ public class SysDeptController extends BaseController {
|
|
|
*
|
|
*
|
|
|
* @param deptId 部门ID
|
|
* @param deptId 部门ID
|
|
|
*/
|
|
*/
|
|
|
- @SaCheckPermission("system:dept:remove")
|
|
|
|
|
|
|
+// @SaCheckPermission("system:dept:remove")
|
|
|
@Log(title = "部门管理", businessType = BusinessType.DELETE)
|
|
@Log(title = "部门管理", businessType = BusinessType.DELETE)
|
|
|
@DeleteMapping("/{deptId}")
|
|
@DeleteMapping("/{deptId}")
|
|
|
public R<Void> remove(@PathVariable Long deptId) {
|
|
public R<Void> remove(@PathVariable Long deptId) {
|
|
@@ -141,7 +141,7 @@ public class SysDeptController extends BaseController {
|
|
|
*
|
|
*
|
|
|
* @param deptIds 部门ID串
|
|
* @param deptIds 部门ID串
|
|
|
*/
|
|
*/
|
|
|
- @SaCheckPermission("system:dept:query")
|
|
|
|
|
|
|
+// @SaCheckPermission("system:dept:query")
|
|
|
@GetMapping("/optionselect")
|
|
@GetMapping("/optionselect")
|
|
|
public R<List<SysDeptVo>> optionselect(@RequestParam(required = false) Long[] deptIds) {
|
|
public R<List<SysDeptVo>> optionselect(@RequestParam(required = false) Long[] deptIds) {
|
|
|
return R.ok(deptService.selectDeptByIds(deptIds == null ? null : List.of(deptIds)));
|
|
return R.ok(deptService.selectDeptByIds(deptIds == null ? null : List.of(deptIds)));
|