对于这个List,一定要先初始化,不然会报空指针异常
@TableField(exist = false)
private List<Menu> children = new ArrayList<>();
业务代码
ps = PermissionMapper.queryByRoleId(roleId);
HashMap<Integer, Permission> permissionMap = new
对于这个List,一定要先初始化,不然会报空指针异常
@TableField(exist = false)
private List<Menu> children = new ArrayList<>();
业务代码
ps = PermissionMapper.queryByRoleId(roleId);
HashMap<Integer, Permission> permissionMap = new