Commit 56731c6f by 王栋源

wdy

parent e3639666
......@@ -7,6 +7,7 @@ class UtilsNeedService extends AppServiceBase {
super();
this.centerOrderUrl = settings.centerOrderUrl();
this.utilsPushSve = system.getObject("service.utilsSve.utilsPushSve");
this.aliclient = system.getObject("util.aliyunClient");
this.ossClient = system.getObject("util.ossClient");
}
......@@ -108,12 +109,15 @@ class UtilsNeedService extends AppServiceBase {
if (!actionBody.channelNeedNo) {
return system.getResult(null, "actionBody.channelNeedNo can not be empty,100395");
}
pobj.actionBody.intentionBizId=pobj.actionBody.channelNeedNo;
pobj.actionType="needClose"
var self=this;
pobj.actionBody.intentionBizId = pobj.actionBody.channelNeedNo;
pobj.actionType = "needClose"
var reqUrl = this.centerOrderUrl + "action/need/springBoard";
var result = await this.restPostUrl(pobj, reqUrl);
if (result.status == 0) {
this.utilsPushSve.aliBusiness2Fq(pobj, "pushCloseNeed");
//推送ali
await self.aliclient.reqbyget({ action: "CloseIntention", reqbody: { BizId: actionBody.channelNeedNo } });
self.utilsPushSve.aliBusiness2Fq(pobj, "pushCloseNeed");
return system.getResultSuccess();
} else {
return system.getResult(null, "close fail 100389");
......@@ -121,7 +125,7 @@ class UtilsNeedService extends AppServiceBase {
}
//查询需求详情
//查询需求详情
async getItemByNeedNo(pobj, actionBody) {
if (!actionBody.needNo) {
return system.getResult(null, "actionBody.needNo can not be empty,100395");
......
......@@ -6,6 +6,8 @@
1. [icp通知状态变更](#acceptIcpPartnerNotification)
1. [服务商关闭icp方案](#abolishIcpProgramme)
1. [获取方案详情](#getNeedSolutionDetailByUser)
1. [获取需求详情](#getItemByNeedNo)
1. [需求关闭](#needCloseIcp)
## **<a name="submitIcpProgramme"> icp方案提交</a>**
[返回到目录](#menu)
......@@ -507,3 +509,88 @@ ApplicationStatus:
"requestId":"1594aa8fabfd42eba332160263b2597e"
}
```
## **<a name="needCloseIcp"> 服务商关闭icp需求</a>**
[返回到目录](#menu)
##### URL
[/web/action/icapi/springBoard]
#### 参数格式 `JSON`
#### HTTP请求方式 `POST`
#### 请求头中需要增加userpin(用户登录后的凭证)的值
#### 渠道执行的类型 actionType:abolishIcpProgramme
``` javascript
{
"actionType":"needCloseIcp",
"actionBody":{
"channelNeedNo":"S20200323174838000zhb",
"note":"备注"
}
}
```
#### 返回结果
```javascript
{
"status":0,
"msg":"success",
"data":null,
"requestId":"40769e74e83f4505a78b24d84fed870b"
}
## **<a name="getItemByNeedNo"> 获取需求详情</a>**
[返回到目录](#menu)
##### URL
[/web/action/icapi/springBoard]
#### 参数格式 `JSON`
#### HTTP请求方式 `POST`
#### 请求头中需要增加userpin(用户登录后的凭证)的值
#### 渠道执行的类型 actionTypegetNeedSolutionDetailByUser
``` javascript
{
"actionType":"getItemByNeedNo",
"actionBody":{
"needNo":"NS202004131008iKPRDB"
}
}
```
#### 返回结果
```javascript
{ status: 0,
msg: 'success',
data:
{ id: 559,
uapp_id: 18,
needNo: 'N202004132334EjurnEr',
channelNeedNo: '20200413210610000001',
channelUserId: '13800138000',
followManUserId: '100',
followManMobile: '13075556693',
city: '9',
province: null,
publishContent: 'icp需求测试_005',
publishName: '张三',
publishMobile: '13800138000',
notes: null,
followContent:
{ content: 'icp提交到方案', followDate: '2020-04-14T01:53:33.521Z' },
disposeNotes: null,
status: 'wts',
typeCode: 'icpsq',
typeName: 'icp申请',
channelTypeCode: '7',
channelTypeName: 'icp申请',
publisherOnlyCode: null,
followManName: '13075556693',
followManOnlyCode: '13075556693' } }
```
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