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

@@ -72,15 +72,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,
to_date(Test_Start_Date,'DD-MM-YYYY'),
to_date(Test_End_Date, 'DD-MM-YYYY'),
Test_Start_Date::date,
Test_End_Date::date,
Tractor_Sr_No,
Test_Standard_Refer,
Test_Location,
@@ -180,6 +180,17 @@ 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
from staging2.IHTHLS_HLS_H1_block b
where b.trx_record=1
and a.file_sheet_mnemonic ='IHTHLS_HLS'
and a.file_syspk =__file_syspk;
/*block */
@@ -295,6 +306,18 @@ 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_IHTHLS_HLS_TRX', err_state, err_msg, err_detail, err_hint, err_context,'success');