Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gxpt_ht
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
pseer
gxpt_ht
Commits
0af5093a
Commit
0af5093a
authored
Aug 13, 2024
by
吕明尚
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改权益支付回调
parent
8b3d566c
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
+12
-0
EquityMembersOrderServiceImpl.java
...re/system/service/impl/EquityMembersOrderServiceImpl.java
+12
-0
No files found.
share-system/src/main/java/share/system/service/impl/EquityMembersOrderServiceImpl.java
View file @
0af5093a
...
@@ -52,6 +52,8 @@ public class EquityMembersOrderServiceImpl extends ServiceImpl<EquityMembersOrde
...
@@ -52,6 +52,8 @@ public class EquityMembersOrderServiceImpl extends ServiceImpl<EquityMembersOrde
private
MemberConfigService
memberConfigService
;
private
MemberConfigService
memberConfigService
;
@Autowired
@Autowired
private
RedisUtil
redisUtil
;
private
RedisUtil
redisUtil
;
@Autowired
private
ConsumerWalletService
consumerWalletService
;
/**
/**
* 查询权益会员订单
* 查询权益会员订单
...
@@ -160,6 +162,7 @@ public class EquityMembersOrderServiceImpl extends ServiceImpl<EquityMembersOrde
...
@@ -160,6 +162,7 @@ public class EquityMembersOrderServiceImpl extends ServiceImpl<EquityMembersOrde
@Override
@Override
public
void
paymentSuccessful
(
EquityMembersOrder
equityMembersOrder
)
{
public
void
paymentSuccessful
(
EquityMembersOrder
equityMembersOrder
)
{
ConsumerMember
consumerMember
=
consumerMemberService
.
getOne
(
new
LambdaQueryWrapper
<
ConsumerMember
>().
eq
(
ConsumerMember:
:
getConsumerId
,
equityMembersOrder
.
getConsumerId
()));
ConsumerMember
consumerMember
=
consumerMemberService
.
getOne
(
new
LambdaQueryWrapper
<
ConsumerMember
>().
eq
(
ConsumerMember:
:
getConsumerId
,
equityMembersOrder
.
getConsumerId
()));
ConsumerWallet
consumerWallet
=
consumerWalletService
.
getOne
(
new
LambdaQueryWrapper
<
ConsumerWallet
>().
eq
(
ConsumerWallet:
:
getConsumerId
,
equityMembersOrder
.
getConsumerId
()));
EquityMembersOrderConfig
equityMembersOrderConfig
=
equityMembersOrderConfigService
.
selectEquityMembersOrderConfigById
(
equityMembersOrder
.
getEquityMembersConfigId
());
EquityMembersOrderConfig
equityMembersOrderConfig
=
equityMembersOrderConfigService
.
selectEquityMembersOrderConfigById
(
equityMembersOrder
.
getEquityMembersConfigId
());
if
(
ObjectUtil
.
isEmpty
(
consumerMember
))
{
if
(
ObjectUtil
.
isEmpty
(
consumerMember
))
{
ConsumerMember
newConsumerMember
=
new
ConsumerMember
();
ConsumerMember
newConsumerMember
=
new
ConsumerMember
();
...
@@ -210,6 +213,15 @@ public class EquityMembersOrderServiceImpl extends ServiceImpl<EquityMembersOrde
...
@@ -210,6 +213,15 @@ public class EquityMembersOrderServiceImpl extends ServiceImpl<EquityMembersOrde
JSONObject
json
=
new
JSONObject
(
map
);
JSONObject
json
=
new
JSONObject
(
map
);
redisUtil
.
set
(
ReceiptRdeisEnum
.
EQUITY_MEMBERS_TIME
.
getValue
()
+
equityMembersOrder
.
getConsumerId
(),
json
.
toString
());
redisUtil
.
set
(
ReceiptRdeisEnum
.
EQUITY_MEMBERS_TIME
.
getValue
()
+
equityMembersOrder
.
getConsumerId
(),
json
.
toString
());
}
}
if
(
ObjectUtil
.
isEmpty
(
consumerWallet
))
{
ConsumerWallet
consumerWalletOne
=
new
ConsumerWallet
();
consumerWalletOne
.
setConsumerId
(
equityMembersOrder
.
getConsumerId
());
consumerWalletOne
.
setBalance
(
BigDecimal
.
ZERO
);
consumerWalletOne
.
setRemainingDuration
(
BigDecimal
.
ZERO
);
consumerWalletOne
.
setRemainingIntegral
(
BigDecimal
.
ZERO
);
consumerWalletOne
.
setCreateTime
(
new
Date
());
consumerWalletService
.
save
(
consumerWalletOne
);
}
updateEquityMembersOrder
(
equityMembersOrder
);
updateEquityMembersOrder
(
equityMembersOrder
);
}
}
...
...
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