--退补料原因
 IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_IM_MDC_MFTOMREQENTRY' AND KSQL_COL_NAME ='FBACKFEEDREASON') 
ALTER TABLE T_IM_MDC_MFTOMREQENTRY ADD (FBACKFEEDREASON BIGINT DEFAULT 0 NOT NULL );

--退补料单号
 IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_IM_MDC_MFTOMREQENTRY' AND KSQL_COL_NAME ='FTARGETID') 
ALTER TABLE T_IM_MDC_MFTOMREQENTRY ADD (FTARGETID BIGINT DEFAULT 0 NOT NULL );

 IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_IM_MDC_MFTOMREQENTRY' AND KSQL_COL_NAME ='FTARGETNO') 
ALTER TABLE T_IM_MDC_MFTOMREQENTRY ADD (FTARGETNO NVARCHAR(50) DEFAULT ' ' NOT NULL );

