摘要:buildTree(data, id, pid) { let map = {}; data.forEach(function (item) { // map[item.id] = item; eval('map[item.' + id + '] = item;') //当前ID }); let va 阅读全文
posted @ 2020-01-27 10:39 泡面 @ 幸福 阅读(28) 评论(0) 推荐(0) 编辑
摘要:读取 group_id为4的所有下级 SELECT ID.level, DATA.* FROM( SELECT @ids as _ids, ( SELECT @ids := GROUP_CONCAT(group_id) FROM rbac_group WHERE FIND_IN_SET(parent 阅读全文
posted @ 2020-01-27 10:35 泡面 @ 幸福 阅读(211) 评论(0) 推荐(0) 编辑