Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
S
shop
Project
Project
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
曲欣亮
shop
Commits
524a8219
Commit
524a8219
authored
Apr 26, 2023
by
张永
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
88983e77
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
2 deletions
+10
-2
PayNotifyController.java
src/main/java/com/egolm/shop/api/PayNotifyController.java
+1
-2
OrderServiceImpl.java
...ava/com/egolm/shop/api/service/impl/OrderServiceImpl.java
+9
-0
No files found.
src/main/java/com/egolm/shop/api/PayNotifyController.java
View file @
524a8219
...
...
@@ -93,8 +93,7 @@ public class PayNotifyController {
return
"success"
;
}
public
static
void
main
(
String
[]
args
)
{
...
...
src/main/java/com/egolm/shop/api/service/impl/OrderServiceImpl.java
View file @
524a8219
...
...
@@ -1207,6 +1207,15 @@ public class OrderServiceImpl implements OrderService {
String
from_type
=
reqObj
.
getString
(
"from_type"
);
// PAY为支付回调、REFUND为退款回调
boolean
isValid
=
reqObj
.
getBooleanValue
(
"isValid"
);
if
(
isValid
)
{
if
(
from_type
.
equals
(
"CREATE"
))
{
String
OutTradeNo
=
reqObj
.
getString
(
"OutTradeNo"
);
String
OrderNo
=
reqObj
.
getString
(
"OrderNo"
);
// 网商订单号
String
TotalAmount
=
reqObj
.
getString
(
"TotalAmount"
);
//
String
PayCardNO
=
reqObj
.
getString
(
"PayCardNO"
);
//
String
sql
=
"exec up_B2BSalesOrderPayUpdate '"
+
OutTradeNo
+
"' ,'"
+
OrderNo
+
"' , '"
+
PayCardNO
+
"' , '"
+
TotalAmount
+
"' , '"
+
PayTypeID
+
"' "
;
returnMap
=
jdbcTemplate
.
executeMutil
(
sql
).
getDatas
().
get
(
0
);
}
if
(
from_type
.
equals
(
"PAY"
))
{
String
OutTradeNo
=
reqObj
.
getString
(
"OutTradeNo"
);
String
OrderNo
=
reqObj
.
getString
(
"OrderNo"
);
// 网商订单号
...
...
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