fix 工作组统计中已开票金额和到账率不对

This commit is contained in:
lijiarao
2022-06-14 09:54:20 +08:00
parent 40a098d373
commit dc690b2afa
2 changed files with 10 additions and 4 deletions
@@ -25,8 +25,14 @@ public class PayWorkingGroupStatistics {
@Excel(name = "实收总金额", width = 15)
@ApiModelProperty(value = "实收总金额")
private String comeAllMoney;
@Excel(name = "实收总金额", width = 15)
@ApiModelProperty(value = "实收总金额")
@Excel(name = "实收完成率", width = 15)
@ApiModelProperty(value = "实收完成率")
private String moneyRate;
@Excel(name = "开票金额", width = 15)
@ApiModelProperty(value = "开票金额")
private String billMoney;
@Excel(name = "确认到账金额", width = 15)
@ApiModelProperty(value = "确认到账金额")
private String confirmAmount;
}
@@ -132,14 +132,14 @@
<!-- 工作组统计-->
<select id="queryPageListForStatistics" resultType="com.jero.project.entity.PayWorkingGroupStatistics">
select *
select *,
CONCAT(CAST(ROUND((comeAllMoney/allMoney)*100,2) AS CHAR),'%') AS moneyRate
from (
select
superId as id,
projectName as workGroup,
sum(allMoney) as allMoney,
sum(comeAllMoney) as comeAllMoney,
CONCAT(CAST(ROUND((comeAllMoney/allMoney)*100,2) AS CHAR),'%') AS moneyRate,
if(sum(pmb.invoice_amount) is null, 0.00, sum(pmb.invoice_amount)) as billMoney,
sum(confirmAmount) as confirmAmount
from