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
64fd4327
Commit
64fd4327
authored
Mar 01, 2021
by
宋毅
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'center-channel' of gitlab.gongsibao.com:jiangyong/zhichan into center-channel
parents
430ca2d6
21192f3e
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
29 additions
and
0 deletions
+29
-0
center-channel/app/base/api/impl/opaction/order.js
+3
-0
center-channel/app/base/service/impl/utilsSve/utilsOrderSve.js
+25
-0
center-channel/app/config/businessConfig.js
+1
-0
No files found.
center-channel/app/base/api/impl/opaction/order.js
View file @
64fd4327
...
@@ -80,6 +80,9 @@ class ProductAPI extends WEBBase {
...
@@ -80,6 +80,9 @@ class ProductAPI extends WEBBase {
case
"getUsuallyContacts"
:
//查询常用联系人、申请人
case
"getUsuallyContacts"
:
//查询常用联系人、申请人
opResult
=
await
this
.
utilsOrderSve
.
getUsuallyContacts
(
pobj
,
pobj
.
actionBody
);
opResult
=
await
this
.
utilsOrderSve
.
getUsuallyContacts
(
pobj
,
pobj
.
actionBody
);
break
;
break
;
case
"importOrders"
:
opResult
=
await
this
.
utilsOrderSve
.
importOrders
(
pobj
,
req
);
break
;
case
"pushTest"
:
case
"pushTest"
:
opResult
=
await
this
.
utilsOrderSve
.
pushTest
(
pobj
,
pobj
.
actionBody
);
opResult
=
await
this
.
utilsOrderSve
.
pushTest
(
pobj
,
pobj
.
actionBody
);
break
;
break
;
...
...
center-channel/app/base/service/impl/utilsSve/utilsOrderSve.js
View file @
64fd4327
...
@@ -285,6 +285,31 @@ class UtilsOrderService extends AppServiceBase {
...
@@ -285,6 +285,31 @@ class UtilsOrderService extends AppServiceBase {
return
result
;
return
result
;
}
}
/**
* 腾讯订单导入
* @param pobj
* @param req
* @returns {Promise<void>}
*/
async
importOrders
(
pobj
,
req
){
let
url
=
this
.
centerOrderUrl
+
'action/order/springBoard'
;
if
(
!
pobj
.
actionBody
.
ordersArr
){
return
system
.
getResultFail
(
-
1
,
'导入数据不能为空'
);
}
if
(
!
pobj
.
actionBody
.
uapp_id
){
return
system
.
getResultFail
(
-
1
,
'渠道id 不能为空'
);
}
pobj
.
actionType
=
'bulkCreateOrders'
;
let
result
=
await
this
.
execPostByTimeOut
(
req
,
pobj
,
url
,
"json"
,
null
,
60
);
if
(
!
result
||
result
.
status
!=
0
)
{
return
system
.
getResult
(
null
,
result
.
msg
);
}
if
(
!
result
.
data
||
result
.
data
.
status
!=
0
)
{
return
system
.
getResult
(
null
,
result
.
data
.
msg
);
}
return
result
.
data
.
data
;
}
async
getOrderDetails
(
pobj
,
actionBody
)
{
async
getOrderDetails
(
pobj
,
actionBody
)
{
var
reqUrl
=
this
.
centerOrderUrl
+
"action/order/springBoard"
;
var
reqUrl
=
this
.
centerOrderUrl
+
"action/order/springBoard"
;
var
result
=
await
this
.
restPostUrl
(
pobj
,
reqUrl
);
var
result
=
await
this
.
restPostUrl
(
pobj
,
reqUrl
);
...
...
center-channel/app/config/businessConfig.js
View file @
64fd4327
...
@@ -18,6 +18,7 @@ module.exports = {
...
@@ -18,6 +18,7 @@ module.exports = {
"rtSubmitMaterial"
,
"rtNotification"
,
"rtSubmitSolution"
,
"rtCloseNeed"
,
"rtClosePlan"
,
"rtSubmitMaterial"
,
"rtNotification"
,
"rtSubmitSolution"
,
"rtCloseNeed"
,
"rtClosePlan"
,
"getParamsFor360"
,
"addOrderWeb"
,
"getPayRecords"
,
"getLoginInfo"
,
"putUserMobileByVcode"
,
"getParamsFor360"
,
"addOrderWeb"
,
"getPayRecords"
,
"getLoginInfo"
,
"putUserMobileByVcode"
,
"putUserPwdByMobile"
,
"icpNotifyNew"
,
"getOrderStatisticsByUappId"
,
"getOrderStatisticsByProduct"
,
"getOrdersComparison"
,
"getOrdersComparisonList"
,
"putUserPwdByMobile"
,
"icpNotifyNew"
,
"getOrderStatisticsByUappId"
,
"getOrderStatisticsByProduct"
,
"getOrdersComparison"
,
"getOrdersComparisonList"
,
"importOrders"
,
"importNeeds"
,
//百度工商注册
//百度工商注册
"regGetInfoByChannelNeedNo"
,
"submitRegNeed"
,
"regFeedbackSubmit"
,
"regOrderStatus"
,
"regOrderClose"
,
"regGetInfoByChannelNeedNo"
,
"submitRegNeed"
,
"regFeedbackSubmit"
,
"regOrderStatus"
,
"regOrderClose"
,
"getSolutionByChannelOrderNo"
,
"regSubmitSolution"
,
"regNeedClose"
,
"getSolutionByChannelOrderNo"
,
"regSubmitSolution"
,
"regNeedClose"
,
...
...
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