This commit is contained in:
2020-08-18 17:24:02 +08:00
parent 9b3c793dda
commit 7ff6b2ec35
85 changed files with 6609 additions and 101 deletions

View File

@@ -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