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
3e2d9781
Commit
3e2d9781
authored
Jul 03, 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
c3953e8c
31f344d5
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
33 deletions
+15
-33
center-channel/app/base/service/impl/utilsSve/utilsFgbusinesschanceSve.js
+11
-1
center-channel/app/config/routes/api.js
+0
-29
center-channel/app/front/entry/public/apidoc/platform/fgbusinesschance.md
+4
-3
No files found.
center-channel/app/base/service/impl/utilsSve/utilsFgbusinesschanceSve.js
View file @
3e2d9781
...
...
@@ -25,6 +25,9 @@ class UtilsFgbusinesschancService extends AppServiceBase {
if
(
!
Array
.
isArray
(
actionBody
.
businessData
))
{
return
system
.
getResult
(
null
,
"actionBody.businessData should be Array,100290"
);
}
if
(
actionBody
.
businessType
===
"关联推荐"
&&
!
actionBody
.
customerType
)
{
return
system
.
getResult
(
null
,
"关联推荐时,customerType不能为空"
);
}
var
self
=
this
;
var
reqUrl
=
this
.
centerOrderUrl
+
"action/fgbusinesschance/springBoard"
;
...
...
@@ -116,7 +119,14 @@ class UtilsFgbusinesschancService extends AppServiceBase {
if
(
code
!==
200
&&
code
!==
0
)
{
return
system
.
getResult
(
null
,
result
.
message
||
result
.
msg
||
"req is error"
);
}
return
system
.
getResultCustomSuccess
(
actionBody
.
businessType
===
"智能监测"
?
{
data
:
result
.
data
,
survey_reason
:
result
.
survey_reason
}
:
{
data
:
result
.
data
});
let
data
=
{
data
:
result
.
data
};
if
(
actionBody
.
businessType
===
"智能监测"
)
{
data
=
{
data
:
result
.
data
,
survey_reason
:
result
.
survey_reason
||
[]
}
}
if
(
actionBody
.
businessType
===
"关联推荐"
)
{
data
=
{
data
:
result
.
data
,
relational_reason
:
result
.
relational_reason
||
[]
}
}
return
system
.
getResultCustomSuccess
(
data
);
}
async
getOldOrder
(
pobj
,
actionBody
)
{
...
...
center-channel/app/config/routes/api.js
View file @
3e2d9781
...
...
@@ -451,32 +451,4 @@ module.exports = function (app) {
});
//-----------------------新的模式---------api---------结束
//--------------------------起名宝------------------------------------//
app
.
post
(
'/name/:gname/:qname/:method'
,
function
(
req
,
res
)
{
var
classPath
=
req
.
params
[
"qname"
];
var
methodName
=
req
.
params
[
"method"
];
var
gname
=
req
.
params
[
"gname"
];
var
params
=
[];
classPath
=
gname
+
"."
+
classPath
;
var
tClientIp
=
system
.
get_client_ip
(
req
);
req
.
clientIp
=
tClientIp
;
req
.
uagent
=
req
.
headers
[
"user-agent"
];
req
.
classname
=
classPath
;
params
.
push
(
gname
);
params
.
push
(
methodName
);
params
.
push
(
req
.
body
)
params
.
push
(
req
.
query
);
params
.
push
(
req
);
var
p
=
null
;
var
invokeObj
=
system
.
getObject
(
"api."
+
classPath
);
if
(
invokeObj
[
"doexecMethod"
])
{
p
=
invokeObj
[
"doexecMethod"
].
apply
(
invokeObj
,
params
);
}
p
.
then
(
r
=>
{
res
.
end
(
JSON
.
stringify
(
r
));
});
});
};
\ No newline at end of file
center-channel/app/front/entry/public/apidoc/platform/fgbusinesschance.md
View file @
3e2d9781
...
...
@@ -310,7 +310,8 @@
"msg": "success",
"survey_reason":[
{'change_item': '住所', 'change_time': '2020-03-24', 'change_text': '【北京市海淀区巨山路78号院209室】变更为【北京市海淀区信息路28号1幢10层1003-12室】'}
] // 备注 : 只有类型 智能监测 该字段才出现
] ,// 备注 : 只有类型 智能监测 该字段才出现
"relational_reason":["公司所属行业类型:互联网和相关服务业"] // 备注:只有类型为关联推荐时出现
"data":[{
"accountId":"客户ID",
"recommendId": "00000001",//推荐唯一码
...
...
@@ -388,13 +389,13 @@
actionBody:{
businessData:[
{
"companyId":"111111100001",//公司唯一码
"companyId":"111111100001",//公司唯一码
"companyName": "公司名称",
"businessId": "商机唯一码",
createTime":"2019-12-12"
},
{
"companyId":"111111100001",//公司唯一码
"companyId":"111111100001",//公司唯一码
"companyName": "公司名称",
"businessId": "商机唯一码",
createTime":"2019-12-12"
...
...
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