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
19db4d0d
Commit
19db4d0d
authored
Sep 15, 2022
by
宋毅
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改推送方法
parent
3c3cb766
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
41 additions
and
21 deletions
+41
-21
center-channel/app/base/service/impl/common/regCenterOrderSve.js
+41
-21
No files found.
center-channel/app/base/service/impl/common/regCenterOrderSve.js
View file @
19db4d0d
...
...
@@ -146,35 +146,55 @@ class RegCenterOrderService extends AppServiceBase {
},
appInfo
:
pobj
.
appInfo
};
//往资质宝推送订单
if
(
pobj
.
actionBody
.
isDirectBuy
&&
pobj
.
actionBody
.
isDirectBuy
==
1
)
{
//直接下单需执行添加订单业务员操作
if
(
yunfu
Res
&&
yunfu
Res
.
status
==
0
)
{
if
(
yunfu
Res
.
data
&&
yunfu
Res
.
data
.
data
)
{
var
resData
=
yunfu
Res
.
data
.
data
;
var
salesmanInfo
=
{
if
(
yunfu
PushRes
&&
yunfuPush
Res
.
status
==
0
)
{
if
(
yunfu
PushRes
.
data
&&
yunfuPush
Res
.
data
.
data
)
{
let
resData
=
yunfuPush
Res
.
data
.
data
;
let
salesmanInfo
=
{
salesmanName
:
resData
.
orderList
&&
resData
.
orderList
.
length
>
0
?
resData
.
orderList
[
0
].
operatorName
:
""
,
salesmanChannelId
:
resData
.
orderList
&&
resData
.
orderList
.
length
>
0
?
resData
.
orderList
[
0
].
operator
:
""
,
};
var
salesmanObj
=
{
appInfo
:
pobj
.
appInfo
,
actionType
:
"addRegSalesmanInfo"
,
//添加业务员信息
actionBody
:
{
salesmanInfo
:
salesmanInfo
,
orderNo
:
orderrtn
.
data
.
orderNo
}
};
var
url
=
settings
.
centerOrderUrl
()
+
"action/regapi/springBoard"
;
var
addRes
=
await
this
.
execClient
.
execPost
(
salesmanObj
,
url
);
if
(
addRes
&&
addRes
.
stdout
)
{
var
salesmanRes
=
JSON
.
parse
(
addRes
.
stdout
);
if
(
salesmanRes
.
status
==
0
)
{
deliveryObj
.
actionBody
.
needsolution
=
salesmanRes
.
data
;
await
this
.
utilsPushSve
.
business2Channel
(
deliveryObj
,
"pushDeliveryOrder"
);
}
}
deliveryObj
.
actionBody
.
needsolution
.
salesmanInfo
=
salesmanInfo
;
deliveryObj
.
actionBody
.
needsolution
.
orderNo
=
orderItem
.
data
.
orderNo
;
}
}
}
else
{
}
//往资质宝推送订单
if
(
pobj
.
actionBody
.
isDirectBuy
&&
pobj
.
actionBody
.
isDirectBuy
==
1
)
{
// console.log("deliveryObj......................................................", JSON.stringify(deliveryObj))
this
.
utilsPushSve
.
business2Channel
(
deliveryObj
,
"pushDeliveryOrder"
);
}
// //往资质宝推送订单
// if (pobj.actionBody.isDirectBuy && pobj.actionBody.isDirectBuy == 1) {//直接下单需执行添加订单业务员操作
// if (yunfuRes && yunfuRes.status == 0) {
// if (yunfuRes.data && yunfuRes.data.data) {
// var resData = yunfuRes.data.data;
// var salesmanInfo = {
// salesmanName: resData.orderList && resData.orderList.length > 0 ? resData.orderList[0].operatorName : "",
// salesmanChannelId: resData.orderList && resData.orderList.length > 0 ? resData.orderList[0].operator : "",
// };
// var salesmanObj = {
// appInfo: pobj.appInfo,
// actionType: "addRegSalesmanInfo",//添加业务员信息
// actionBody: {salesmanInfo: salesmanInfo, orderNo: orderrtn.data.orderNo}
// };
// //添加业务员
// var url = settings.centerOrderUrl() + "action/regapi/springBoard";
// var addRes = await this.execClient.execPost(salesmanObj, url);
// if (addRes && addRes.stdout) {
// var salesmanRes = JSON.parse(addRes.stdout);
// if (salesmanRes.status == 0) {
// deliveryObj.actionBody.needsolution = salesmanRes.data;
// await this.utilsPushSve.business2Channel(deliveryObj, "pushDeliveryOrder");
// }
// }
//
// }
// }
// } else {
// this.utilsPushSve.business2Channel(deliveryObj, "pushDeliveryOrder");
// }
return
system
.
getResultSuccess
();
}
...
...
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