From 231171b6c8f3daf8d01b8c429971c10e09ea69ad Mon Sep 17 00:00:00 2001 From: tiger_zhou <123456> Date: Fri, 21 Oct 2022 17:14:56 +0800 Subject: [PATCH] =?UTF-8?q?=E7=94=A8=E6=88=B7=E6=9D=83=E9=99=90=E6=94=AF?= =?UTF-8?q?=E6=8C=81=E6=9F=A5=E7=9C=8B=E5=B7=B2=E5=BE=88=E9=85=8D=E9=A2=86?= =?UTF-8?q?=E5=8F=96=E7=9A=84=E6=9D=83=E9=99=90=EF=BC=8C=E7=AD=94=E9=A2=98?= =?UTF-8?q?=E8=AF=95=E5=8D=B7=E5=9C=A8=E5=88=9B=E5=BB=BA=E7=9A=84=E6=97=B6?= =?UTF-8?q?=E5=80=99=E5=8F=8A=E6=9C=89=E5=BC=80=E5=A7=8B=E6=97=B6=E9=97=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../PermissionSubjectController.java | 16 +++++++++++++ .../dao/permission/PermissionSubjectDAO.java | 23 +++++++++++++++---- .../paper/PaperUserCreateService.java | 1 + .../permission/PermissionSubjectService.java | 22 +++++++++++++++--- .../subject/PermissionSubjectVO.java | 3 +++ 5 files changed, 58 insertions(+), 7 deletions(-) diff --git a/src/main/java/club/joylink/rtss/controller/permission2/PermissionSubjectController.java b/src/main/java/club/joylink/rtss/controller/permission2/PermissionSubjectController.java index b743f44d8..814a680b2 100644 --- a/src/main/java/club/joylink/rtss/controller/permission2/PermissionSubjectController.java +++ b/src/main/java/club/joylink/rtss/controller/permission2/PermissionSubjectController.java @@ -12,6 +12,8 @@ import org.springframework.web.bind.annotation.PathVariable; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RestController; +import java.util.List; + /** * 主体(用户或组织)的权限管理接口V2
*/ @@ -29,8 +31,22 @@ public class PermissionSubjectController { return this.subjectService.page(req); } + /** + * 用户权限失效设置 + * @param subjectId + */ @GetMapping(path = "/inValid/{subjectId}") public void statusForInValid(@PathVariable Long subjectId){ this.subjectService.subjectAndDistributeStatusForInValid(subjectId); } + + /** + * 查看用户分发的下级所有用户权限 + * @param subjectId + */ + @GetMapping(path = "/distribute/{subjectId}") + public List distributePermission(@PathVariable Long subjectId){ + List list = this.subjectService.findDistributePermission(subjectId); + return list; + } } diff --git a/src/main/java/club/joylink/rtss/dao/permission/PermissionSubjectDAO.java b/src/main/java/club/joylink/rtss/dao/permission/PermissionSubjectDAO.java index c9faf494c..cb1de5ed5 100644 --- a/src/main/java/club/joylink/rtss/dao/permission/PermissionSubjectDAO.java +++ b/src/main/java/club/joylink/rtss/dao/permission/PermissionSubjectDAO.java @@ -1,7 +1,5 @@ package club.joylink.rtss.dao.permission; -import java.util.List; - import club.joylink.rtss.entity.permission.PermissionSubject; import club.joylink.rtss.entity.permission.PermissionSubjectExample; import club.joylink.rtss.vo.permission.subject.PermissionSubjectQueryVO; @@ -9,14 +7,31 @@ import club.joylink.rtss.vo.permission.subject.PermissionSubjectVO; import org.apache.ibatis.annotations.Mapper; import org.apache.ibatis.annotations.Param; import org.apache.ibatis.annotations.Select; -import org.apache.ibatis.annotations.Update; import org.springframework.stereotype.Repository; +import java.util.List; + @Mapper @Repository public interface PermissionSubjectDAO { - + @Select("") + List findDistributePermission(List idList); /* @Select("