You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
weaver-hrm-organization/docs/sqlupgrade/SQLServer/sql202308090103.sql

56 lines
4.0 KiB
MySQL

2 years ago
delete from HtmlLabelIndex where id = 544635 and ( indexdesc is null or indexdesc = '' )
GO
insert into HtmlLabelIndex(id,indexdesc) select top 1 544635,'<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Զ<EFBFBD><EFBFBD><EFBFBD>' from HtmlLabelIndex where not exists (select id from HtmlLabelIndex where id = 544635 and ( indexdesc is not null and indexdesc <> '' ))
GO
delete from HtmlLabelInfo where indexid = 544635 and languageid=7 and ( labelname is null or labelname = '' )
GO
insert into HtmlLabelInfo(indexid,labelname,languageid) select * from (select top 1 544635 as indexid ,'<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Զ<EFBFBD><EFBFBD><EFBFBD>' as content,7 as languageid from HtmlLabelInfo) t where not exists (select indexid,languageid from HtmlLabelInfo where indexid = 544635 and languageid=7 and ( labelname is not null and labelname <> '' ))
GO
delete from HtmlLabelInfo where indexid = 544635 and languageid=8 and ( labelname is null or labelname = '' or labelname like '%[߹-<2D><>]%' )
GO
insert into HtmlLabelInfo(indexid,labelname,languageid) select * from (select top 1 544635 as indexid ,'Quick Search Customization' as content,8 as languageid from HtmlLabelInfo) t where not exists (select indexid,languageid from HtmlLabelInfo where indexid = 544635 and languageid=8 and ( labelname is not null and labelname <> '' and labelname not like '%[߹-<2D><>]%' ))
GO
delete from HtmlLabelInfo where indexid = 544635 and languageid=9 and ( labelname is null or labelname = '' )
GO
insert into HtmlLabelInfo(indexid,labelname,languageid) select * from (select top 1 544635 as indexid ,'<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Զ<EFBFBD><EFBFBD>x' as content,9 as languageid from HtmlLabelInfo) t where not exists (select indexid,languageid from HtmlLabelInfo where indexid = 544635 and languageid=9 and ( labelname is not null and labelname <> '' ))
GO
delete from HtmlLabelIndex where id = 544634 and ( indexdesc is null or indexdesc = '' )
GO
insert into HtmlLabelIndex(id,indexdesc) select top 1 544634,'<EFBFBD><EFBFBD>֯<EFBFBD><EFBFBD><EFBFBD>ٵ<EFBFBD><EFBFBD><EFBFBD>' from HtmlLabelIndex where not exists (select id from HtmlLabelIndex where id = 544634 and ( indexdesc is not null and indexdesc <> '' ))
GO
delete from HtmlLabelInfo where indexid = 544634 and languageid=7 and ( labelname is null or labelname = '' )
GO
insert into HtmlLabelInfo(indexid,labelname,languageid) select * from (select top 1 544634 as indexid ,'<EFBFBD><EFBFBD>֯<EFBFBD><EFBFBD><EFBFBD>ٵ<EFBFBD><EFBFBD><EFBFBD>' as content,7 as languageid from HtmlLabelInfo) t where not exists (select indexid,languageid from HtmlLabelInfo where indexid = 544634 and languageid=7 and ( labelname is not null and labelname <> '' ))
GO
delete from HtmlLabelInfo where indexid = 544634 and languageid=8 and ( labelname is null or labelname = '' or labelname like '%[߹-<2D><>]%' )
GO
insert into HtmlLabelInfo(indexid,labelname,languageid) select * from (select top 1 544634 as indexid ,'Quick Organizational Adjustment' as content,8 as languageid from HtmlLabelInfo) t where not exists (select indexid,languageid from HtmlLabelInfo where indexid = 544634 and languageid=8 and ( labelname is not null and labelname <> '' and labelname not like '%[߹-<2D><>]%' ))
GO
delete from HtmlLabelInfo where indexid = 544634 and languageid=9 and ( labelname is null or labelname = '' )
GO
insert into HtmlLabelInfo(indexid,labelname,languageid) select * from (select top 1 544634 as indexid ,'<EFBFBD>M<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>{<7B><>' as content,9 as languageid from HtmlLabelInfo) t where not exists (select indexid,languageid from HtmlLabelInfo where indexid = 544634 and languageid=9 and ( labelname is not null and labelname <> '' ))
GO
Delete from LeftMenuInfo where id=100188
GO
Delete from LeftMenuConfig where infoid=100188
GO
EXECUTE LMConfig_U_ByInfoInsert 2,100147,5
GO
EXECUTE LMInfo_Insert 100188,544634,'','',2,100147,5,2
GO
update LeftMenuInfo set mobxrouteurl = '',iconClassName = '',fullrouteurl='/spa/orgChart/index.html#/dragtree' where id = 100188
GO
Delete from LeftMenuInfo where id=100189
GO
Delete from LeftMenuConfig where infoid=100189
GO
EXECUTE LMConfig_U_ByInfoInsert 2,100167,2
GO
EXECUTE LMInfo_Insert 100189,544635,'','',2,100167,2,2
GO
update LeftMenuInfo set mobxrouteurl = '',iconClassName = '',fullrouteurl='/spa/organization/static/index.html#/main/organization/quickSearch' where id = 100189
GO