liuxiaolong
2019-05-09 0d1d88cdb668e75ea8609417ac18ae19947e9525
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
Êþº¾2É*com/jeeplus/modules/sys/web/RoleController%com/jeeplus/common/web/BaseController systemService/Lcom/jeeplus/modules/sys/service/SystemService;RuntimeVisibleAnnotations8Lorg/springframework/beans/factory/annotation/Autowired; officeService/Lcom/jeeplus/modules/sys/service/OfficeService;<init>()VCode
 LineNumberTableLocalVariableTablethis,Lcom/jeeplus/modules/sys/web/RoleController;get9(Ljava/lang/String;)Lcom/jeeplus/modules/sys/entity/Role;8Lorg/springframework/web/bind/annotation/ModelAttribute;valuerole"RuntimeVisibleParameterAnnotations6Lorg/springframework/web/bind/annotation/RequestParam;required
 $com/jeeplus/common/utils/StringUtils !"
isNotBlank(Ljava/lang/CharSequence;)Z    $ 
&('-com/jeeplus/modules/sys/service/SystemService )getRole+#com/jeeplus/modules/sys/entity/Role
*idLjava/lang/String; StackMapTablelistW(Lcom/jeeplus/modules/sys/entity/Role;Lorg/springframework/ui/Model;)Ljava/lang/String;7Lorg/apache/shiro/authz/annotation/RequiresPermissions; sys:role:list8Lorg/springframework/web/bind/annotation/RequestMapping;
&7 89findRole7(Lcom/jeeplus/modules/sys/entity/Role;)Ljava/util/List;0 <>=org/springframework/ui/Model ?@ addAttributeD(Ljava/lang/String;Ljava/lang/Object;)Lorg/springframework/ui/Model;Bmodules/sys/roleList%Lcom/jeeplus/modules/sys/entity/Role;modelLorg/springframework/ui/Model;Ljava/util/List;LocalVariableTypeTable7Ljava/util/List<Lcom/jeeplus/modules/sys/entity/Role;>;form sys:role:view sys:role:add sys:role:editlogical+Lorg/apache/shiro/authz/annotation/Logical;OR
*Q RS    getOffice)()Lcom/jeeplus/modules/sys/entity/Office;
UWV'com/jeeplus/modules/sys/utils/UserUtils XYgetUser'()Lcom/jeeplus/modules/sys/entity/User;
[Q\#com/jeeplus/modules/sys/entity/User
*^ _`    setOffice*(Lcom/jeeplus/modules/sys/entity/Office;)VcmenuList
&e fg findAllMenu()Ljava/util/List;i
officeList    k     
 
mon-com/jeeplus/modules/sys/service/OfficeService pgfindAllrmodules/sys/roleFormauth sys:role:authvmodules/sys/roleAuthsave—(Lcom/jeeplus/modules/sys/entity/Role;Lorg/springframework/ui/Model;Lorg/springframework/web/servlet/mvc/support/RedirectAttributes;)Ljava/lang/String;sys:role:assign
[{ |}isAdmin()Z
* €
getSysData()Ljava/lang/String;ƒ1
…‡†java/lang/String ˆ‰equals(Ljava/lang/Object;)Z‹<越权操作,只有超级管理员才能修改此数据!
 Ž
addMessageV(Lorg/springframework/web/servlet/mvc/support/RedirectAttributes;[Ljava/lang/String;)V‘java/lang/StringBuilder“    redirect:
• –(Ljava/lang/String;)V    ˜ ™.    adminPath
› œappend-(Ljava/lang/String;)Ljava/lang/StringBuilder;Ÿ/sys/role/?repage
¡ ¢toString
¤¦¥ com/jeeplus/common/config/Global §¨
isDemoMode()Ljava/lang/Boolean;
ª¬«java/lang/Boolean ­} booleanValue¯!演示模式,不允许操作!±java/lang/Class
³ ´µ beanValidatorE(Lorg/springframework/ui/Model;Ljava/lang/Object;[Ljava/lang/Class;)Z
· 01¹true
*» ¼
getOldName
*¾ ¿getName
Á Âà   checkName8(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;Å 保存角色'Ç'失败, è§’色名已存在
É ŽÊ4(Lorg/springframework/ui/Model;[Ljava/lang/String;)V
*Ì Í getOldEnname
*Ï Ð    getEnname
Ò Óà checkEnnameÕ'失败, è‹±æ–‡åå·²å­˜åœ¨
&× ØÙsaveRole((Lcom/jeeplus/modules/sys/entity/Role;)VÛ'成功redirectAttributes@Lorg/springframework/web/servlet/mvc/support/RedirectAttributes;deletey(Lcom/jeeplus/modules/sys/entity/Role;Lorg/springframework/web/servlet/mvc/support/RedirectAttributes;)Ljava/lang/String; sys:role:del
&â ãÙ
deleteRoleå删除角色成功    deleteAllf(Ljava/lang/String;Lorg/springframework/web/servlet/mvc/support/RedirectAttributes;)Ljava/lang/String;é,
…ë ìísplit'(Ljava/lang/String;)[Ljava/lang/String;ïjava/lang/StringBuffer
îò1越权操作,只有超级管理员才能修改[ô]数据!<br/>
îö œ÷,(Ljava/lang/String;)Ljava/lang/StringBuffer;ù 删除角色[û ]成功<br/>
î¡idsidArray[Ljava/lang/String;msgLjava/lang/StringBuffer;>org/springframework/web/servlet/mvc/support/RedirectAttributesÿassign
* getId
[ Ù
& findUser7(Lcom/jeeplus/modules/sys/entity/User;)Ljava/util/List;userListmodules/sys/roleAssign7Ljava/util/List<Lcom/jeeplus/modules/sys/entity/User;>;selectUserToRole
usertorole    selectIdsname
%com/jeeplus/common/utils/Collections3  extractToStringN(Ljava/util/Collection;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;"modules/sys/selectUserToRoleusersL(Ljava/lang/String;Ljavax/servlet/http/HttpServletResponse;)Ljava/util/List;    Signatureƒ(Ljava/lang/String;Ljavax/servlet/http/HttpServletResponse;)Ljava/util/List<Ljava/util/Map<Ljava/lang/String;Ljava/lang/Object;>;>;6Lorg/springframework/web/bind/annotation/ResponseBody;
)+*com/google/common/collect/Lists ,- newArrayList()Ljava/util/ArrayList;
[0%com/jeeplus/modules/sys/entity/Office
/•
[^4#com/jeeplus/common/persistence/Page
36 7(II)V
&9 :q(Lcom/jeeplus/common/persistence/Page;Lcom/jeeplus/modules/sys/entity/User;)Lcom/jeeplus/common/persistence/Page;
3< =ggetList ?A@java/util/List BCiterator()Ljava/util/Iterator; EGFjava/util/Iterator HInext()Ljava/lang/Object;
KMLcom/google/common/collect/Maps NO
newHashMap()Ljava/util/HashMap;-
[ SUT java/util/Map VWput8(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;YpId
[]\java/lang/Integer ^_valueOf(I)Ljava/lang/Integer;
[¾ ?b c‰add Ee f}hasNextofficeIdresponse(Ljavax/servlet/http/HttpServletResponse;mapListuser%Lcom/jeeplus/modules/sys/entity/User;page%Lcom/jeeplus/common/persistence/Page;emapLjava/util/Map;GLjava/util/List<Ljava/util/Map<Ljava/lang/String;Ljava/lang/Object;>;>;LLcom/jeeplus/common/persistence/Page<Lcom/jeeplus/modules/sys/entity/User;>;5Ljava/util/Map<Ljava/lang/String;Ljava/lang/Object;>;v&javax/servlet/http/HttpServletResponseoutrolex(Ljava/lang/String;Ljava/lang/String;Lorg/springframework/web/servlet/mvc/support/RedirectAttributes;)Ljava/lang/String;z/sys/role/assign?id=
&| X}9(Ljava/lang/String;)Lcom/jeeplus/modules/sys/entity/User;无法从角色【】中移除用户【ƒ 】自己!
[… †g getRoleList ?ˆ ‰Šsize()IŒ    ç”¨æˆ·ã€Ž】从角色【K】中移除失败!这已经是该用户的唯一角色,不能移除。
&’ “” outUserInRole_(Lcom/jeeplus/modules/sys/entity/Role;Lcom/jeeplus/modules/sys/entity/User;)Ljava/lang/Boolean;–】中移除失败!˜】中移除成功!userIdroleIdflagLjava/lang/Boolean;
assignRoleŒ(Lcom/jeeplus/modules/sys/entity/Role;[Ljava/lang/String;Lorg/springframework/web/servlet/mvc/support/RedirectAttributes;)Ljava/lang/String;
assignrole

&¢ £¤assignUserToRoleq(Lcom/jeeplus/modules/sys/entity/Role;Lcom/jeeplus/modules/sys/entity/User;)Lcom/jeeplus/modules/sys/entity/User;¦<br/>新增用户【¨】到角色【ª】!¬已成功分配 
® œ¯(I)Ljava/lang/StringBuilder;±
 ä¸ªç”¨æˆ·
³ œ´-(Ljava/lang/Object;)Ljava/lang/StringBuilder;idsArrLjava/lang/StringBuilder;newNumIi
&» ¼ getRoleByName¾falseoldName
&Á ÂgetRoleByEnname    oldEnnameenname
SourceFileRoleController.java+Lorg/springframework/stereotype/Controller;${adminPath}/sys/role!    
  /*·±+  s Z ]+¸™ *´#+¶%°»*Y·,°568-./012[s34[s0s5 x*´#+¶6N,:-¹;WA°?    @A*CDE     0FG      0HI1'2[sJsKsLMeNO4[sI ™>+¶PÇ +¸T¶Z¶],a+¹;W,b*´#¶d¹;W,h*´j¶l¹;Wq°GHJK+L;M >>C>DE/s12[st4[ss ™>+¶PÇ +¸T¶Z¶],a+¹;W,b*´#¶d¹;W,h*´j¶l¹;Wu°STVW+X;Y >>C>DE/wx*2[systsKsLMeNO4[sw ØC¸T¶zš6+¶~‚¶„™**-½…YŠS¶Œ»Y’·”*´—¶šž¶š¶ °¸£¶©™**-½…Y®S¶Œ»Y’·”*´—¶šž¶š¶ °*,+½°¶²š
*+,¶¶°¸*+¶º+¶½¶À¶„š.*,½…Y»YÄ·”+¶½¶šƶš¶ S¶È*+,¶¶°¸*+¶Ë+¶Î¶Ñ¶„š.*,½…Y»YÄ·”+¶½¶šÔ¶š¶ S¶È*+,¶¶°*´#+¶Ö*-½…Y»YÄ·”+¶½¶šÚ¶š¶ S¶Œ»Y’·”*´—¶šž¶š¶ °F_`#a<cEdSelgyh€j”k¸l¿nÓo÷pþrs*t*CCCCDECÜÝ/</>>Þß2[sà4[sÞ ›¸T¶zš6+¶~‚¶„™**,½…YŠS¶Œ»Y’·”*´—¶šž¶š¶ °¸£¶©™**,½…Y®S¶Œ»Y’·”*´—¶šž¶š¶ °*´#+¶á*,½…YäS¶Œ»Y’·”*´—¶šž¶š¶ °&    z{#|<~ES€l‡tˆ‚Š ››C›ÜÝ/</æç2[sà4[sæ ô
󸣶©™**,½…Y®S¶Œ»Y’·”*´—¶šž¶š¶ °+è¶êN»îY·ð:-Y:¾66§x2:*´#¶%:    ¸T¶zš2    ¶~‚¶„™%»Yñ·”    ¶½¶š󶚶 ¶õW§+*´#    ¶á»Yø·”    ¶½¶šú¶š¶ ¶õW„¡ÿ‡*,½…Y¶üS¶Œ»Y’·”*´—¶šž¶š¶ °>”    •–0˜7™@šT›_œu”ž—Ÿ  ¿šÉ¤Ú¥Hóóý.óÜÝ7¼þÿ@³Tk-._`C    /]0ÿ    …îÿI
…î…*ÿ'    …î12[sy4[s ‹)*´#»[Y»*Y+¶·    ·
¶ N,-¹;W°±²%³*))C)DEFG 12[sy4[s ÄV*´#»[Y»*Y+¶·    ·
¶ N,a+¹;W,-¹;W,-踹;W,h*´j¶l¹;W!°¿À$Á/ÂBÃRÄ*VVCVDE<FG <#$%&2[sy'4[s# |    ’¸(N»[Y·.:»/Y+·1¶2*´#»3Y·5¶8:¶;¹>:§L¹DÀ[:¸J:P¶Q¹RWX¸Z¹RW¶`¹RW-¹aW¹dšÿ°-°2 ÑÒ ÓÔ.ÕIÖN×^ØmÙ}چՐÜR’’g.’hiŽjF …kl.dmnI=olN8pqG Žjr.dmsN8pt/"ÿ=…u?[3EûHwx2[sy4[sw <x¸£¶©™/*-½…Y®S¶Œ»Y’·”*´—¶šy¶š,¶š¶ °*´#,¶%:*´#+¶{:¸T¶Q+¶„™;*-½…Y»Y~·”¶½¶š€¶š¶`¶š‚¶š¶ S¶Œ§Ë¶„¹‡£;*-½…Y»Y‹·”¶`¶š¶š¶½¶š¶š¶ S¶Œ§…*´#¶‘:¶©š;*-½…Y»Y‹·”¶`¶š¶š¶½¶š•¶š¶ S¶Œ§8*-½…Y»Y‹·”¶`¶š¶š¶½¶š—¶š¶ S¶Œ»Y’·”*´—¶šy¶š¶¶š¶ °Fé    êë5í?îIïVð‹ñŽòœóÑôÔõáöé÷ø!ùVýHxx™.xš.xÜÝ?9CI/kláu›œ/5ýX*[ûEüLªú4ž2[sy4[sŸ ž鸣¶©™2*-½…Y®S¶Œ»Y’·”*´—¶šy¶š+¶¶š¶ °»Y· :66§Q*´#+*´#,2¶{¶¡:Æ4»Y¥·”¶`¶š§¶š+¶½¶š©¶š¶ ¶šW„„,¾¡ÿ®*-½…Y»Y«·”¶­°¶š¶²¶ S¶Œ»Y’·”*´—¶šy¶š+¶¶š¶ °6 
      8ADJ_d’•ŸÈRééCéµÿéÜÝA¨¶D¥·¸GX¹¸_6kl/8þûJÂÃ2[sk'4[s }%,Æ,+¶„™¸°,Æ*´#,¶ºÇ¸°½°% &'(!* %%¿.%./ÓÃ2[sk'4[sÓ }%,Æ,+¶„™¸°,Æ*´#,¶ÀǸ°½°7 89:!< %%Ã.%Ä./ÅÆÇ4[sÈ