Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
B
browser-backend
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
Administrator
browser-backend
Commits
aa2969e1
Commit
aa2969e1
authored
Apr 11, 2020
by
jim
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
invite code
parent
3ad8d2b4
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
AccountServiceImpl.java
...owserbackend/account/service/impl/AccountServiceImpl.java
+2
-2
No files found.
src/main/java/com/edgec/browserbackend/account/service/impl/AccountServiceImpl.java
View file @
aa2969e1
...
@@ -393,8 +393,8 @@ public class AccountServiceImpl implements AccountService {
...
@@ -393,8 +393,8 @@ public class AccountServiceImpl implements AccountService {
current
.
setQueryIpUrlList
(
queryIpUrlList
);
current
.
setQueryIpUrlList
(
queryIpUrlList
);
current
.
setWhiteList
(
whiteList
);
current
.
setWhiteList
(
whiteList
);
if
(
account
.
getPromotion
()
!=
null
)
{
int
invitedUsers
=
repository
.
countByPromotionCodeAndParentIsNull
(
account
.
getPromotion
().
getCode
());
int
invitedUsers
=
repository
.
countByPromotionCodeAndParentIsNull
(
account
.
getPromotion
().
getCode
());
String
code
=
account
.
getPromotion
().
getCode
();
String
code
=
account
.
getPromotion
().
getCode
();
List
<
Account
>
promotes
=
repository
.
findByPromotionCode
(
code
);
List
<
Account
>
promotes
=
repository
.
findByPromotionCode
(
code
);
double
totalCommission
=
0
;
double
totalCommission
=
0
;
...
@@ -408,8 +408,8 @@ public class AccountServiceImpl implements AccountService {
...
@@ -408,8 +408,8 @@ public class AccountServiceImpl implements AccountService {
account
.
getPromotion
().
setCommission
((
int
)
totalCommission
);
account
.
getPromotion
().
setCommission
((
int
)
totalCommission
);
account
.
getPromotion
().
setInvitedUsers
(
invitedUsers
);
account
.
getPromotion
().
setInvitedUsers
(
invitedUsers
);
repository
.
save
(
account
);
repository
.
save
(
account
);
}
resultDto
.
setStatus
(
0
);
resultDto
.
setStatus
(
0
);
resultDto
.
setData
(
current
);
resultDto
.
setData
(
current
);
...
...
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