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
fa200799
Commit
fa200799
authored
Mar 31, 2020
by
renjie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
推广礼金
parent
adcd6742
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
1 deletion
+10
-1
Promotion.java
...va/com/edgec/browserbackend/account/domain/Promotion.java
+9
-0
AccountServiceImpl.java
...owserbackend/account/service/impl/AccountServiceImpl.java
+0
-1
PromotionTask.java
.../com/edgec/browserbackend/browser/task/PromotionTask.java
+1
-0
No files found.
src/main/java/com/edgec/browserbackend/account/domain/Promotion.java
View file @
fa200799
...
...
@@ -13,6 +13,7 @@ public class Promotion {
private
int
invitedUsers
;
private
int
commission
;
private
boolean
isSale
;
private
double
gift
;
public
int
getCommission
()
{
return
commission
;
...
...
@@ -45,4 +46,12 @@ public class Promotion {
public
void
setSale
(
boolean
sale
)
{
isSale
=
sale
;
}
public
double
getGift
()
{
return
gift
;
}
public
void
setGift
(
double
gift
)
{
this
.
gift
=
gift
;
}
}
src/main/java/com/edgec/browserbackend/account/service/impl/AccountServiceImpl.java
View file @
fa200799
...
...
@@ -1112,7 +1112,6 @@ public class AccountServiceImpl implements AccountService {
if
(
companyAuthorize
==
null
)
return
null
;
File
companyLicense
=
companyAuthorizeRepository
.
getFile
(
companyAuthorize
.
getCompanyLicenseId
());
log
.
error
(
"3"
);
File
coporationLicense_Front
=
companyAuthorizeRepository
.
getFile
(
companyAuthorize
.
getCoporationLicenseFront
());
File
coporationLicense_Back
=
companyAuthorizeRepository
.
getFile
(
companyAuthorize
.
getCoporationLicenseBack
());
File
agencyLicense_Front
=
null
;
...
...
src/main/java/com/edgec/browserbackend/browser/task/PromotionTask.java
View file @
fa200799
...
...
@@ -42,6 +42,7 @@ public class PromotionTask {
totalCommission
+=
userPrePaidBillings
.
stream
().
mapToDouble
(
UserPrePaidBilling:
:
getTotal
).
sum
();
}
account
.
getPromotion
().
setCommission
((
int
)
totalCommission
);
account
.
getPromotion
().
setGift
(
totalCommission
*
8
/
100
);
accountRepository
.
save
(
account
);
}
}
...
...
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