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
fc3382f5
Commit
fc3382f5
authored
May 07, 2020
by
sxy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 调整传输结构
parent
14a3f542
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
center-order/app/base/service/impl/dbcorder/fgbusinesschanceSve.js
+6
-6
No files found.
center-order/app/base/service/impl/dbcorder/fgbusinesschanceSve.js
View file @
fc3382f5
...
...
@@ -52,7 +52,7 @@ class FgbusinesschancService extends ServiceBase {
async
createOrderInfoAndPayFq
(
req
,
actionBody
)
{
let
sql
=
`SELECT * FROM order_info_fq WHERE order_pkid =:order_pkid`
;
let
list
=
await
this
.
customQuery
(
sql
,
{
order_pkid
:
actionBody
.
order_pkid
order_pkid
:
actionBody
.
order
Info
.
order
_pkid
});
if
(
!
list
||
list
.
length
===
0
)
{
// 插入 order_info_fq
...
...
@@ -68,8 +68,8 @@ class FgbusinesschancService extends ServiceBase {
"ownership_company"
,
"source"
,
"source_type"
,
"contract_number"
,
"contract_amount"
];
keys
.
forEach
((
item
,
index
)
=>
{
if
(
actionBody
[
item
])
{
data
[
item
]
=
actionBody
[
item
]
if
(
actionBody
.
orderInfo
[
item
])
{
data
[
item
]
=
actionBody
.
orderInfo
[
item
]
}
})
sql
=
`INSERT INTO order_info_fq (
${
Object
.
keys
(
data
).
join
()}
) VALUE (:
${
Object
.
keys
(
data
).
join
(
",:"
)}
) `
;
...
...
@@ -79,7 +79,7 @@ class FgbusinesschancService extends ServiceBase {
sql
=
`SELECT * FROM pay_fq WHERE order_no =:order_no`
;
list
=
await
this
.
customQuery
(
sql
,
{
order_no
:
actionBody
.
order_no
order_no
:
actionBody
.
payInfo
.
order_no
});
if
(
!
list
||
list
.
length
===
0
)
{
// 插入 pay_fq
...
...
@@ -97,8 +97,8 @@ class FgbusinesschancService extends ServiceBase {
"remark"
,
"payment_item_id"
];
keys
.
forEach
((
item
,
index
)
=>
{
if
(
actionBody
[
item
])
{
data
[
item
]
=
actionBody
[
item
]
if
(
actionBody
.
payInfo
[
item
])
{
data
[
item
]
=
actionBody
.
payInfo
[
item
]
}
})
sql
=
`INSERT INTO pay_fq (
${
Object
.
keys
(
data
).
join
()}
) VALUE (:
${
Object
.
keys
(
data
).
join
(
",:"
)}
) `
;
...
...
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