<?xml version="1.0" encoding="UTF-8"?> <bm:model xmlns:bm="http://www.leaf-framework.org/schema/bm"> <bm:fields> <bm:field name="code_value" displayWidth="200" forDisplay="true" forQuery="true" prompt="代码"/> <bm:field name="code_value_name" displayWidth="300" forDisplay="true" forQuery="true" prompt="值"/> </bm:fields> <bm:operations> <bm:operation name="query"> <bm:query-sql><![CDATA[ SELECT * FROM (SELECT sv.code_value, sv.code_value_name FROM sys_code_values_v sv WHERE sv.code = 'DEDUCT_BANK' and sv.code_value_enabled_flag = 'Y' union all select 'N' code_calue,'无' code_calue_name from dual )#WHERE_CLAUSE# ]]></bm:query-sql> </bm:operation> </bm:operations> <bm:query-fields> <bm:query-field field="code_value_name" queryOperator="like"/> <bm:query-field field="code_value" queryOperator="like"/> </bm:query-fields> </bm:model>