This commit is contained in:
dheepa
2021-08-09 11:14:23 +00:00
parent a0d3257be0
commit f3cf5e1d2d
89 changed files with 4769 additions and 1508 deletions

View File

@@ -163,7 +163,7 @@ from staging2.BUDNI_DBP_Drawbar_Perf_Block where trx_record = 1;
select syspk into __test_instance_id from transactional.test_instance where file_syspk =__file_syspk;
select tractor_model into __model from transactional.test_instance where file_syspk =__file_syspk;
select tractor_make into __make from transactional.test_instance where file_syspk =__file_syspk;
select syspk from transactional.test_master into __test_master_id where test_type ='BUDNI';
select syspk from transactional.test_master into __test_master_id where test_type ='Budni';
select syspk into __test_instance_tractor_id from transactional.test_instance_tractor_info where file_syspk =__file_syspk;
@@ -195,6 +195,28 @@ tractor_model =__model,
tractor_make=__make
where file_syspk=__file_syspk;
update transactional.test_instance
set test_type = a.test_type,
test_name= a.test_name
from fw_core.test_file_sheet_format_master a
where transactional.test_instance.file_sheet_mnemonic = a.file_sheet_mnemonic
and transactional.test_instance.file_syspk=__file_syspk;
update transactional.test_instance
set test_file_name =(select a.file_name from staging1.staging_generic_table a where file_syspk = __file_syspk limit 1)
where file_syspk = __file_syspk;
update transactional.test_instance b
set date_of_test = (select a.date_of_test from transactional.test_instance a where a.date_Of_test is not null and a.file_syspk = __file_syspk and a.file_mnemonic = 'BUDNI' and file_sheet_mnemonic='BUDNI_PTO')::date
where
b.date_Of_test is null
and b.file_syspk = __file_syspk
and b.file_mnemonic = 'BUDNI';
perform fw_core.fn_insert_db_error ( __client_id, __function_id, 1001, 'Compegence', __file_syspk ,__file_mnemonic,__file_sheet_mnemonic ,null,'trx', 'fn_BUDNI_DBP_TRX', err_state, err_msg, err_detail, err_hint, err_context,'success');
end