/** 私有化部署的影像系统通知失败时记录单据id **/
 EXEC P_ALTERPK 'PK_T_ER_INVOICE_NOTIFY_ERROR', 'T_ER_INVOICE_NOTIFY_ERROR', 'FID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_ER_NOTIFYBILLID') CREATE INDEX IDX_ER_NOTIFYBILLID ON T_ER_INVOICE_NOTIFY_ERROR ( FBILLID );