if exists(select * from sysobjects where name='p_rz_yh' and xtype='p')
  drop procedure p_rz_yh
go
create procedure p_rz_yh
(					
  @psorgcode varchar(10),
  @psbillno varchar(20),
  @psparams varchar(200),
  @psmsg varchar(2000) out
)
as 
begin
  update t_ask_head set rzdate=convert(varchar(10),getdate(),21),
                        rztime=convert(varchar(8),getdate(),108),
                        state='0' 
                  
   where billno=@psbillno

  set @psmsg=''
  return(1)
end	
go