Commit 38121716 authored by maliang's avatar maliang

上传bug修复

parent 81f0017d
......@@ -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);
......
......@@ -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}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment