Commit 352f26b6 authored by 38823's avatar 38823

保证金台账增加 设备名称字段SQL修改

parent 5873daeb
...@@ -90,10 +90,10 @@ ...@@ -90,10 +90,10 @@
<bm:field name="receipt_type_des" expression="(select v.code_value_name from sys_code_values_v v where v.code=&apos;RECEIPT_TYPE&apos; and v.code_value=t1.receipt_type)"/> <bm:field name="receipt_type_des" expression="(select v.code_value_name from sys_code_values_v v where v.code=&apos;RECEIPT_TYPE&apos; and v.code_value=t1.receipt_type)"/>
<bm:field name="ref_contract_id"/> <bm:field name="ref_contract_id"/>
<bm:field name="contract_number" expression="(select cc.contract_number from con_contract cc where cc.contract_id = t1.ref_contract_id)"/> <bm:field name="contract_number" expression="(select cc.contract_number from con_contract cc where cc.contract_id = t1.ref_contract_id)"/>
<bm:field name="full_name" expression="(decode(select cc.division from con_contract cc where cc.contract_id=t1.ref_contract_id), <bm:field name="full_name" expression="decode((select cc.division from con_contract cc where cc.contract_id=t1.ref_contract_id),
'70',(select ccli.type_name from con_contract_lease_item ccli where ccli.contract_id=t1.ref_contract_id and rownum=1), '70',(select ccli.type_name from con_contract_lease_item ccli where ccli.contract_id=t1.ref_contract_id and rownum=1),
'92',(select ccli.type_name from con_contract_lease_item ccli where ccli.contract_id=t1.ref_contract_id and rownum=1), '92',(select ccli.type_name from con_contract_lease_item ccli where ccli.contract_id=t1.ref_contract_id and rownum=1),
(select ccli.full_name from con_contract_lease_item ccli where ccli.contract_id=t1.ref_contract_id and rownum=1) )"/> (select ccli.full_name from con_contract_lease_item ccli where ccli.contract_id=t1.ref_contract_id and rownum=1))"/>
<bm:field name="collection_classes"/> <bm:field name="collection_classes"/>
<bm:field name="collection_classes_desc" expression="(select v.code_value_name from sys_code_values_v v where v.code = 'DS_COLLECTION_CLASSES' and v.code_value =t1.collection_classes)" forInsert="false" forUpdate="false"/> <bm:field name="collection_classes_desc" expression="(select v.code_value_name from sys_code_values_v v where v.code = 'DS_COLLECTION_CLASSES' and v.code_value =t1.collection_classes)" forInsert="false" forUpdate="false"/>
<bm:field name="confirmed_flag_desc" expression="(select v.code_value_name from sys_code_values_v v where v.code = 'CONFIRMED_FLAG' and v.code_value =t1.confirmed_flag)" forInsert="false" forUpdate="false"/> <bm:field name="confirmed_flag_desc" expression="(select v.code_value_name from sys_code_values_v v where v.code = 'CONFIRMED_FLAG' and v.code_value =t1.confirmed_flag)" forInsert="false" forUpdate="false"/>
......
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