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
38121716
Commit
38121716
authored
Jul 21, 2020
by
maliang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
上传bug修复
parent
81f0017d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
CopyrightBookServiceImpl.java
...ecurity/server/service/impl/CopyrightBookServiceImpl.java
+2
-2
CopyrightMapper.xml
src/main/resources/mybatis-mappers/CopyrightMapper.xml
+1
-1
No files found.
src/main/java/com/boot/security/server/service/impl/CopyrightBookServiceImpl.java
View file @
38121716
...
...
@@ -370,13 +370,13 @@ public class CopyrightBookServiceImpl implements CopyrightBookService {
Double
totalAdvertAmountC
=
baseSettlement
.
getTotalAdvertAmount
();
Double
totalAmount
=
settlement
.
getTotalAmount
();
Double
totalAdvertAmount
=
settlement
.
getTotalAdvertAmount
();
if
(
totalAmountC
!=
0.0
){
if
(
totalAmountC
!=
0.0
&&
totalAmount
!=
null
&&
totalAmountC
!=
null
){
settlement
.
setBookRadio
(
Double
.
valueOf
(
df
.
format
(
totalAmount
/
totalAmountC
)
));
}
else
{
settlement
.
setBookRadio
(
0.0
);
}
if
(
totalAdvertAmountC
!=
0.0
){
if
(
totalAdvertAmountC
!=
0.0
&&
totalAdvertAmount
!=
null
&&
totalAdvertAmountC
!=
null
){
settlement
.
setBookAdRadio
(
Double
.
valueOf
(
df
.
format
(
totalAdvertAmount
/
totalAdvertAmountC
)
));
}
else
{
settlement
.
setBookAdRadio
(
0.0
);
...
...
src/main/resources/mybatis-mappers/CopyrightMapper.xml
View file @
38121716
...
...
@@ -192,7 +192,7 @@
from bi_report.report_books_settlement_month a
WHERE
<![CDATA[
a.report_date>
=
'2020-04'
and a.report_date
<
= #{endTime}
a.report_date>
=
#{startTime}
and a.report_date
<
= #{endTime}
]]>
<if
test=
"bookId != null and bookId!='' "
>
and a.book_id = #{bookId}
...
...
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