Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
peizhen-java
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
PeiZhen-Java
peizhen-java
Commits
b1b91cd0
Commit
b1b91cd0
authored
Oct 07, 2023
by
sdif
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
区分APP和小程序支付类型
parent
0e85e266
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
0 deletions
+15
-0
pz-system/src/main/java/com/pz/system/service/impl/TotalOrderServiceImpl.java
+15
-0
No files found.
pz-system/src/main/java/com/pz/system/service/impl/TotalOrderServiceImpl.java
View file @
b1b91cd0
...
@@ -751,6 +751,21 @@ public class TotalOrderServiceImpl implements ITotalOrderService {
...
@@ -751,6 +751,21 @@ public class TotalOrderServiceImpl implements ITotalOrderService {
orderRequest
.
setTradeType
(
"JSAPI"
);
orderRequest
.
setTradeType
(
"JSAPI"
);
}
else
if
(
bo
.
getPaymentType
()
==
1
){
}
else
if
(
bo
.
getPaymentType
()
==
1
){
orderRequest
.
setTradeType
(
"APP"
);
orderRequest
.
setTradeType
(
"APP"
);
TotalOrder
totalOrder1
=
baseMapper
.
selectOne
(
new
LambdaQueryWrapper
<
TotalOrder
>().
eq
(
TotalOrder:
:
getOrderSn
,
totalOrder
.
getOrderSn
()));
if
(
totalOrder1
.
getStatus
()
==
0
)
{
// 修改订单状态为已支付
totalOrder1
.
setStatus
(
1
);
baseMapper
.
updateById
(
totalOrder1
);
// 添加支付记录
PaymentRecord
paymentRecord
=
new
PaymentRecord
();
paymentRecord
.
setPayType
(
0
);
paymentRecord
.
setOrderId
(
totalOrder1
.
getId
().
intValue
());
paymentRecord
.
setMoney
(
totalOrder1
.
getPayMoney
());
paymentRecord
.
setUid
(
totalOrder1
.
getUid
());
paymentRecordMapper
.
insert
(
paymentRecord
);
return
true
;
}
}
}
}
else
{
}
else
{
orderRequest
.
setOpenid
(
openId
);
orderRequest
.
setOpenid
(
openId
);
...
...
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