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