Commit 9a1459e8 by 王昆

gsb

parent 87639f29
...@@ -305,6 +305,7 @@ class DeliverService extends ServiceBase { ...@@ -305,6 +305,7 @@ class DeliverService extends ServiceBase {
this.handleDate(row, ["created_at"], null, -8); this.handleDate(row, ["created_at"], null, -8);
this.setAuth(row); this.setAuth(row);
} }
await this.setOrg(page.rows);
} }
return system.getResultSuccess(page); return system.getResultSuccess(page);
} }
...@@ -348,6 +349,21 @@ class DeliverService extends ServiceBase { ...@@ -348,6 +349,21 @@ class DeliverService extends ServiceBase {
row.authNames = authNames.join("、"); row.authNames = authNames.join("、");
} }
async setOrg (rows) {
if(!rows || rows.length == 0) {
return;
}
let orgIds = [];
for(let row of rows) {
orgIds.push(row.org_id);
}
let orgMap = await this.deliverorgDao.findMapByIds(orgIds);
for(let row of rows) {
row.org = orgMap[row.org_id] || {};
}
}
async deliverUserById(params) { async deliverUserById(params) {
let id = params.id; let id = params.id;
let user = await this.deliveruserDao.getById(id) || {}; let user = await this.deliveruserDao.getById(id) || {};
......
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