/** 立项单立项明细和暂估单暂估明细添加字段 **/
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_ER_APPLYPROJECTSHARED' AND KSQL_COL_NAME ='FENTRYCOSTCENTERID') 
 ALTER TABLE T_ER_APPLYPROJECTSHARED ADD (FENTRYCOSTCENTERID BIGINT DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_ER_APPLYPROJECTSHARED' AND KSQL_COL_NAME ='FENTRYWLTYPE') 
 ALTER TABLE T_ER_APPLYPROJECTSHARED ADD (FENTRYWLTYPE VARCHAR(50) DEFAULT ' ' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_ER_APPLYPROJECTSHARED' AND KSQL_COL_NAME ='FENTRYWLUNIT') 
 ALTER TABLE T_ER_APPLYPROJECTSHARED ADD (FENTRYWLUNIT BIGINT DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_ER_APPLYPROJECTSHARED' AND KSQL_COL_NAME ='FENTRYPRODUCTTYPE') 
 ALTER TABLE T_ER_APPLYPROJECTSHARED ADD (FENTRYPRODUCTTYPE BIGINT DEFAULT 0 NOT NULL );
 
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_ER_COSTESTIMATESHARED' AND KSQL_COL_NAME ='FENTRYCOSTCENTERID') 
 ALTER TABLE T_ER_COSTESTIMATESHARED ADD (FENTRYCOSTCENTERID BIGINT DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_ER_COSTESTIMATESHARED' AND KSQL_COL_NAME ='FENTRYWLTYPE') 
 ALTER TABLE T_ER_COSTESTIMATESHARED ADD (FENTRYWLTYPE VARCHAR(50) DEFAULT ' ' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_ER_COSTESTIMATESHARED' AND KSQL_COL_NAME ='FENTRYWLUNIT') 
 ALTER TABLE T_ER_COSTESTIMATESHARED ADD (FENTRYWLUNIT BIGINT DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_ER_COSTESTIMATESHARED' AND KSQL_COL_NAME ='FENTRYPRODUCTTYPE') 
 ALTER TABLE T_ER_COSTESTIMATESHARED ADD (FENTRYPRODUCTTYPE BIGINT DEFAULT 0 NOT NULL );
