Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Z
zhichan
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
蒋勇
zhichan
Commits
56731c6f
Commit
56731c6f
authored
Apr 16, 2020
by
王栋源
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wdy
parent
e3639666
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
95 additions
and
4 deletions
+95
-4
center-channel/app/base/service/impl/utilsSve/utilsNeedSve.js
+8
-4
center-channel/app/front/entry/public/apidoc/platform/icpOrder.md
+87
-0
No files found.
center-channel/app/base/service/impl/utilsSve/utilsNeedSve.js
View file @
56731c6f
...
...
@@ -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"
);
...
...
center-channel/app/front/entry/public/apidoc/platform/icpOrder.md
View file @
56731c6f
...
...
@@ -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
(用户登录后的凭证)的值
####
渠道执行的类型
actionType
:
getNeedSolutionDetailByUser
```
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' } }
```
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment