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

@@ -69,15 +69,15 @@ file_mnemonic,
file_sheet_mnemonic,
make,model,
Test_Request_no,
date '1899-12-30' + sample_receipt_date::int * interval '1' day as Sample_Receipt_Date,
sample_receipt_date::Date,
Test_report_No,
Generation,
Customer_Name,
Test_Engineer,
date '1899-12-30' + Test_Report_Date::int * interval '1' day as Test_Report_Date,
Test_Report_Date::Date,
No_of_Sample,
date '1899-12-30' + Test_Start_Date::int * interval '1' day as Test_Start_Date,
date '1899-12-30' + Test_End_Date::int * interval '1' day as Test_End_Date,
Test_Start_Date::Date,
Test_End_Date::Date,
Tractor_Sr_No,
Test_Standard_Refer,
Test_Location,
@@ -177,6 +177,20 @@ where b.file_syspk =a.file_syspk)
and a.file_syspk =__file_syspk;
update transactional.test_instance_tractor_info a
set
wheel_drive_type = b.Drive,
tractor_platform = b.Platform,
tractor_engine_hp= b.Tractor_power_hp::numeric,
generation= b.generation,
tractor_sr_no= b.tractor_sr_no
from staging2.IHTSLL_SLL_H1_block b
where b.trx_record=1
and a.file_sheet_mnemonic ='IHTSLL_SLL'
and a.file_syspk =__file_syspk;
/*block */
insert into transactional.test_instance_weight_reaction
@@ -371,6 +385,20 @@ 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_IHTSLL_SLL_TRX', err_state, err_msg, err_detail, err_hint, err_context,'success');
end