Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
O
on-site-service
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
external
on-site-service
Commits
18399a96
Commit
18399a96
authored
Jul 28, 2022
by
shangtx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 支付成功保存日志放在方法最后
parent
9a9165e8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
ServiceOrderBizService.java
...service/miniapp/service/order/ServiceOrderBizService.java
+5
-4
No files found.
mini-app/src/main/java/com/onsiteservice/miniapp/service/order/ServiceOrderBizService.java
View file @
18399a96
...
...
@@ -229,15 +229,13 @@ public class ServiceOrderBizService extends AbstractMapper<ServiceOrder> {
public
void
paySuccess
(
String
outTradeNo
,
String
orderNo
)
{
log
.
info
(
"支付成功 outTradeNo: {}, orderNo: {}"
,
outTradeNo
,
orderNo
);
var
order
=
selectOneByProperty
(
"orderNo"
,
o
utTrade
No
);
var
order
=
selectOneByProperty
(
"orderNo"
,
o
rder
No
);
order
.
setOrderStatus
(
ServiceOrderStatusEnum
.
PAY
.
getStatus
());
int
result
=
serviceOrderMapper
.
updateByPrimaryKeySelective
(
order
);
if
(
result
==
1
)
{
recordComponent
.
recordProcess
(
order
.
getId
(),
ServiceOrderStatusEnum
.
PAY
.
getStatus
(),
ServiceOrderStatusEnum
.
PAY
.
getMsg
(),
ServiceOrderOpSourceEnum
.
MINI_APP
,
null
,
null
,
null
);
}
// 通知客服
var
logCondition
=
new
ServiceOrderLog
();
logCondition
.
setOrderId
(
order
.
getId
());
...
...
@@ -266,6 +264,9 @@ public class ServiceOrderBizService extends AbstractMapper<ServiceOrder> {
}
}
}
if
(
result
==
1
)
{
recordComponent
.
recordProcess
(
order
.
getId
(),
ServiceOrderStatusEnum
.
PAY
.
getStatus
(),
ServiceOrderStatusEnum
.
PAY
.
getMsg
(),
ServiceOrderOpSourceEnum
.
MINI_APP
,
null
,
null
,
null
);
}
}
...
...
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