/*立项单和暂估单添加立项类型、暂估类型字段*/
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_ER_COSTESTIMATEBILL' AND KSQL_COL_NAME ='FDETAILTYPE') 
 ALTER TABLE T_ER_COSTESTIMATEBILL ADD (FDETAILTYPE VARCHAR(50) DEFAULT 'biztype_applybill' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_ER_APPLYPROJECTBILL' AND KSQL_COL_NAME ='FDETAILTYPE') 
 ALTER TABLE T_ER_APPLYPROJECTBILL ADD (FDETAILTYPE VARCHAR(50) DEFAULT 'biztype_applybill' NOT NULL );