Commit fb87424a authored by 周健威's avatar 周健威

修改database设置没有生效的问题

parent 9332e106
package com.github.wxiaoqi.security.admin.vo;
import cn.hutool.core.collection.CollUtil;
import com.github.wxiaoqi.security.common.vo.TreeNode;
import org.springframework.beans.BeanUtils;
......@@ -17,6 +18,15 @@ public class AuthorityMenuTree extends TreeNode implements Serializable{
String text;
List<AuthorityMenuTree> nodes = new ArrayList<AuthorityMenuTree>();
String icon;
List<Integer> elementIds = CollUtil.newArrayList();
public List<Integer> getElementIds() {
return elementIds;
}
public void setElementIds(List<Integer> elementIds) {
this.elementIds = elementIds;
}
public String getIcon() {
return icon;
......
......@@ -225,10 +225,12 @@ public class GroupBiz extends BaseBiz<GroupMapper, Group> {
List<Menu> menus = menuMapper.selectMenuByAuthorityId(String.valueOf(groupId), AdminCommonConstant.AUTHORITY_TYPE_GROUP);
List<AuthorityMenuTree> trees = new ArrayList<AuthorityMenuTree>();
AuthorityMenuTree node = null;
List<Integer> elementIds = getAuthorityElement(groupId);
for (Menu menu : menus) {
node = new AuthorityMenuTree();
node.setText(menu.getTitle());
BeanUtils.copyProperties(menu, node);
node.setElementIds(elementIds);
trees.add(node);
}
return trees;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment