Commit 1a56ea05 authored by stone's avatar stone

【fix】文本打印条件厂商增加买断机

parent 19f7c7f3
......@@ -9,11 +9,14 @@
<bm:operations>
<bm:operation name="query">
<bm:query-sql><![CDATA[
select * from ( select h.bp_name, h.bp_id
from hls_bp_master h
where h.bp_category = 'VENDER'
and h.enabled_flag='Y')
SELECT *
FROM (SELECT h.bp_name, h.bp_id
FROM hls_bp_master h
WHERE h.bp_category = 'VENDER'
AND h.enabled_flag = 'Y'
UNION ALL
SELECT '买断机' bp_name, -100 bp_id
FROM dual)
#WHERE_CLAUSE#
]]></bm:query-sql>
</bm:operation>
......
......@@ -63,7 +63,7 @@
<bm:field name="finance_type"/>
<bm:field name="secondary_lease"/>
<bm:field name="vender_id"/>
<bm:field name="vender_id_n" expression="(select scv.bp_name from hls_bp_master scv where scv.enabled_flag=&apos;Y&apos; and scv.bp_id = t1.vender_id)" forInsert="false" forUpdate="false"/>
<bm:field name="vender_id_n" expression="(decode(vender_id,-100,'买断机',(select scv.bp_name from hls_bp_master scv where scv.enabled_flag=&apos;Y&apos; and scv.bp_id = t1.vender_id)))" forInsert="false" forUpdate="false"/>
<bm:field name="finance_type_n" expression="(select code_value_name from sys_code_values_v scv where scv.code=&apos;FINANCE_TYPE&apos; and scv.code_value = t1.finance_type)" forInsert="false" forUpdate="false"/>
</bm:fields>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment