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
24fe6fa7
Commit
24fe6fa7
authored
Sep 13, 2024
by
吕明尚
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
会员的过期时间改成获取参数
parent
b6c98ee5
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
5 deletions
+10
-5
RedisTask.java
share-quartz/src/main/java/share/quartz/task/RedisTask.java
+2
-3
ConsumerWalletServiceImpl.java
.../share/system/service/impl/ConsumerWalletServiceImpl.java
+4
-1
RechargeServiceImpl.java
...n/java/share/system/service/impl/RechargeServiceImpl.java
+4
-1
No files found.
share-quartz/src/main/java/share/quartz/task/RedisTask.java
View file @
24fe6fa7
...
...
@@ -665,9 +665,8 @@ public class RedisTask {
consumerMember
.
setIsRights
(
YesNoEnum
.
no
.
getIndex
());
if
(
ObjectUtil
.
isNotEmpty
(
consumerMember
))
{
if
(
consumerMember
.
getIsRecharge
().
equals
(
YesNoEnum
.
yes
.
getIndex
()))
{
consumerMember
.
setExpirationDate
(
DateUtils
.
addYears
(
new
Date
(),
100
));
}
else
{
consumerMember
.
setExpirationDate
(
DateUtils
.
addYears
(
new
Date
(),
100
));
String
rechargeMembershipExpirationTime
=
sysConfigService
.
selectConfigByKey
(
"rechargeMembershipExpirationTime"
);
consumerMember
.
setExpirationDate
(
DateUtils
.
addYears
(
new
Date
(),
Integer
.
getInteger
(
rechargeMembershipExpirationTime
)));
}
// MemberConfig memberConfigServiceOne = memberConfigService.getOne(new LambdaQueryWrapper<MemberConfig>()
//// .eq(MemberConfig::getMemberType, consumerMember.getMemberType())
...
...
share-system/src/main/java/share/system/service/impl/ConsumerWalletServiceImpl.java
View file @
24fe6fa7
...
...
@@ -57,6 +57,8 @@ public class ConsumerWalletServiceImpl extends ServiceImpl<ConsumerWalletMapper,
private
ISCouponService
sCouponService
;
@Autowired
private
ISConsumerCouponService
consumerCouponService
;
@Autowired
private
ISysConfigService
sysConfigService
;
/**
* 查询会员钱包
...
...
@@ -210,7 +212,8 @@ public class ConsumerWalletServiceImpl extends ServiceImpl<ConsumerWalletMapper,
// .eq(MemberConfig::getMembershipLevel, one.getMembershipLevel())
// .eq(MemberConfig::getMemberType, MemberTypeEnum.RECHARGE.getIndex())
// );
one
.
setExpirationDate
(
DateUtils
.
addYears
(
new
Date
(),
1
));
String
expirationDateEquityMembership
=
sysConfigService
.
selectConfigByKey
(
"expirationDateEquityMembership"
);
one
.
setExpirationDate
(
DateUtils
.
addYears
(
new
Date
(),
Integer
.
getInteger
(
expirationDateEquityMembership
)));
}
logger
.
debug
(
"修改会员用户"
);
...
...
share-system/src/main/java/share/system/service/impl/RechargeServiceImpl.java
View file @
24fe6fa7
...
...
@@ -54,6 +54,8 @@ public class RechargeServiceImpl extends ServiceImpl<RechargeMapper, Recharge> i
private
ConsumerWalletService
consumerWalletService
;
@Autowired
private
MemberConfigService
memberConfigService
;
@Autowired
private
ISysConfigService
sysConfigService
;
/**
* 查询充值记录
...
...
@@ -164,7 +166,8 @@ public class RechargeServiceImpl extends ServiceImpl<RechargeMapper, Recharge> i
);
// consumerMember.setMemberConfigId(memberConfig.getId());
consumerMember
.
setMembershipProgress
(
BigDecimal
.
ZERO
);
consumerMember
.
setExpirationDate
(
DateUtils
.
addYears
(
new
Date
(),
100
));
String
rechargeMembershipExpirationTime
=
sysConfigService
.
selectConfigByKey
(
"rechargeMembershipExpirationTime"
);
consumerMember
.
setExpirationDate
(
DateUtils
.
addYears
(
new
Date
(),
Integer
.
getInteger
(
rechargeMembershipExpirationTime
)));
consumerMember
.
setCreateTime
(
new
Date
());
consumerMember
.
setIsRecharge
(
YesNoEnum
.
yes
.
getIndex
());
consumerMemberService
.
save
(
consumerMember
);
...
...
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