Compare commits
No commits in common. "4ec7e8d409f5c1704ab8620f39dc21c6c249305e" and "2c4c96cfa4aa940932f1f93b931b0d5d4c668684" have entirely different histories.
4ec7e8d409
...
2c4c96cfa4
|
@ -63,18 +63,8 @@ public class DeptController {
|
||||||
@GetMapping("/list")
|
@GetMapping("/list")
|
||||||
@Operation(summary = "获取部门列表")
|
@Operation(summary = "获取部门列表")
|
||||||
@PreAuthorize("@ss.hasPermission('system:dept:query')")
|
@PreAuthorize("@ss.hasPermission('system:dept:query')")
|
||||||
public CommonResult<List<DeptRespVO>> getDeptList(DeptListReqVO reqVO) {
|
|
||||||
reqVO.setTenantId(SecurityFrameworkUtils.getLoginUser().getTenantId());
|
|
||||||
List<DeptDO> list = deptService.getDeptList(reqVO);
|
|
||||||
list.sort(Comparator.comparing(DeptDO::getSort));
|
|
||||||
return success(DeptConvert.INSTANCE.convertList(list));
|
|
||||||
}
|
|
||||||
|
|
||||||
@GetMapping("/list-all")
|
|
||||||
@Operation(summary = "获取平台所有部门列表")
|
|
||||||
@PreAuthorize("@ss.hasPermission('system:dept:query')")
|
|
||||||
@TenantIgnore
|
@TenantIgnore
|
||||||
public CommonResult<List<DeptRespVO>> getDeptListAll(DeptListReqVO reqVO) {
|
public CommonResult<List<DeptRespVO>> getDeptList(DeptListReqVO reqVO) {
|
||||||
if(!TenantContextHolder.ID_SYSTEM.equals(SecurityFrameworkUtils.getLoginUser().getTenantId())){
|
if(!TenantContextHolder.ID_SYSTEM.equals(SecurityFrameworkUtils.getLoginUser().getTenantId())){
|
||||||
reqVO.setTenantId(SecurityFrameworkUtils.getLoginUser().getTenantId());
|
reqVO.setTenantId(SecurityFrameworkUtils.getLoginUser().getTenantId());
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue