86 lines
7.4 KiB
MySQL
86 lines
7.4 KiB
MySQL
|
|
delete from HtmlLabelIndex where id = 539971 and ( indexdesc is null or indexdesc = '' )
|
|||
|
|
GO
|
|||
|
|
insert into HtmlLabelIndex(id,indexdesc) select top 1 539971,'<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>' from HtmlLabelIndex where not exists (select id from HtmlLabelIndex where id = 539971 and ( indexdesc is not null and indexdesc <> '' ))
|
|||
|
|
GO
|
|||
|
|
delete from HtmlLabelInfo where indexid = 539971 and languageid=7 and ( labelname is null or labelname = '' )
|
|||
|
|
GO
|
|||
|
|
insert into HtmlLabelInfo(indexid,labelname,languageid) select * from (select top 1 539971 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 = 539971 and languageid=7 and ( labelname is not null and labelname <> '' ))
|
|||
|
|
GO
|
|||
|
|
delete from HtmlLabelInfo where indexid = 539971 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 539971 as indexid ,'Rule Settings' as content,8 as languageid from HtmlLabelInfo) t where not exists (select indexid,languageid from HtmlLabelInfo where indexid = 539971 and languageid=8 and ( labelname is not null and labelname <> '' and labelname not like '%[߹-<2D><>]%' ))
|
|||
|
|
GO
|
|||
|
|
delete from HtmlLabelInfo where indexid = 539971 and languageid=9 and ( labelname is null or labelname = '' )
|
|||
|
|
GO
|
|||
|
|
insert into HtmlLabelInfo(indexid,labelname,languageid) select * from (select top 1 539971 as indexid ,'Ҏ<EFBFBD>t<EFBFBD>O<EFBFBD><EFBFBD>' as content,9 as languageid from HtmlLabelInfo) t where not exists (select indexid,languageid from HtmlLabelInfo where indexid = 539971 and languageid=9 and ( labelname is not null and labelname <> '' ))
|
|||
|
|
GO
|
|||
|
|
delete from HtmlModuleLabel where indexId = 539971 and moduleCode = 'HRM' and type = 'label'
|
|||
|
|
GO
|
|||
|
|
insert into HtmlModuleLabel(type,moduleCode,indexId) values ('label','HRM',539971)
|
|||
|
|
GO
|
|||
|
|
|
|||
|
|
|
|||
|
|
delete from HtmlLabelIndex where id = 539970 and ( indexdesc is null or indexdesc = '' )
|
|||
|
|
GO
|
|||
|
|
insert into HtmlLabelIndex(id,indexdesc) select top 1 539970,'Ӧ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>' from HtmlLabelIndex where not exists (select id from HtmlLabelIndex where id = 539970 and ( indexdesc is not null and indexdesc <> '' ))
|
|||
|
|
GO
|
|||
|
|
delete from HtmlLabelInfo where indexid = 539970 and languageid=7 and ( labelname is null or labelname = '' )
|
|||
|
|
GO
|
|||
|
|
insert into HtmlLabelInfo(indexid,labelname,languageid) select * from (select top 1 539970 as indexid ,'Ӧ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>' as content,7 as languageid from HtmlLabelInfo) t where not exists (select indexid,languageid from HtmlLabelInfo where indexid = 539970 and languageid=7 and ( labelname is not null and labelname <> '' ))
|
|||
|
|
GO
|
|||
|
|
delete from HtmlLabelInfo where indexid = 539970 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 539970 as indexid ,'Apply Settings' as content,8 as languageid from HtmlLabelInfo) t where not exists (select indexid,languageid from HtmlLabelInfo where indexid = 539970 and languageid=8 and ( labelname is not null and labelname <> '' and labelname not like '%[߹-<2D><>]%' ))
|
|||
|
|
GO
|
|||
|
|
delete from HtmlLabelInfo where indexid = 539970 and languageid=9 and ( labelname is null or labelname = '' )
|
|||
|
|
GO
|
|||
|
|
insert into HtmlLabelInfo(indexid,labelname,languageid) select * from (select top 1 539970 as indexid ,'<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>O<EFBFBD><EFBFBD>' as content,9 as languageid from HtmlLabelInfo) t where not exists (select indexid,languageid from HtmlLabelInfo where indexid = 539970 and languageid=9 and ( labelname is not null and labelname <> '' ))
|
|||
|
|
GO
|
|||
|
|
delete from HtmlModuleLabel where indexId = 539970 and moduleCode = 'HRM' and type = 'label'
|
|||
|
|
GO
|
|||
|
|
insert into HtmlModuleLabel(type,moduleCode,indexId) values ('label','HRM',539970)
|
|||
|
|
GO
|
|||
|
|
|
|||
|
|
|
|||
|
|
delete from HtmlLabelIndex where id = 539968 and ( indexdesc is null or indexdesc = '' )
|
|||
|
|
GO
|
|||
|
|
insert into HtmlLabelIndex(id,indexdesc) select top 1 539968,'<EFBFBD><EFBFBD><EFBFBD><EFBFBD>' from HtmlLabelIndex where not exists (select id from HtmlLabelIndex where id = 539968 and ( indexdesc is not null and indexdesc <> '' ))
|
|||
|
|
GO
|
|||
|
|
delete from HtmlLabelInfo where indexid = 539968 and languageid=7 and ( labelname is null or labelname = '' )
|
|||
|
|
GO
|
|||
|
|
insert into HtmlLabelInfo(indexid,labelname,languageid) select * from (select top 1 539968 as indexid ,'<EFBFBD><EFBFBD><EFBFBD><EFBFBD>' as content,7 as languageid from HtmlLabelInfo) t where not exists (select indexid,languageid from HtmlLabelInfo where indexid = 539968 and languageid=7 and ( labelname is not null and labelname <> '' ))
|
|||
|
|
GO
|
|||
|
|
delete from HtmlLabelInfo where indexid = 539968 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 539968 as indexid ,'set up' as content,8 as languageid from HtmlLabelInfo) t where not exists (select indexid,languageid from HtmlLabelInfo where indexid = 539968 and languageid=8 and ( labelname is not null and labelname <> '' and labelname not like '%[߹-<2D><>]%' ))
|
|||
|
|
GO
|
|||
|
|
delete from HtmlLabelInfo where indexid = 539968 and languageid=9 and ( labelname is null or labelname = '' )
|
|||
|
|
GO
|
|||
|
|
insert into HtmlLabelInfo(indexid,labelname,languageid) select * from (select top 1 539968 as indexid ,'<EFBFBD>O<EFBFBD><EFBFBD>' as content,9 as languageid from HtmlLabelInfo) t where not exists (select indexid,languageid from HtmlLabelInfo where indexid = 539968 and languageid=9 and ( labelname is not null and labelname <> '' ))
|
|||
|
|
GO
|
|||
|
|
delete from HtmlModuleLabel where indexId = 539968 and moduleCode = 'HRM' and type = 'label'
|
|||
|
|
GO
|
|||
|
|
insert into HtmlModuleLabel(type,moduleCode,indexId) values ('label','HRM',539968)
|
|||
|
|
GO
|
|||
|
|
|
|||
|
|
|
|||
|
|
delete from HtmlLabelIndex where id = 539967 and ( indexdesc is null or indexdesc = '' )
|
|||
|
|
GO
|
|||
|
|
insert into HtmlLabelIndex(id,indexdesc) select top 1 539967,'ר<EFBFBD><EFBFBD>ӿ۳<EFBFBD>' from HtmlLabelIndex where not exists (select id from HtmlLabelIndex where id = 539967 and ( indexdesc is not null and indexdesc <> '' ))
|
|||
|
|
GO
|
|||
|
|
delete from HtmlLabelInfo where indexid = 539967 and languageid=7 and ( labelname is null or labelname = '' )
|
|||
|
|
GO
|
|||
|
|
insert into HtmlLabelInfo(indexid,labelname,languageid) select * from (select top 1 539967 as indexid ,'ר<EFBFBD><EFBFBD>ӿ۳<EFBFBD>' as content,7 as languageid from HtmlLabelInfo) t where not exists (select indexid,languageid from HtmlLabelInfo where indexid = 539967 and languageid=7 and ( labelname is not null and labelname <> '' ))
|
|||
|
|
GO
|
|||
|
|
delete from HtmlLabelInfo where indexid = 539967 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 539967 as indexid ,'Special additional deduction' as content,8 as languageid from HtmlLabelInfo) t where not exists (select indexid,languageid from HtmlLabelInfo where indexid = 539967 and languageid=8 and ( labelname is not null and labelname <> '' and labelname not like '%[߹-<2D><>]%' ))
|
|||
|
|
GO
|
|||
|
|
delete from HtmlLabelInfo where indexid = 539967 and languageid=9 and ( labelname is null or labelname = '' )
|
|||
|
|
GO
|
|||
|
|
insert into HtmlLabelInfo(indexid,labelname,languageid) select * from (select top 1 539967 as indexid ,'<EFBFBD><EFBFBD>헸<EFBFBD><EFBFBD>ӿ۳<EFBFBD>' as content,9 as languageid from HtmlLabelInfo) t where not exists (select indexid,languageid from HtmlLabelInfo where indexid = 539967 and languageid=9 and ( labelname is not null and labelname <> '' ))
|
|||
|
|
GO
|
|||
|
|
delete from HtmlModuleLabel where indexId = 539967 and moduleCode = 'HRM' and type = 'label'
|
|||
|
|
GO
|
|||
|
|
insert into HtmlModuleLabel(type,moduleCode,indexId) values ('label','HRM',539967)
|
|||
|
|
GO
|