get_wfl_status.lwm 954 Bytes
Newer Older
gzj34291's avatar
gzj34291 committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
<?xml version="1.0" encoding="UTF-8"?>
<!--
    $Author: gzj
    $Date: 2022年6月14日
    $Revision: 1.0
    $Purpose:
-->
<bm:model xmlns:bm="http://www.leaf-framework.org/schema/bm" needAccessControl="false">
    <bm:operations>
        <bm:operation name="query">
            <bm:query-sql><![CDATA[
        SELECT count(1) wfl_count
  FROM con_monthly_statement t
 where t.monthly_date = ${@date}
 and t.status_name ='APPROVED'
    		]]></bm:query-sql>
        </bm:operation>
        <bm:operation name="update">
            <bm:update-sql><![CDATA[
                 begin
					con_monthly_statement_pkg.reset_monthly_statement(p_user_id =>${/session/@user_id},
                                                                     p_date    =>${@date});
            	end;
                ]]></bm:update-sql>
        </bm:operation>
    </bm:operations>
    <bm:fields>
        <bm:field name="wfl_count"></bm:field>
    </bm:fields>

</bm:model>