From 8652e69d17ab0c1a5884c662a9f3f950ddf57948 Mon Sep 17 00:00:00 2001 From: liujie <1793218484@qq.com> Date: 星期二, 15 七月 2025 16:16:11 +0800 Subject: [PATCH] 优化 和修改bug --- springcloud_k8s_panzhihuazhihuishequ/service_westcommittee/src/main/java/com/panzhihua/westcommittee/api/SystemUserController.java | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/springcloud_k8s_panzhihuazhihuishequ/service_westcommittee/src/main/java/com/panzhihua/westcommittee/api/SystemUserController.java b/springcloud_k8s_panzhihuazhihuishequ/service_westcommittee/src/main/java/com/panzhihua/westcommittee/api/SystemUserController.java index 0481282..23e6ed2 100644 --- a/springcloud_k8s_panzhihuazhihuishequ/service_westcommittee/src/main/java/com/panzhihua/westcommittee/api/SystemUserController.java +++ b/springcloud_k8s_panzhihuazhihuishequ/service_westcommittee/src/main/java/com/panzhihua/westcommittee/api/SystemUserController.java @@ -183,6 +183,8 @@ tokenVo.setCommunityId(systemUser.getCommunityId().toString()); break; } + tokenVo.setOneDepartmentId(systemUser.getOneDepartmentId()); + tokenVo.setSystemRoleId(systemUser.getSystemRoleId()); return R.ok(tokenVo); } @@ -205,7 +207,7 @@ public R<IPage<SystemUserListVo>> list(SystemUserList query){ Integer id = this.getLoginUserInfoWest().getId(); SystemUser user = systemUserService.getById(id); - if(user.getSystemRoleId()!=1){ + if(user.getSystemRoleId()>2){ return R.ok(new Page<>()); } IPage<SystemUserListVo> list = systemUserService.list(user, query); -- Gitblit v1.7.1