From 895509a9e2f8a24f760a4ff7e9a5fac11fd306c1 Mon Sep 17 00:00:00 2001 From: linfso Date: Fri, 27 Sep 2024 17:59:16 +0800 Subject: [PATCH] md --- emis-biz/src/main/resources/mapper/EmisSettleBillMapper.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/emis-biz/src/main/resources/mapper/EmisSettleBillMapper.xml b/emis-biz/src/main/resources/mapper/EmisSettleBillMapper.xml index f4b1994c7..0fa0e02c4 100644 --- a/emis-biz/src/main/resources/mapper/EmisSettleBillMapper.xml +++ b/emis-biz/src/main/resources/mapper/EmisSettleBillMapper.xml @@ -273,7 +273,7 @@ ) tbb on tba.salesmen=tbb.salesmen and tba.billMonth=tbb.billMonth left join ( select a.salesmen,a.bill_month as billMonth, - count(1) as normalOpenBillCount + count(distinct a.settle_bill_no) as normalOpenBillCount from emis_settle_bill a,emis_settle_invoice_record b a.del_flag='0' and b.del_flag='0' and FIND_IN_SET(a.settle_bill_no,b.settle_bill_no) and b.create_time a.payment_due_date @@ -295,7 +295,7 @@ ) tbc on tba.salesmen=tbc.salesmen and tba.billMonth=tbc.billMonth left join ( select a.salesmen,a.bill_month as billMonth, - count(1) as expiredOpenBillCount + count(distinct a.settle_bill_no) as expiredOpenBillCount from emis_settle_bill a,emis_settle_invoice_record b a.del_flag='0' and b.del_flag='0' and FIND_IN_SET(a.settle_bill_no,b.settle_bill_no) and b.create_time ]]> a.payment_due_date