Commit 014f8eb1 by 王昆

gsb

parent 83bc8f59
...@@ -201,5 +201,18 @@ class UserCtl extends CtlBase { ...@@ -201,5 +201,18 @@ class UserCtl extends CtlBase {
return system.getResult(null, `系统错误 错误信息 ${error}`); return system.getResult(null, `系统错误 错误信息 ${error}`);
} }
} }
async salesmanList(params, pobj2, req) {
try {
if (!params.deliver_id) {
return system.getResultSuccess([]);
}
params.uctype = params.deliver_id;
return await this.userSve.findDeliverUsers(params);
} catch (error) {
console.log(error);
return system.getResult(null, `系统错误 错误信息 ${error}`);
}
}
} }
module.exports = UserCtl; module.exports = UserCtl;
\ No newline at end of file
...@@ -130,9 +130,13 @@ class UserService extends ServiceBase { ...@@ -130,9 +130,13 @@ class UserService extends ServiceBase {
} }
} }
async findByDeliverId(params) { async findDeliverUsers(params) {
try { try {
return await this.callms("uc", "findByUctype", {uctype: params.deliver_id}); let p = {
uctype: 3,
uctypeId: params.deliver_id,
}
return await this.callms("uc", "findUsers", p);
} catch (error) { } catch (error) {
console.log(error); console.log(error);
return system.getResult(null, `系统错误 错误信息 ${error}`); return system.getResult(null, `系统错误 错误信息 ${error}`);
......
...@@ -189,8 +189,8 @@ class System { ...@@ -189,8 +189,8 @@ class System {
invoice: "http://127.0.0.1:3105" + path, invoice: "http://127.0.0.1:3105" + path,
// 发票服务 // 发票服务
uc: domain + ":3106" + path, // uc: domain + ":3106" + path,
// uc: "http://127.0.0.1:3106" + path, uc: "http://127.0.0.1:3106" + path,
} }
} else { } else {
var odomain = "http://123.57.217.203" var odomain = "http://123.57.217.203"
......
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
1. [业务进度字典](#processList) 1. [业务进度字典](#processList)
1. [订单管理列表](#allOrders) 1. [订单管理列表](#allOrders)
1. [我的业务订单](#myorders) 1. [我的业务订单](#myorders)
1. [业务员查询](#salesmanList)
1. [分配业务员](#deliverAssignSalesman) 1. [分配业务员](#deliverAssignSalesman)
1. [工商注册中](#businessRegister) 1. [工商注册中](#businessRegister)
1. [工商注册完成](#businessRegisterComplete) 1. [工商注册完成](#businessRegisterComplete)
...@@ -191,6 +192,36 @@ ...@@ -191,6 +192,36 @@
``` ```
## **<a name="salesmanList"> 业务员查询 </a>**
[返回到目录](#menu)
##### URL
[/web/uc/userCtl/salesmanList]
#### 参数格式 `JSON`
#### HTTP请求方式 `POST`
``` javascript
{}
```
#### 返回结果
```javascript
{
"status": 0,
"msg": "success",
"data": [
{
"id": 9, // id
"realName": "郭德纲" // 姓名
},
],
"requestid": "6c308d46116945968592fbce5f3f4a95"
}
```
## **<a name="salesmanList"> 平台业务员查询 </a>** ## **<a name="salesmanList"> 平台业务员查询 </a>**
[返回到目录](#menu) [返回到目录](#menu)
##### URL ##### URL
......
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