This commit is contained in:
linfso 2024-09-27 21:11:40 +08:00
parent 4cca35d6ca
commit 37aef2a80d
2 changed files with 10 additions and 5 deletions

View File

@ -19,8 +19,9 @@ public class BillPayStatInfo implements Serializable {
// 应收金额
private BigDecimal recPayMoney;
// 已收金额
private BigDecimal hasRecdPayMoney;
// 总已收金额/总未收金额
private BigDecimal totalRecdPayMoney;
private BigDecimal totalNoRecdPayMoney;
// 账单总数量
private Integer totalBillCount;
// 已收款账单数量

View File

@ -71,7 +71,9 @@
<result property="salesmen" column="salesmen" />
<result property="billMonth" column="billMonth" />
<result property="recPayMoney" column="recPayMoney" />
<result property="hasRecdPayMoney" column="hasRecdPayMoney" />
<result property="totalRecdPayMoney" column="totalRecdPayMoney" />
<result property="totalNoRecdPayMoney" column="totalNoRecdPayMoney" />
<result property="totalBillCount" column="totalBillCount" />
<result property="hasPayBillCount" column="hasPayBillCount" />
<result property="somePayBillCount" column="somePayBillCount" />
@ -108,7 +110,8 @@
tba.billMonth,
tba.recPayMoney,
tba.totalBillCount,
tba.hasRecdPayMoney,
tba.totalRecdPayMoney,
tba.totalNoRecdPayMoney,
tbb.hasPayBillCount,
tbb.somePayBillCount,
tbb.noPayBillCount,
@ -120,7 +123,8 @@
select salesmen,bill_month as billMonth,
ROUND(sum(rec_money),2) as recPayMoney,
count(1) as totalBillCount,
ROUND(sum(reced_money),2) as hasRecdPayMoney
ROUND(sum(reced_money),2) as totalRecdPayMoney,
ROUND(sum(rec_money-reced_money),2) as totalNoRecdPayMoney
from emis_settle_bill a
<where>
a.del_flag='0'