mm
This commit is contained in:
@@ -102,7 +102,13 @@ function DBUser.wrapUserList(userlist, groupList)
|
||||
db.userGroupList[v.groupId] = list
|
||||
end
|
||||
|
||||
--//TODO:组装部门的数据
|
||||
-- 组装部门的数据
|
||||
for i, v in ipairs(groupList) do
|
||||
local parentId = v.parentId or -1
|
||||
local list = db.groupTree[parentId] or {}
|
||||
table.insert(list, v)
|
||||
db.groupTree[parentId] = list
|
||||
end
|
||||
end
|
||||
|
||||
function DBUser.getUserList()
|
||||
@@ -262,6 +268,9 @@ function DBUser.wrapMyinforData(myinfor)
|
||||
myinfor.loginNo = user.loginNo
|
||||
myinfor.imageUrl = user.imageUrl
|
||||
end
|
||||
if myinfor.ifPhoAuth == nil then
|
||||
myinfor.ifPhoAuth = companyInfro.ifPhoAuth
|
||||
end
|
||||
return myinfor
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user