IF EXISTS (SELECT 1 FROM sys.objects WHERE object_id = OBJECT_ID('[dbo].[mps_newweixincount]') AND type = 'P')
DROP PROCEDURE [dbo].[mps_newweixincount]
GO
CREATE procedure [dbo].[mps_newweixincount]
@cmpid int ,@wx_type varchar(50),@wx_title varchar(50)
AS
BEGIN

SET NOCOUNT ON;
insert into [ebs_kernel].[dbo].[pub_weixin](wx_cmpid,wx_title,wx_type) values(@cmpid,@wx_title,@wx_type);
select wx_id,wx_title from [ebs_kernel].[dbo].[pub_weixin] where wx_id=@@IDENTITY;
END