Collection<String> stringPermissions = new ArrayList<String>();
for (Role role : roles) {
List<RolePermission> rolePermissions = role.getRolePermissions();
for (RolePermission rolePermission : rolePermissions) {
Permission permission = rolePermission.getPermission();
String resource = permission.getModule().getSn();
String operate = permission.getSn();
StringBuilder builder = new StringBuilder();
builder.append(resource + ":" + operate);
shiroUser.getHasModules().put(resource, permission.getModule());
StringBuilder dcBuilder = new StringBuilder();
for (RolePermissionDataControl rpdc : rolePermission.getRolePermissionDataControls()) {
DataControl dataControl = rpdc.getDataControl();
dcBuilder.append(dataControl.getName() + ",");