delete from HtmlLabelIndex where id = 544789 and ( indexdesc is null or indexdesc = '' ) 
GO
insert into HtmlLabelIndex(id,indexdesc) select  top 1  544789,'企通学配置自定义' from HtmlLabelIndex where not exists (select id from HtmlLabelIndex where id = 544789 and ( indexdesc is not null and indexdesc <> '' ))  
GO
delete from HtmlLabelInfo where indexid = 544789 and languageid=7 and ( labelname is null or labelname = ''    ) 
GO
insert into HtmlLabelInfo(indexid,labelname,languageid) select * from (select  top 1  544789 as indexid ,'企通学配置自定义' as content,7  as languageid from HtmlLabelInfo) t where not exists (select indexid,languageid from HtmlLabelInfo where indexid = 544789 and languageid=7 and ( labelname is not null and labelname <> ''   ))  
GO
delete from HtmlLabelInfo where indexid = 544789 and languageid=8 and ( labelname is null or labelname = ''   or labelname like '%[吖-座]%'  ) 
GO
insert into HtmlLabelInfo(indexid,labelname,languageid) select * from (select  top 1  544789 as indexid ,'Enterprise Communication Configuration Customization' as content,8  as languageid from HtmlLabelInfo) t where not exists (select indexid,languageid from HtmlLabelInfo where indexid = 544789 and languageid=8 and ( labelname is not null and labelname <> ''   and labelname not like '%[吖-座]%'  ))  
GO
delete from HtmlLabelInfo where indexid = 544789 and languageid=9 and ( labelname is null or labelname = ''    ) 
GO
insert into HtmlLabelInfo(indexid,labelname,languageid) select * from (select  top 1  544789 as indexid ,'企通學配置自定義' as content,9  as languageid from HtmlLabelInfo) t where not exists (select indexid,languageid from HtmlLabelInfo where indexid = 544789 and languageid=9 and ( labelname is not null and labelname <> ''   ))  
GO
delete from HtmlModuleLabel where indexId = 544789 and moduleCode = 'HRM' and type = 'label' 
GO
insert into HtmlModuleLabel(type,moduleCode,indexId) values ('label','HRM',544789) 
GO

Delete from LeftMenuInfo where id=100190
GO
Delete from LeftMenuConfig where infoid=100190
GO
EXECUTE LMConfig_U_ByInfoInsert 2,100167,3
GO
EXECUTE LMInfo_Insert 100190,544789,'','',2,100167,3,2
GO
update LeftMenuInfo set mobxrouteurl = '',iconClassName = '',fullrouteurl='/spa/organization/static/index.html#/main/organization/qtxConfig' where id = 100190
GO

CREATE TABLE [JCL_ORG_QTXCONFIG] (
  [ID] int  IDENTITY(1,1) NOT NULL,
  [APP_SECRET] varchar(255) COLLATE Chinese_PRC_CI_AS  NULL,
  [URL] varchar(255) COLLATE Chinese_PRC_CI_AS  NULL,
  [PC_ADDRESS] varchar(255) COLLATE Chinese_PRC_CI_AS  NULL,
  [MOBILE_ADDRESS] varchar(255) COLLATE Chinese_PRC_CI_AS  NULL,
  [SECOND_URL] varchar(255) COLLATE Chinese_PRC_CI_AS  NULL,
  [CREATOR] int  NULL,
  [CREATEDATE] varchar(255) COLLATE Chinese_PRC_CI_AS  NULL,
)
GO