 -- 完工入库增加 委托组织 结算组织
 IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_IM_MDC_PRBLENTRY_M' AND KSQL_COL_NAME ='FENTRUSTDEPTID') 
 ALTER TABLE T_IM_MDC_PRBLENTRY_M ADD (FENTRUSTDEPTID BIGINT DEFAULT 0 NOT NULL );
  IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_IM_MDC_PRBLENTRY_M' AND KSQL_COL_NAME ='FENTRYSETTLEORGID') 
 ALTER TABLE T_IM_MDC_PRBLENTRY_M ADD (FENTRYSETTLEORGID BIGINT DEFAULT 0 NOT NULL );
