add:统计打包变更

This commit is contained in:
zhangqinlin
2022-07-08 17:37:01 +08:00
parent add8cccb15
commit 32f33837d0
3 changed files with 26 additions and 19 deletions
@@ -2116,7 +2116,7 @@
comeAllMoney,
departName,
billMoney,
CONCAT(CAST(ROUND((comeAllMoney / allMoney) * 100, 2) AS CHAR), '%') AS finishRate,
CONCAT(CAST(ROUND((confirmAmount / allMoney) * 100, 2) AS CHAR), '%') AS finishRate,
confirmAmount
from
(select
@@ -2128,6 +2128,7 @@
from v_statistical v
left join pay_mail_bill_project pmbp on v.projectId = pmbp.project_id
left join pay_mail_bill pmb on pmbp.bill_id = pmb.id
left join pay_confirm_payment_record pcpr on(pmbp.project_id=pcpr.project_id)
<where>
<foreach item="item" open="departId in(" separator="," close=")" collection="idList">
#{item}
@@ -2136,8 +2137,8 @@
AND year LIKE
concat(#{departStatisticsSearch.year}, '%')
</if>
<if test="departStatisticsSearch.billYear != null and departStatisticsSearch.billYear != ''">
and DATE_FORMAT (pmb.bill_date,'%Y') like concat(#{departStatisticsSearch.billYear}, '%')
<if test="departStatisticsSearch.paymentYear != null and departStatisticsSearch.paymentYear != ''">
and DATE_FORMAT (pcpr.payment_date,'%Y') like concat(#{departStatisticsSearch.paymentYear}, '%')
</if>
</where>
group by v.departId) p
@@ -2177,6 +2178,7 @@
from v_statistical v
left join pay_mail_bill_project pmbp on v.projectId = pmbp.project_id
left join pay_mail_bill pmb on pmbp.bill_id = pmb.id
left join pay_confirm_payment_record pcpr on(pmbp.project_id=pcpr.project_id)
<where>
<foreach item="item" open="departId in(" separator="," close=")" collection="idList">
#{item}
@@ -2185,8 +2187,8 @@
AND year LIKE
concat(#{departStatisticsSearch.year}, '%')
</if>
<if test="departStatisticsSearch.billYear != null and departStatisticsSearch.billYear != ''">
and DATE_FORMAT (pmb.bill_date,'%Y') like concat(#{departStatisticsSearch.billYear}, '%')
<if test="departStatisticsSearch.paymentYear != null and departStatisticsSearch.paymentYear != ''">
and DATE_FORMAT (pcpr.payment_date,'%Y') like concat(#{departStatisticsSearch.paymentYear}, '%')
</if>
</where>
</select>
@@ -14,23 +14,25 @@ public class DepartStatistics {
@ApiModelProperty(value = "部门名称")
private String departName;
@Excel(name = "应收总金额", width = 15)
@ApiModelProperty(value = "应收总金额")
@Excel(name = "合同总金额", width = 15)
@ApiModelProperty(value = "合同金额")
private String allMoney;
@Excel(name = "实收总金额", width = 15)
@ApiModelProperty(value = "实收总金额")
private String comeAllMoney;
@Excel(name = "到账率", width = 15)
@ApiModelProperty(value = "到账率")
private String finishRate;
@Excel(name = "确认收入金额", width = 15)
@ApiModelProperty(value = "确认收入金额")
private String confirmAmount;
@Excel(name = "开票金额", width = 15)
@ApiModelProperty(value = "开票金额")
private String billMoney;
@Excel(name = "确认到账金额", width = 15)
@ApiModelProperty(value = "确认到账金额")
private String confirmAmount;
@Excel(name = "到账金额", width = 15)
@ApiModelProperty(value = "到账金额")
private String comeAllMoney;
@Excel(name = "确收率", width = 15)
@ApiModelProperty(value = "确收率")
private String finishRate;
}
@@ -10,8 +10,11 @@ public class DepartStatisticsSearch {
@ApiModelProperty(value = "来款年份")
private String year;
@ApiModelProperty(value = "开票年份")
private String billYear;
/**
* 2022.7.7 billYear->paymentYear
*/
@ApiModelProperty(value = "确认年份")
private String paymentYear;
@ApiModelProperty(value = "字段")
private String column;