IF EXISTS (SELECT 1 FROM sys.objects WHERE object_id = OBJECT_ID('[dbo].[order_110_dolinkdata_1600]') AND type = 'P')
DROP PROCEDURE [dbo].[order_110_dolinkdata_1600]
GO
create procedure order_110_dolinkdata_1600(
@cmpid int ,
@useruid int ,
@bizid int ,
@ordbcid int,
@ordid bigint,
@jbid bigint,
@ftype varchar(10),
@fbizid int,
@fordid bigint,
@ford2tag int ,
@ford2id bigint,
@rtype varchar(10),
@rbizid int,
@rordid bigint,
@rord2tag int ,
@rord2id bigint 
) 
as 
begin



update old set  old.ord_dpzt='待搬店'
from order_110 new ,order_188 old 
where  new.ord_id=@ordid 


--- 下面这段程序，是完成帐务处理------

--- 帐务处理完毕 ------

end