IF EXISTS (SELECT 1 FROM sys.objects WHERE object_id = OBJECT_ID('[dbo].[userfunc_752_get_bzjd]') AND type = 'P')
DROP PROCEDURE [dbo].[userfunc_752_get_bzjd]
GO
CREATE PROCEDURE userfunc_752_get_bzjd(@cmpid int,   @branchid int,  @userdpid int,  @useruid int,   @userotid int,  @usersecurity int,@ctgid int,@ctgid2 int,@objid bigint,@date varchar(10),@branch varchar(20))
as
begin



    set nocount on;
    select [累计权重] as bzjd from [DBTC].[datas].[dbo].[quanzhong]
    where [日期] = @date and [分公司] = @branch


end