<?xml version="1.0" encoding="UTF-8"?> <bm:model xmlns:bm="http://www.leaf-framework.org/schema/bm"> <bm:operations> <bm:operation name="query"> <bm:query-sql><![CDATA[ SELECT nvl(MAX(t2.times),0) as overdue_time FROM con_unearned_finance_income t, con_contract_cashflow t2 #WHERE_CLAUSE# AND t.finance_income_recognized = 'Y' AND t.cashflow_id = t2.cashflow_id ]]></bm:query-sql> </bm:operation> </bm:operations> <bm:fields> <bm:field name="overdue_time" databaseType="NUMBER" datatype="java.lang.Long"/> </bm:fields> </bm:model>