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

@@ -188,7 +188,12 @@ file_mnemonic,
file_sheet_mnemonic,
tractor_make,
tractor_model,
tractor_platform
tractor_platform,
wheel_drive_type,
tractor_engine_hp,
generation,
domestic_export ,
tractor_sr_no
)
select
client_id,
@@ -197,7 +202,12 @@ file_syspk,
file_mnemonic,
file_sheet_mnemonic,
make,model,
platform
platform,
drive,
tractor_power_hp::numeric,
generation,
domestic_export ,
tractor_sr_no
from staging2.IHTBT50_BT50_h1_block where trx_record =1;
update transactional.test_instance_tractor_info
@@ -247,7 +257,7 @@ column6::numeric,
column7::numeric,
column8::numeric,
column9,
column10
column11
from staging2.IHTBT50_BT50_test_res_1_block where trx_record =1;
insert into transactional.iht_brake_perf_test_results
@@ -284,7 +294,7 @@ column6::numeric,
column7::numeric,
column8::numeric,
column9,
column10
column11
from staging2.IHTBT50_BT50_test_res_2_block where trx_record =1;
insert into transactional.iht_brake_perf_test_results
@@ -321,7 +331,7 @@ column6::numeric,
column7::numeric,
column8::numeric,
column9,
column10
column11
from staging2.IHTBT50_BT50_test_res_3_block where trx_record =1;
insert into transactional.iht_brake_perf_test_results
@@ -358,7 +368,7 @@ column6::numeric,
column7::numeric,
column8::numeric,
column9,
column10
column11
from staging2.IHTBT50_BT50_test_res_4_block where trx_record =1;
insert into transactional.iht_brake_perf_test_condition
@@ -451,6 +461,19 @@ tractor_model =__model,
tractor_make=__make
where 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
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;
perform fw_core.fn_insert_db_error ( __client_id, __function_id, 1001, 'Compegence', __file_syspk ,__file_mnemonic,__file_sheet_mnemonic ,null,'trx', 'fn_IHTBT50_BT50_TRX', err_state, err_msg, err_detail, err_hint, err_context,'success');
end