1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768 |
- CREATE OR REPLACE PROCEDURE shanglifeecif.insuranceclaimthread_main()
- IS
- BEGIN
- insert into shanglifeecif.insuranceclaimthread (
- icthreadid ,
- crno ,
-
- policyno ,
-
-
-
-
- cnno ,
- losstime ,
-
- rpname ,
-
-
- lpscutid,
- lpname ,
- cndate ,
- lossdescribe ,
- crdate ,
- cndescribe ,
- claimstatus ,
- csdate ,
- relationship ,
- ccno ,
- ccstatus ,
-
- productid ,
- productname,
- ccamt ,
-
- claimcasestatus ,
- accidenttype,
- created_by ,
- created_time
-
-
- ) select
- row_number()over(),
- trim(rgtno) as rgtno,
- trim(contno) as contno,
- trim(rptno) as rptno,
- trim(riskdate) as riskdate,
- trim(rptorname) as rptorname,
- trim(INSUREDNO) as INSUREDNO,
- trim(INSUREDNAME) as INSUREDNAME,
- trim(rptdate) as rptdate,
- trim(lloccurreason) as lloccurreason,
- trim(rgtdate) as rgtdate,
- trim(accidentdetail) as accidentdetail,
- trim(llclaimstate) as llclaimstate,
- trim(auditdate) as auditdate,
- trim(relation) as relation,
- trim(clmno) as clmno,
- trim(llgettype) as llgettype,
- trim(riskcode) as riskcode,
- trim(riskname) as riskname,
- realpay,
- trim(llclaimstate) as llclaimstate,
- trim(accidenttype) as accidenttype,
- 'admin',
- sysdate()
- from shanghailifeecif.INSURANCE_CLAIM where contno is not null
- END;
|