Commit a3aa8437 by 王昆

gsb

parent c6d1e85e
...@@ -112,6 +112,9 @@ class ActionAPI extends APIBase { ...@@ -112,6 +112,9 @@ class ActionAPI extends APIBase {
case "deliverUsers": case "deliverUsers":
opResult = await this.deliverSve.deliverUsers(action_body); opResult = await this.deliverSve.deliverUsers(action_body);
break; break;
case "deliverUserMap":
opResult = await this.deliverSve.deliverUserMap(action_body);
break;
// 发票内容 // 发票内容
case "invoicecontentSave": case "invoicecontentSave":
......
...@@ -229,6 +229,26 @@ class DeliverService extends ServiceBase { ...@@ -229,6 +229,26 @@ class DeliverService extends ServiceBase {
} }
return system.getResultSuccess(list); return system.getResultSuccess(list);
} }
async deliverUserMap(params) {
if (!params.ids || params.ids.length == 0) {
return;
}
let sql = "SELECT * FROM d_deliver_user WHERE id IN (:ids)";
let list = await this.customQuery(sql, {ids: params.ids});
let result = {};
if (!list || list.length == 0) {
return result;
}
for (let item of list) {
result[item.id] = item;
}
return result;
}
} }
module.exports = DeliverService; module.exports = DeliverService;
......
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