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
099fd942
Commit
099fd942
authored
May 23, 2022
by
宋毅
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新街口
parent
b893d89f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
74 additions
and
48 deletions
+74
-48
center-channel/app/base/service/impl/common/baseCenterOrderSve.js
+74
-48
No files found.
center-channel/app/base/service/impl/common/baseCenterOrderSve.js
View file @
099fd942
...
...
@@ -793,6 +793,7 @@ class BaseCenterOrderService extends AppServiceBase {
}
await
this
.
utilsPushSve
.
business2Channel
(
reqPushParams
,
"serviceProvider2Notification"
);
}
else
{
if
(
res
.
data
.
uapp_id
==
uappId
.
ali
)
{
//推送数据至阿里
let
pushObj
=
{
...
...
@@ -835,72 +836,97 @@ class BaseCenterOrderService extends AppServiceBase {
}
}
if
(
res
.
data
.
uapp_id
==
uappId
.
zc360
)
{
pobj
.
pushObj
=
res
.
data
;
let
zc360
=
await
this
.
utils360Sve
.
pushOrderStatus
(
pobj
);
if
(
zc360
&&
zc360
.
code
==
200
&&
zc360
.
msg
==
'ok'
)
{
resFlag
=
200
}
}
if
(
res
.
data
.
uapp_id
==
uappId
.
baidu
)
{
res
.
data
.
ApplicationStatus
=
baiduIcpStatus
[
res
.
data
.
ApplicationStatus
];
//推送数据至百度
let
tmpMaterial
=
res
.
data
.
material
;
let
pushObj
=
{
orderNo
:
res
.
data
.
channelOrderNo
,
status
:
res
.
data
.
ApplicationStatus
status
:
res
.
data
.
ApplicationStatus
,
companyName
:
tmpMaterial
.
companyName
,
applyMaterial
:
tmpMaterial
.
applyMaterial
,
user
:
tmpMaterial
.
user
,
acceptNotifyFile
:
tmpMaterial
.
acceptNotifyFile
,
certificateFile
:
tmpMaterial
.
certificateFile
,
expressNum
:
tmpMaterial
.
expressNum
};
//推送状态变更
//推送状态变更
及材料
let
baiduParams
=
{
path
:
"/
api/bla/provider/license/update
"
,
path
:
"/
v1/bla/provider/license-data
"
,
reqbody
:
pushObj
}
console
.
log
(
"baiduReqbyget.......................params...."
,
JSON
.
stringify
(
baiduParams
))
let
baidu
=
await
this
.
baiduclient
.
baiduReqbyget
(
baiduParams
);
console
.
log
(
"baiduReqbyget.......................baiduRes...."
,
JSON
.
stringify
(
baidu
))
this
.
execClientNew
.
execLogs
(
"serviceProviderNotification-updateStatus-baiduReqbyget:"
,
baiduParams
,
"center-channel-serviceProviderNotification"
,
baidu
,
null
);
if
(
baidu
&&
baidu
.
data
&&
baidu
.
data
.
result
)
{
resFlag
=
200
}
//推送材料数据至百度用于更新订单状态完成
let
material
=
res
.
data
.
material
;
if
(
material
)
{
let
pushMaterialObj
=
{
"businessLicense"
:
{
"createdAt"
:
material
.
BusinessLicense
.
CreatedAt
||
""
,
"enterpriseCode"
:
material
.
BusinessLicense
.
EnterpriseCode
||
""
,
"legalRepresentative"
:
material
.
BusinessLicense
.
LegalRepresentative
||
""
,
"address"
:
material
.
BusinessLicense
.
Address
||
""
,
"registeredCapital"
:
material
.
BusinessLicense
.
RegisteredCapital
||
""
,
"name"
:
material
.
BusinessLicense
.
Name
||
""
,
"businessTerm"
:
material
.
BusinessLicense
.
BusinessTerm
||
""
,
"type"
:
material
.
BusinessLicense
.
Type
||
""
,
"scopeBusiness"
:
material
.
BusinessLicense
.
ScopeBusiness
||
""
},
"partnerForeignInvestment"
:
material
.
PartnerForeignInvestment
||
""
,
"orderNo"
:
res
.
data
.
channelOrderNo
,
"domain"
:
material
.
Domain
,
"corporateName"
:
material
.
CorporateName
,
"includeForeignInvestment"
:
material
.
IncludeForeignInvestment
,
"partnerBusinessLicense"
:
material
.
PartnerBusinessLicense
,
"partnerIdCardList"
:
material
.
PartnerIdCardList
,
"partnerDomainCertificate"
:
material
.
PartnerDomainCertificate
,
"partnerPreviewOtherList"
:
material
.
PartnerPreviewOtherList
||
[],
"partnerPlan"
:
material
.
PartnerPlan
||
""
,
"partnerLaw"
:
material
.
PartnerLaw
||
""
,
"partnerStampOtherList"
:
material
.
PartnerStampOtherList
||
[],
"partnerSignOtherList"
:
material
.
PartnerSignOtherList
||
[],
"partnerSignAndStampOtherList"
:
material
.
PartnerSignAndStampOtherList
||
[]
};
//推送方案材料
let
baiduMaterialParams
=
{
path
:
"/api/bla/provider/license/material"
,
reqbody
:
pushMaterialObj
}
let
baiduMaterial
=
await
self
.
baiduclient
.
baiduReqbyget
(
baiduMaterialParams
);
this
.
execClientNew
.
execLogs
(
"serviceProviderNotification-updateMaterial-baiduReqbyget:"
,
pushMaterialObj
,
"center-channel-serviceProviderNotification"
,
baiduMaterial
,
null
);
}
}
// let pushObj = {
// orderNo: res.data.channelOrderNo,
// status: res.data.ApplicationStatus
// };
// //推送状态变更
// let baiduParams = {
// path: "/api/bla/provider/license/update",
// reqbody: pushObj
// }
// let baidu = await this.baiduclient.baiduReqbyget(baiduParams);
// this.execClientNew.execLogs("serviceProviderNotification-updateStatus-baiduReqbyget:", baiduParams, "center-channel-serviceProviderNotification", baidu, null);
// if (baidu && baidu.data && baidu.data.result) {
// resFlag = 200
// }
if
(
res
.
data
.
uapp_id
==
uappId
.
zc360
)
{
pobj
.
pushObj
=
res
.
data
;
let
zc360
=
await
this
.
utils360Sve
.
pushOrderStatus
(
pobj
);
if
(
zc360
&&
zc360
.
code
==
200
&&
zc360
.
msg
==
'ok'
)
{
resFlag
=
200
}
// //推送材料数据至百度用于更新订单状态完成
// let material = res.data.material;
// if (material) {
// let pushMaterialObj = {
// "businessLicense": {
// "createdAt": material.BusinessLicense.CreatedAt || "",
// "enterpriseCode": material.BusinessLicense.EnterpriseCode || "",
// "legalRepresentative": material.BusinessLicense.LegalRepresentative || "",
// "address": material.BusinessLicense.Address || "",
// "registeredCapital": material.BusinessLicense.RegisteredCapital || "",
// "name": material.BusinessLicense.Name || "",
// "businessTerm": material.BusinessLicense.BusinessTerm || "",
// "type": material.BusinessLicense.Type || "",
// "scopeBusiness": material.BusinessLicense.ScopeBusiness || ""
// },
// "partnerForeignInvestment": material.PartnerForeignInvestment || "",
// "orderNo": res.data.channelOrderNo,
// "domain": material.Domain,
// "corporateName": material.CorporateName,
// "includeForeignInvestment": material.IncludeForeignInvestment,
// "partnerBusinessLicense": material.PartnerBusinessLicense,
// "partnerIdCardList": material.PartnerIdCardList,
// "partnerDomainCertificate": material.PartnerDomainCertificate,
// "partnerPreviewOtherList": material.PartnerPreviewOtherList || [],
// "partnerPlan": material.PartnerPlan || "",
// "partnerLaw": material.PartnerLaw || "",
// "partnerStampOtherList": material.PartnerStampOtherList || [],
// "partnerSignOtherList": material.PartnerSignOtherList || [],
// "partnerSignAndStampOtherList": material.PartnerSignAndStampOtherList || []
// };
// //推送方案材料
// let baiduMaterialParams = {
// path: "/api/bla/provider/license/material",
// reqbody: pushMaterialObj
// }
// let baiduMaterial = await self.baiduclient.baiduReqbyget(baiduMaterialParams);
// this.execClientNew.execLogs("serviceProviderNotification-updateMaterial-baiduReqbyget:", pushMaterialObj, "center-channel-serviceProviderNotification", baiduMaterial, null);
// }
}
if
(
resFlag
==
200
)
{
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