sys_notice_count.lwm 542 Bytes
Newer Older
Spencer Chang's avatar
Spencer Chang committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
<?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 count(1) as list_count
				  from sys_notice_msg_v t1
				 where t1.enabled_flag='Y'
				   and (t1.notice_user_id = ${/session/@user_id}
				   	   or
				   	   t1.notice_user_id is null)
				   and t1.status='OPEN'
				   and t1.notice_type='NOTICE'
    		]]></bm:query-sql>
        </bm:operation>
    </bm:operations>
</bm:model>