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
2c8ee014
Commit
2c8ee014
authored
Dec 17, 2024
by
alex yao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:创建积分包异常
parent
1e89de7a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
EquityOrderRestImpl.java
...java/cn/com/poc/equity/rest/impl/EquityOrderRestImpl.java
+3
-2
No files found.
src/main/java/cn/com/poc/equity/rest/impl/EquityOrderRestImpl.java
View file @
2c8ee014
...
@@ -47,10 +47,11 @@ public class EquityOrderRestImpl implements EquityOrderRest {
...
@@ -47,10 +47,11 @@ public class EquityOrderRestImpl implements EquityOrderRest {
throw
new
I18nMessageException
(
"exception/user.not.login"
);
throw
new
I18nMessageException
(
"exception/user.not.login"
);
}
}
//
获取用户当前
权益
//
校验用户当前权益是否比当前要购买的权益低,如果是权益购买,则不允许用户购买比自己等级低的
权益
MemberEquityInfo
equityInfo
=
memberEquityService
.
getEquityInfo
(
currentUser
.
getUserId
());
MemberEquityInfo
equityInfo
=
memberEquityService
.
getEquityInfo
(
currentUser
.
getUserId
());
EquityEnum
.
TYPE
currentEquityLevel
=
equityInfo
.
getEquityLevel
();
EquityEnum
.
TYPE
currentEquityLevel
=
equityInfo
.
getEquityLevel
();
if
(
currentEquityLevel
.
getLevel
()
>
EquityEnum
.
TYPE
.
valueOf
(
createDto
.
getType
()).
getLevel
())
{
if
(
createDto
.
getDomain
().
equals
(
EquityEnum
.
DOMAIN
.
equity
.
name
())
&&
currentEquityLevel
.
getLevel
()
>
EquityEnum
.
TYPE
.
valueOf
(
createDto
.
getType
()).
getLevel
())
{
throw
new
I18nMessageException
(
"equity/target.equity.is.lower.current.equity"
);
throw
new
I18nMessageException
(
"equity/target.equity.is.lower.current.equity"
);
}
}
...
...
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