Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
P
poc-api
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
poc
poc-api
Commits
063ee36f
Commit
063ee36f
authored
Dec 11, 2024
by
alex yao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 初始化权益NPE
parent
e23dcd9d
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
MemberEquityServiceImpl.java
...om/poc/equity/aggregate/impl/MemberEquityServiceImpl.java
+4
-4
No files found.
src/main/java/cn/com/poc/equity/aggregate/impl/MemberEquityServiceImpl.java
View file @
063ee36f
...
@@ -95,7 +95,7 @@ public class MemberEquityServiceImpl implements MemberEquityService {
...
@@ -95,7 +95,7 @@ public class MemberEquityServiceImpl implements MemberEquityService {
@Override
@Override
@Transactional
@Transactional
(
rollbackFor
=
Exception
.
class
)
public
String
addPoint
(
Long
memberId
,
Long
pointNum
,
EquityEnum
.
VALIDITY_UNIT
validityUnit
,
ModifyEventEnum
modifyEventEnum
,
ModifyEventInfo
modifyEventInfo
)
throws
Exception
{
public
String
addPoint
(
Long
memberId
,
Long
pointNum
,
EquityEnum
.
VALIDITY_UNIT
validityUnit
,
ModifyEventEnum
modifyEventEnum
,
ModifyEventInfo
modifyEventInfo
)
throws
Exception
{
Date
expireDate
=
getExpiredDateTime
(
validityUnit
.
name
());
Date
expireDate
=
getExpiredDateTime
(
validityUnit
.
name
());
// 需要检查支付订单是否已发放
// 需要检查支付订单是否已发放
...
@@ -122,7 +122,7 @@ public class MemberEquityServiceImpl implements MemberEquityService {
...
@@ -122,7 +122,7 @@ public class MemberEquityServiceImpl implements MemberEquityService {
@Override
@Override
@Transactional
@Transactional
(
rollbackFor
=
Exception
.
class
)
public
String
reducePoint
(
Long
memberId
,
Long
pointNum
,
ModifyEventEnum
modifyEventEnum
,
ModifyEventInfo
modifyEventInfo
)
throws
Exception
{
public
String
reducePoint
(
Long
memberId
,
Long
pointNum
,
ModifyEventEnum
modifyEventEnum
,
ModifyEventInfo
modifyEventInfo
)
throws
Exception
{
if
(
pointNum
<=
0
)
{
if
(
pointNum
<=
0
)
{
return
""
;
return
""
;
...
@@ -179,7 +179,7 @@ public class MemberEquityServiceImpl implements MemberEquityService {
...
@@ -179,7 +179,7 @@ public class MemberEquityServiceImpl implements MemberEquityService {
}
}
@Override
@Override
@Transactional
@Transactional
(
rollbackFor
=
Exception
.
class
)
public
void
rollbackPoint
(
String
transactionSn
)
throws
Exception
{
public
void
rollbackPoint
(
String
transactionSn
)
throws
Exception
{
if
(
StringUtils
.
isBlank
(
transactionSn
))
{
if
(
StringUtils
.
isBlank
(
transactionSn
))
{
logger
.
error
(
"-----交易号为空,无法回滚-----"
);
logger
.
error
(
"-----交易号为空,无法回滚-----"
);
...
@@ -226,7 +226,7 @@ public class MemberEquityServiceImpl implements MemberEquityService {
...
@@ -226,7 +226,7 @@ public class MemberEquityServiceImpl implements MemberEquityService {
}
}
@Override
@Override
@Transactional
@Transactional
(
rollbackFor
=
Exception
.
class
)
public
String
changeEquityLevel
(
Long
memberId
,
ModifyEventEnum
modifyEventEnum
,
EquityEnum
.
TYPE
type
,
EquityEnum
.
VALIDITY_UNIT
validityUnit
,
ModifyEventInfo
modifyEventInfo
)
throws
Exception
{
public
String
changeEquityLevel
(
Long
memberId
,
ModifyEventEnum
modifyEventEnum
,
EquityEnum
.
TYPE
type
,
EquityEnum
.
VALIDITY_UNIT
validityUnit
,
ModifyEventInfo
modifyEventInfo
)
throws
Exception
{
BizMemberEquityEntity
memberEquityEntity
=
bizMemberEquityService
.
getByMemberId
(
memberId
);
BizMemberEquityEntity
memberEquityEntity
=
bizMemberEquityService
.
getByMemberId
(
memberId
);
// 检查是否已发放
// 检查是否已发放
...
...
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