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
26c6bc35
Commit
26c6bc35
authored
Oct 20, 2020
by
任晓松
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
获取支付记录
parent
67e37fa2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
0 deletions
+25
-0
center-order/app/base/api/impl/opaction/opPayOrder.js
+7
-0
center-order/app/base/service/impl/dbcorder/orderinfoSve.js
+18
-0
No files found.
center-order/app/base/api/impl/opaction/opPayOrder.js
View file @
26c6bc35
...
@@ -25,5 +25,11 @@ class OpPayOrder extends APIBase {
...
@@ -25,5 +25,11 @@ class OpPayOrder extends APIBase {
var
result
=
await
this
.
orderinfoSve
.
opOrderPayCallBackChannel
(
pobj
,
pobj
.
appInfo
);
var
result
=
await
this
.
orderinfoSve
.
opOrderPayCallBackChannel
(
pobj
,
pobj
.
appInfo
);
return
result
;
return
result
;
}
}
//获取支付记录
async
getPayRecords
(
pobj
,
qobj
,
req
){
let
result
=
await
this
.
orderinfoSve
.
getPayRecords
(
pobj
);
return
result
;
}
}
}
module
.
exports
=
OpPayOrder
;
module
.
exports
=
OpPayOrder
;
\ No newline at end of file
center-order/app/base/service/impl/dbcorder/orderinfoSve.js
View file @
26c6bc35
...
@@ -1912,5 +1912,22 @@ class OrderInfoService extends ServiceBase {
...
@@ -1912,5 +1912,22 @@ class OrderInfoService extends ServiceBase {
let
result
=
await
this
.
customQuery
(
sql
,
updateParams
)
let
result
=
await
this
.
customQuery
(
sql
,
updateParams
)
return
system
.
getResult
(
result
);
return
system
.
getResult
(
result
);
}
}
//获取支付记录
async
getPayRecords
(
pobj
){
const
userInfo
=
pobj
.
userInfo
;
let
sql
=
`select m.sourceOrderNo orderNo,json_extract(o.serviceItemSnapshot,'$.channel_item_name') productName,m.recvAmount totalSum,m.directionType directionType,m.updated_at payTime
from
c_moneyjourney m left join v_order o
on m.sourceOrderNo = o.orderNo
where
m.channelUserId = :channelUserId and m.uapp_id = :uapp_id`
const
searchWhere
=
{
channelUserId
:
userInfo
.
channel_userid
,
uapp_id
:
pobj
.
appInfo
.
uapp_id
}
let
seRet
=
await
this
.
customQuery
(
sql
,
searchWhere
);
return
system
.
getResultSuccess
(
seRet
)
}
}
}
module
.
exports
=
OrderInfoService
;
module
.
exports
=
OrderInfoService
;
\ No newline at end of file
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