if not exists (select name from syscolumns where name='statedate' and id=object_id('t_order_head'))
  alter table t_order_head add statedate varchar(10) null
go

if not exists (select name from syscolumns where name='statetime' and id=object_id('t_order_head'))
  alter table t_order_head add statetime varchar(10) null
go

