IF EXISTS (SELECT 1 FROM sys.objects WHERE object_id = OBJECT_ID('[dbo].[mps_update_weixin_subapp]') AND type = 'P')
DROP PROCEDURE [dbo].[mps_update_weixin_subapp]
GO
-- =============================================
-- Author:<Author,,Name>
-- Create date: <Create Date,,>
-- Description:<Description,,>
-- =============================================
CREATE procedure [dbo].[mps_update_weixin_subapp]
@mn_id int,
@mn_title varchar(200),
@mn_icon varchar(100),
@mn_link varchar(500),
@mn_order int
AS
BEGIN
-- SET NOCOUNT ON added to prevent extra result sets from
-- interfering with SELECT statements.
SET NOCOUNT ON;
update mps_menu set 
mn_title = case when @mn_title='_none_' then mn_title else @mn_title end,
mn_icon = case when @mn_icon='_none_' then mn_icon else @mn_icon end,
mn_link = case when @mn_link='_none_' then mn_link else @mn_link end,
mn_order = case when @mn_order=-999999999 then mn_order else @mn_order end
where mn_id=@mn_id
END