This commit is contained in:
linfso 2024-09-27 17:59:16 +08:00
parent 3473e4661b
commit 895509a9e2

View File

@ -273,7 +273,7 @@
) tbb on tba.salesmen=tbb.salesmen and tba.billMonth=tbb.billMonth ) tbb on tba.salesmen=tbb.salesmen and tba.billMonth=tbb.billMonth
left join ( left join (
select a.salesmen,a.bill_month as billMonth, 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 from emis_settle_bill a,emis_settle_invoice_record b
<where> <where>
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 <![CDATA[ <= ]]> a.payment_due_date 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 <![CDATA[ <= ]]> a.payment_due_date
@ -295,7 +295,7 @@
) tbc on tba.salesmen=tbc.salesmen and tba.billMonth=tbc.billMonth ) tbc on tba.salesmen=tbc.salesmen and tba.billMonth=tbc.billMonth
left join ( left join (
select a.salesmen,a.bill_month as billMonth, 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 from emis_settle_bill a,emis_settle_invoice_record b
<where> <where>
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 <![CDATA[ > ]]> a.payment_due_date 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 <![CDATA[ > ]]> a.payment_due_date