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



    select dp_location,dp_phone from mps_depart where dp_isdepart = 1 and dp_id = @param1


end