Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
lwby_copyright_book_data
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
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
maliang
lwby_copyright_book_data
Commits
b63337a9
Commit
b63337a9
authored
Jun 13, 2020
by
maliang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
类属性修改
parent
689bfe51
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
3 deletions
+14
-3
CopyrightBookServiceImpl.java
...ecurity/server/service/impl/CopyrightBookServiceImpl.java
+14
-3
No files found.
src/main/java/com/boot/security/server/service/impl/CopyrightBookServiceImpl.java
View file @
b63337a9
...
...
@@ -149,8 +149,18 @@ public class CopyrightBookServiceImpl implements CopyrightBookService {
Double
totalAdvertAmountC
=
baseSettlement
.
getTotalAdvertAmount
();
Double
totalAmount
=
settlement
.
getTotalAmount
();
Double
totalAdvertAmount
=
settlement
.
getTotalAdvertAmount
();
settlement
.
setBookRadio
(
Double
.
valueOf
(
df
.
format
(
totalAmount
/
totalAmountC
)
));
settlement
.
setBookAdRadio
(
Double
.
valueOf
(
df
.
format
(
totalAdvertAmount
/
totalAdvertAmountC
)
));
if
(
totalAmountC
!=
0.0
){
settlement
.
setBookRadio
(
Double
.
valueOf
(
df
.
format
(
totalAmount
/
totalAmountC
)
));
}
else
{
settlement
.
setBookRadio
(
0.0
);
}
if
(
totalAdvertAmountC
!=
0.0
){
settlement
.
setBookAdRadio
(
Double
.
valueOf
(
df
.
format
(
totalAdvertAmount
/
totalAdvertAmountC
)
));
}
else
{
settlement
.
setBookAdRadio
(
0.0
);
}
}
}
}
...
...
@@ -164,7 +174,8 @@ public class CopyrightBookServiceImpl implements CopyrightBookService {
Double
count1
=
0.0
;
Double
totalAdvertAmount
=
baseSettlement
.
getTotalAdvertAmount
();
//扣量算法
if
(
type
==
1
){
if
(
type
.
equals
(
1
)){
JSONObject
jsonObject
=
JSONObject
.
parseObject
(
context
);
Set
<
String
>
keySet
=
jsonObject
.
keySet
();
ArrayList
<
Integer
>
list1
=
new
ArrayList
<>();
...
...
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