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
b91f656f
Commit
b91f656f
authored
Jul 10, 2020
by
linboxuan
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'center-channel' of
http://gitlab.gongsibao.com/jiangyong/zhichan
into center-channel
parents
b688c51b
be4702b1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
68 additions
and
2 deletions
+68
-2
center-channel/app/base/api/impl/opaction/fgbusinesschance.js
+3
-0
center-channel/app/base/service/impl/utilsSve/utilsFgbusinesschanceSve.js
+22
-0
center-channel/app/front/entry/public/apidoc/platform/fgbusinesschance.md
+43
-2
No files found.
center-channel/app/base/api/impl/opaction/fgbusinesschance.js
View file @
b91f656f
...
@@ -63,6 +63,9 @@ class FgbusinesschanceAPI extends WEBBase {
...
@@ -63,6 +63,9 @@ class FgbusinesschanceAPI extends WEBBase {
case
"getConsultingRecord"
:
// 根据咨询公司名称获取咨询记录
case
"getConsultingRecord"
:
// 根据咨询公司名称获取咨询记录
opResult
=
await
this
.
utilsFgbusinesschancSve
.
getConsultingRecord
(
pobj
,
pobj
.
actionBody
);
opResult
=
await
this
.
utilsFgbusinesschancSve
.
getConsultingRecord
(
pobj
,
pobj
.
actionBody
);
break
break
case
"addStatusRemarks"
:
// 产品跟进状态备注
opResult
=
await
this
.
utilsFgbusinesschancSve
.
addStatusRemarks
(
pobj
,
pobj
.
actionBody
);
break
default
:
default
:
opResult
=
system
.
getResult
(
null
,
"action_type参数错误"
);
opResult
=
system
.
getResult
(
null
,
"action_type参数错误"
);
break
;
break
;
...
...
center-channel/app/base/service/impl/utilsSve/utilsFgbusinesschanceSve.js
View file @
b91f656f
...
@@ -126,6 +126,9 @@ class UtilsFgbusinesschancService extends AppServiceBase {
...
@@ -126,6 +126,9 @@ class UtilsFgbusinesschancService extends AppServiceBase {
if
(
actionBody
.
businessType
===
"关联推荐"
)
{
if
(
actionBody
.
businessType
===
"关联推荐"
)
{
data
=
{
data
:
result
.
data
,
relational_reason
:
result
.
relational_reason
||
[]
}
data
=
{
data
:
result
.
data
,
relational_reason
:
result
.
relational_reason
||
[]
}
}
}
if
(
actionBody
.
businessType
===
"公海挖掘"
)
{
data
=
{
data
:
result
.
data
,
seas_reason
:
result
.
seas_reason
||
[]
}
}
return
system
.
getResultCustomSuccess
(
data
);
return
system
.
getResultCustomSuccess
(
data
);
}
}
...
@@ -231,6 +234,25 @@ class UtilsFgbusinesschancService extends AppServiceBase {
...
@@ -231,6 +234,25 @@ class UtilsFgbusinesschancService extends AppServiceBase {
return
system
.
getResultSuccess
(
result
.
data
);
return
system
.
getResultSuccess
(
result
.
data
);
}
}
async
addStatusRemarks
(
pobj
,
actionBody
)
{
if
(
!
actionBody
.
recommendId
)
{
return
system
.
getResult
(
null
,
"actionBody.recommendId can not be empty,100290"
);
}
if
(
!
actionBody
.
remarks
)
{
return
system
.
getResult
(
null
,
"actionBody.remarks can not be empty,100290"
);
}
var
url
=
settings
.
entProfileUrl
()
+
"gsb/api/statusRemarks"
;
var
reqParam
=
{
recommendId
:
actionBody
.
recommendId
,
remarks
:
actionBody
.
remarks
}
var
result
=
await
this
.
restPostWithHValueUrl
(
reqParam
,
url
);
let
code
=
result
.
code
||
result
.
status
if
(
code
!==
200
&&
code
!==
0
)
{
return
system
.
getResult
(
null
,
result
.
message
||
result
.
msg
||
"req is error"
);
}
return
system
.
getResultSuccess
(
result
.
data
);
}
}
}
module
.
exports
=
UtilsFgbusinesschancService
;
module
.
exports
=
UtilsFgbusinesschancService
;
center-channel/app/front/entry/public/apidoc/platform/fgbusinesschance.md
View file @
b91f656f
...
@@ -11,6 +11,7 @@
...
@@ -11,6 +11,7 @@
1.
[
写入订单退款表
](
#j
)
1.
[
写入订单退款表
](
#j
)
1.
[
写入支付表和订单详情表
](
#k
)
1.
[
写入支付表和订单详情表
](
#k
)
1.
[
根据咨询公司名称获取咨询记录
](
#l
)
1.
[
根据咨询公司名称获取咨询记录
](
#l
)
1.
[
添加产品跟进状态备注
](
#m
)
## **<a name="a"> 获取营销话术</a>**
## **<a name="a"> 获取营销话术</a>**
...
@@ -299,7 +300,7 @@
...
@@ -299,7 +300,7 @@
"actionType":"getRecommendProducts",
"actionType":"getRecommendProducts",
actionBody:{
actionBody:{
businessId:"商机Id",
businessId:"商机Id",
businessType:"复购算法" // 复购算法、关联推荐、智能监测
businessType:"复购算法" // 复购算法、关联推荐、智能监测
、公海挖掘
}
}
}
}
```
```
...
@@ -313,7 +314,8 @@
...
@@ -313,7 +314,8 @@
"survey_reason":[
"survey_reason":[
{'change_item': '住所', 'change_time': '2020-03-24', 'change_text': '【北京市海淀区巨山路78号院209室】变更为【北京市海淀区信息路28号1幢10层1003-12室】'}
{'change_item': '住所', 'change_time': '2020-03-24', 'change_text': '【北京市海淀区巨山路78号院209室】变更为【北京市海淀区信息路28号1幢10层1003-12室】'}
] ,// 备注 : 只有类型 智能监测 该字段才出现
] ,// 备注 : 只有类型 智能监测 该字段才出现
"relational_reason":["公司所属行业类型:互联网和相关服务业"] // 备注:只有类型为关联推荐时出现
"relational_reason":["公司所属行业类型:互联网和相关服务业"], // 备注:只有类型为关联推荐时出现
"seas_reason":["公司所属行业类型:互联网和相关服务业"] //备注:只有类型为公海挖掘推荐时出现
"data":[{
"data":[{
"accountId":"客户ID",
"accountId":"客户ID",
"recommendId": "00000001",//推荐唯一码
"recommendId": "00000001",//推荐唯一码
...
@@ -585,4 +587,42 @@
...
@@ -585,4 +587,42 @@
],
],
"requestId": "f21446617c5e46ad889f3fab7bb69456"
"requestId": "f21446617c5e46ad889f3fab7bb69456"
}
}
```
## **<a name="m">添加产品跟进状态备注</a>**
[
返回到目录
](
#menu
)
##### URL
[
/api/opaction/fgbusinesschance/springBoard
]
#### 参数格式 `JSON`
#### HTTP请求方式 `POST`
#### 请求头中需要增加token的值
#### 渠道执行的类型 actionType:addStatusRemarks
#### 请求数据
```
{
"actionType":"addStatusRemarks",
"actionBody":{
"recommendId":"00000001", //产品推荐id
"remarks":"客户沟通中"
}
}
```
#### 返回结果
```
{
"status": 0,// 0为成功,否则失败
"msg": "success",
"data":"00000001",
"requestId": "f21446617c5e46ad889f3fab7bb69456"
}
```
```
\ No newline at end of file
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