IF EXISTS (SELECT 1 FROM sys.objects WHERE object_id = OBJECT_ID('[dbo].[userfunc_464_lxpdemo2]') AND type = 'P')
DROP PROCEDURE [dbo].[userfunc_464_lxpdemo2]
GO
CREATE PROCEDURE userfunc_464_lxpdemo2(@cmpid int,   @branchid int,  @userdpid int,  @useruid int,   @userotid int,  @usersecurity int,@aaa1 int,@aaa2 int)
as

begin
  select * from mps_compuser where cu_id=@aaa1 
end