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
98f0bbb5
Commit
98f0bbb5
authored
May 07, 2020
by
sxy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 复购商机相关数据入库记录
parent
a3b4afeb
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
38 additions
and
19 deletions
+38
-19
center-channel/app/base/api/impl/opaction/fgbusinesschance.js
+10
-4
center-channel/app/base/service/impl/utilsSve/utilsFgbusinesschanceSve.js
+28
-15
No files found.
center-channel/app/base/api/impl/opaction/fgbusinesschance.js
View file @
98f0bbb5
...
@@ -29,14 +29,20 @@ class FgbusinesschanceAPI extends WEBBase {
...
@@ -29,14 +29,20 @@ class FgbusinesschanceAPI extends WEBBase {
case
"create"
:
//创建复购商机
case
"create"
:
//创建复购商机
opResult
=
await
this
.
utilsFgbusinesschancSve
.
create
(
pobj
,
pobj
.
actionBody
);
opResult
=
await
this
.
utilsFgbusinesschancSve
.
create
(
pobj
,
pobj
.
actionBody
);
break
;
break
;
case
"getInfo"
:
//获取商机
case
"createOrderRefundFq"
:
opResult
=
await
this
.
utilsFgbusinesschancSve
.
getInfo
(
pobj
,
pobj
.
actionBody
);
opResult
=
await
this
.
utilsFgbusinesschancSve
.
createOrderRefundFq
(
pobj
,
pobj
.
actionBody
);
break
;
case
"createOnlineProductClassificiationFq"
:
opResult
=
await
this
.
utilsFgbusinesschancSve
.
createOnlineProductClassificiationFq
(
pobj
,
pobj
.
actionBody
);
break
;
case
"createOrderInfoAndPayFq"
:
opResult
=
await
this
.
utilsFgbusinesschancSve
.
createOrderInfoAndPayFq
(
pobj
,
pobj
.
actionBody
);
break
;
break
;
// ------ 对蜂擎页面 -------
// ------ 对蜂擎页面 -------
case
"getCompanyInfo"
:
// 获取工商信息
--ok
case
"getCompanyInfo"
:
// 获取工商信息
opResult
=
await
this
.
toolSve
.
getEntregistryByCompanyName
(
pobj
.
actionBody
,
req
);
opResult
=
await
this
.
toolSve
.
getEntregistryByCompanyName
(
pobj
.
actionBody
,
req
);
break
;
break
;
case
"getCompanyLabel"
:
// 三十秒认知客户
--ok
case
"getCompanyLabel"
:
// 三十秒认知客户
opResult
=
await
this
.
utilsFgbusinesschancSve
.
getCompanyLabel
(
pobj
,
pobj
.
actionBody
);
opResult
=
await
this
.
utilsFgbusinesschancSve
.
getCompanyLabel
(
pobj
,
pobj
.
actionBody
);
break
break
case
"getRecommendProducts"
:
// 获取推荐产品列表
case
"getRecommendProducts"
:
// 获取推荐产品列表
...
...
center-channel/app/base/service/impl/utilsSve/utilsFgbusinesschanceSve.js
View file @
98f0bbb5
...
@@ -14,16 +14,7 @@ class UtilsFgbusinesschancService extends AppServiceBase {
...
@@ -14,16 +14,7 @@ class UtilsFgbusinesschancService extends AppServiceBase {
this
.
centerAppUrl
=
settings
.
centerAppUrl
();
this
.
centerAppUrl
=
settings
.
centerAppUrl
();
this
.
centerAppPayUrl
=
settings
.
centerAppUrl
()
+
"payment/paymentApi/springBoard"
;
this
.
centerAppPayUrl
=
settings
.
centerAppUrl
()
+
"payment/paymentApi/springBoard"
;
};
};
// async getOrderInfo(pobj, actionBody) {
// var reqUrl = this.centerOrderUrl + "action/order/springBoard";
// var result = await this.restPostUrl(pobj, reqUrl);
// return result;
// }
async
getInfo
(
pobj
,
actionBody
)
{
var
reqUrl
=
this
.
centerOrderUrl
+
"action/fgbusinesschance/springBoard"
;
var
result
=
await
this
.
restPostUrl
(
pobj
,
reqUrl
);
return
result
;
}
async
create
(
pobj
,
actionBody
)
{
async
create
(
pobj
,
actionBody
)
{
if
(
!
actionBody
.
businessData
)
{
if
(
!
actionBody
.
businessData
)
{
return
system
.
getResult
(
null
,
"actionBody.businessData can not be empty,100290"
);
return
system
.
getResult
(
null
,
"actionBody.businessData can not be empty,100290"
);
...
@@ -52,11 +43,33 @@ class UtilsFgbusinesschancService extends AppServiceBase {
...
@@ -52,11 +43,33 @@ class UtilsFgbusinesschancService extends AppServiceBase {
}
}
// async getCompanyInfo(pobj, actionBody) {
async
createOrderRefundFq
(
pobj
,
actionBody
)
{
// if (!actionBody.companyName) {
if
(
!
actionBody
||
Object
.
keys
(
actionBody
).
length
===
0
)
{
// return system.getResult(null, "actionBody.companyName can not be empty,100290");
return
system
.
getResult
(
null
,
"actionBody can not be empty,100290"
);
// }
}
// }
let
url
=
this
.
centerOrderUrl
+
"action/fgbusinesschance/springBoard"
;
return
await
this
.
restPostUrl
(
pobj
,
url
);
}
async
createOnlineProductClassificiationFq
(
pobj
,
actionBody
)
{
if
(
!
actionBody
.
product_id
)
{
return
system
.
getResult
(
null
,
"actionBody.product_id can not be empty,100290"
);
}
let
url
=
this
.
centerOrderUrl
+
"action/fgbusinesschance/springBoard"
;
return
await
this
.
restPostUrl
(
pobj
,
url
);
}
async
createOrderInfoAndPayFq
(
pobj
,
actionBody
)
{
if
(
!
actionBody
.
order_pkid
)
{
return
system
.
getResult
(
null
,
"actionBody.order_pkid can not be empty,100290"
);
}
if
(
!
actionBody
.
order_no
)
{
return
system
.
getResult
(
null
,
"actionBody.order_no can not be empty,100290"
);
}
let
url
=
this
.
centerOrderUrl
+
"action/fgbusinesschance/springBoard"
;
return
await
this
.
restPostUrl
(
pobj
,
url
);
}
async
getCompanyLabel
(
pobj
,
actionBody
)
{
async
getCompanyLabel
(
pobj
,
actionBody
)
{
if
(
!
actionBody
.
companyName
)
{
if
(
!
actionBody
.
companyName
)
{
...
...
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