Files
zhyc-sheep/zhyc-admin/target/classes/com/zhyc/web/controller/system/SysRoleController.class

45 lines
9.7 KiB
Plaintext
Raw Normal View History

2025-12-27 12:37:58 +08:00
<EFBFBD><EFBFBD><EFBFBD><EFBFBD>4V
 .com/zhyc/common/core/controller/BaseController<init>()V
 
0com/zhyc/web/controller/system/SysRoleController startPage   roleService)Lcom/zhyc/system/service/ISysRoleService;  'com/zhyc/system/service/ISysRoleServiceselectRoleList>(Lcom/zhyc/common/core/domain/entity/SysRole;)Ljava/util/List;
  getDataTable;(Ljava/util/List;)Lcom/zhyc/common/core/page/TableDataInfo;#com/zhyc/common/utils/poi/ExcelUtil*com/zhyc/common/core/domain/entity/SysRole
  (Ljava/lang/Class;)V" 角色数据
$ %& exportExcelM(Ljavax/servlet/http/HttpServletResponse;Ljava/util/List;Ljava/lang/String;)V(java/lang/Long * +,checkRoleDataScope([Ljava/lang/Long;)V . /0selectRoleById>(Ljava/lang/Long;)Lcom/zhyc/common/core/domain/entity/SysRole;
2 34success<(Ljava/lang/Object;)Lcom/zhyc/common/core/domain/AjaxResult; 6 78checkRoleNameUnique/(Lcom/zhyc/common/core/domain/entity/SysRole;)Z:java/lang/StringBuilder
9= 新增角色'
9? @Aappend-(Ljava/lang/String;)Ljava/lang/StringBuilder;
C DE getRoleName()Ljava/lang/String;G'失败,角色名称已存在
9I JEtoString
L MNerror<(Ljava/lang/String;)Lcom/zhyc/common/core/domain/AjaxResult; P Q8checkRoleKeyUniqueS'失败,角色权限已存在
U VE getUsername
X YZ setCreateBy(Ljava/lang/String;)V \ ]^
insertRole/(Lcom/zhyc/common/core/domain/entity/SysRole;)I
` abtoAjax+(I)Lcom/zhyc/common/core/domain/AjaxResult; d efcheckRoleAllowed/(Lcom/zhyc/common/core/domain/entity/SysRole;)V
h ij getRoleId()Ljava/lang/Long;l 修改角色'
n oZ setUpdateBy q r^
updateRole
t uv getLoginUser/()Lcom/zhyc/common/core/domain/model/LoginUser;
xyz {|+com/zhyc/common/core/domain/model/LoginUsergetUser.()Lcom/zhyc/common/core/domain/entity/SysUser;
~<00> <00><00>!com/zhyc/common/utils/StringUtils isNotNull(Ljava/lang/Object;)Z
<00><00><00> <00><00>*com/zhyc/common/core/domain/entity/SysUserisAdmin()Z <00> <00><00> userService)Lcom/zhyc/system/service/ISysUserService;
<00><00> <00>E getUserName <00><00><00> <00><00>'com/zhyc/system/service/ISysUserServiceselectUserByUserName@(Ljava/lang/String;)Lcom/zhyc/common/core/domain/entity/SysUser;
x<00> <00><00>setUser/(Lcom/zhyc/common/core/domain/entity/SysUser;)V <00> <00><00>permissionService5Lcom/zhyc/framework/web/service/SysPermissionService;
<00><00><00> <00><00>3com/zhyc/framework/web/service/SysPermissionServicegetMenuPermission=(Lcom/zhyc/common/core/domain/entity/SysUser;)Ljava/util/Set;
x<00> <00><00>setPermissions(Ljava/util/Set;)V <00> <00><00> tokenService-Lcom/zhyc/framework/web/service/TokenService;
<00><00><00> <00><00>+com/zhyc/framework/web/service/TokenService setLoginUser0(Lcom/zhyc/common/core/domain/model/LoginUser;)V
<00> 3<00>*()Lcom/zhyc/common/core/domain/AjaxResult;<00>'失败,请联系管理员 <00> <00>^ authDataScope <00> <00>^updateRoleStatus <00> <00><00>deleteRoleByIds([Ljava/lang/Long;)I <00> <00><00> selectRoleAll()Ljava/util/List; <00><00> <00><00>selectAllocatedList>(Lcom/zhyc/common/core/domain/entity/SysUser;)Ljava/util/List; <00><00> <00><00>selectUnallocatedList <00> <00><00>deleteAuthUser'(Lcom/zhyc/system/domain/SysUserRole;)I <00> <00><00>deleteAuthUsers$(Ljava/lang/Long;[Ljava/lang/Long;)I <00> <00><00>insertAuthUsers
<00><00><00>&com/zhyc/common/core/domain/AjaxResult<00> checkedKeys <00> <00><00> deptService)Lcom/zhyc/system/service/ISysDeptService; <00><00><00> <00><00>'com/zhyc/system/service/ISysDeptServiceselectDeptListByRoleId"(Ljava/lang/Long;)Ljava/util/List;
<00><00> <00><00>putN(Ljava/lang/String;Ljava/lang/Object;)Lcom/zhyc/common/core/domain/AjaxResult;<00>depts<00>*com/zhyc/common/core/domain/entity/SysDept
<00> <00><00> <00><00>selectDeptTreeList>(Lcom/zhyc/common/core/domain/entity/SysDept;)Ljava/util/List;RuntimeVisibleAnnotations8Lorg/springframework/beans/factory/annotation/Autowired;CodeLineNumberTableLocalVariableTablethis2Lcom/zhyc/web/controller/system/SysRoleController;listW(Lcom/zhyc/common/core/domain/entity/SysRole;)Lcom/zhyc/common/core/page/TableDataInfo;role,Lcom/zhyc/common/core/domain/entity/SysRole;Ljava/util/List;LocalVariableTypeTable>Ljava/util/List<Lcom/zhyc/common/core/domain/entity/SysRole;>;:Lorg/springframework/security/access/prepost/PreAuthorize;value @ss.hasPermi('system:role:list')4Lorg/springframework/web/bind/annotation/GetMapping;/listexportW(Ljavax/servlet/http/HttpServletResponse;Lcom/zhyc/common/core/domain/entity/SysRole;)Vresponse(Ljavax/servlet/http/HttpServletResponse;util%Lcom/zhyc/common/utils/poi/ExcelUtil;SLcom/zhyc/common/utils/poi/ExcelUtil<Lcom/zhyc/common/core/domain/entity/SysRole;>; Lcom/zhyc/common/annotation/Log;title 角色管理 businessType$Lcom/zhyc/common/enums/BusinessType;EXPORT"@ss.hasPermi('system:role:export')5Lorg/springframework/web/bind/annotation/PostMapping;/exportgetInfo:(Ljava/lang/Long;)Lcom/zhyc/common/core/domain/AjaxResult;roleIdLjava/lang/Long;!@ss.hasPermi('system:role:query') /{roleId}"RuntimeVisibleParameterAnnotations6Lorg/springframework/web/bind/annotation/PathVariable;addV(Lcom/zhyc/common/core/domain/entity/SysRole;)Lcom/zhyc/common/core/domain/AjaxResult; StackMapTable@ss.hasPermi('system:role:add')INSERT5Lorg/springframework/validation/annotation/Validated;5Lorg/springframework/web/bind/annotation/RequestBody;edit loginUser-Lcom/zhyc/common/core/domain/model/LoginUser; @ss.hasPermi('system:role:edit')UPDATE4Lorg/springframework/web/bind/annotation/PutMapping; dataScope
/dataScope changeStatus /changeStatusremove;([Ljava/lang/Long;)Lcom/zhyc/common/core/domain/AjaxResult;roleIds[Ljava/lang/Long;"@ss.hasPermi('system:role:remove')DELETE7Lorg/springframework/web/bind/annotation/DeleteMapping;
/{roleIds} optionselect /optionselect allocatedListW(Lcom/zhyc/common/core/domain/entity/SysUser;)Lcom/zhyc/common/core/page/TableDataInfo;user,Lcom/zhyc/common/core/domain/entity/SysUser;>Ljava/util/List<Lcom/zhyc/common/core/domain/entity/SysUser;>;/authUser/allocatedListunallocatedList/authUser/unallocatedListcancelAuthUserN(Lcom/zhyc/system/domain/SysUserRole;)Lcom/zhyc/common/core/domain/AjaxResult;userRole$Lcom/zhyc/system/domain/SysUserRole;GRANT/authUser/cancelcancelAuthUserAllK(Ljava/lang/Long;[Ljava/lang/Long;)Lcom/zhyc/common/core/domain/AjaxResult;userIds/authUser/cancelAllselectAuthUserAll/authUser/selectAlldeptTreeajax(Lcom/zhyc/common/core/domain/AjaxResult;/deptTree/{roleId}
SourceFileSysRoleController.java8Lorg/springframework/web/bind/annotation/RestController;8Lorg/springframework/web/bind/annotation/RequestMapping; /system/role!<00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00>/*<2A><01><00>)<00> <00><00><00><00><00>m*<2A>*<2A> +<2B>M*,<2C><16><00>>?@<00> <00><00><00><00><00><00><00> <00><00>s[s<00><00> *<2A> ,<2C>N<>Y<1C>:+-!<21>#<23><00>H IJK<00>4 <00><00>   <00><00> <00><00>

 <00> <00>

 <00>' ses[s<00>X *<2A> <04>'Y+S<>)**<2A> +<2B>-<00>1<><00>
TU<00> <00><00> <00>s[s<00><00>q*<2A> +<2B>5<00>#*<2A>9Y<39>;<<3C>>+<2B>B<>>F<>><3E>H<>K<>*<2A> +<2B>O<00>#*<2A>9Y<39>;<<3C>>+<2B>B<>>R<>><3E>H<>K<>+*<2A>T<>W**<2A> +<2B>[<00>_<><00>` b-d:fZhbi<00>q<00><00>q<00><00> -,<00>s! se" #$%<00><01><00>*<2A> +<2B>c*<2A> <04>'Y+<2B>gS<67>)*<2A> +<2B>5<00>#*<2A>9Y<39>;k<>>+<2B>B<>>F<>><3E>H<>K<>*<2A> +<2B>O<00>#*<2A>9Y<39>;k<>>+<2B>B<>>R<>><3E>H<>K<>+*<2A>T<>m*<2A> +<2B>p<00>L*<2A>sM,<2C>w<>}<7D>8,<2C>w<><00><>.,*<2A><00>,<2C>w<><00><><00><00><00>,*<2A><00>,<2C>w<><00><><00>*<2A><00>,<2C><00>*<2A><00><>*<2A>9Y<39>;k<>>+<2B>B<>><12><>><3E>H<>K<><00>>u
vw+yK{X}x<00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00> <00>D&'<00><00><00><00><00><00> <04>K,<2C>Xx<><00>s( se)* #$+<00>i-*<2A> +<2B>c*<2A> <04>'Y+<2B>gS<67>)**<2A> +<2B><00><00>_<><00><00>
<00><00><00>-<00><00>-<00><00><00>'s( se)*[s,$-<00>u5*<2A> +<2B>c*<2A> <04>'Y+<2B>gS<67>)+*<2A>T<>m**<2A> +<2B><00><00>_<><00><00>
<00><00>&<00><00>5<00><00>5<00><00><00>'s( se)*[s.$/0<00>C**<2A> +<2B><00><00>_<><00><00><00><00><00>12<00>'s3 se45[s67<00><00>8**<2A> <0C><00><00>1<><00><00><00> <00><00><00>s[s89:<00>m*<2A>*<2A><00>+<2B><00>M*,<2C><16><00><00><00><00><00> <00><00>;<<00><00><00> <00>=<00>s[s>?:<00>m*<2A>*<2A><00>+<2B><00>M*,<2C><16><00><00><00><00><00> <00><00>;<<00><00><00> <00>=<00>s[s@AB<00>C**<2A> +<2B><00><00>_<><00><00><00><00><00>CD<00>'s( seE*[sF$GH<00>N**<2A> +,<2C><00><00>_<><00><00><00> <00><00>I2<00>'s( seE*[sJKH<00>c!*<2A> <04>'Y+S<>)**<2A> +,<2C><00><00>_<><00>
<00><00><00> !<00><00>!!I2<00>'s( seE*[sLM<00>x.<2E><00>M,<12>*<2A><00>+<2B><00><00><00>W,<12>*<2A>ܻ<00>Y<EFBFBD><00><><00><00><00>W,<2C><00>,<00> .<00><00>.*NO<00>s[sP sQR<00>ST[sU