20 lines
2.2 KiB
MySQL
20 lines
2.2 KiB
MySQL
|
|
delete from HtmlLabelIndex where id = 547984 and ( indexdesc is null or indexdesc = '' )
|
|||
|
|
GO
|
|||
|
|
insert into HtmlLabelIndex(id,indexdesc) select top 1 547984,'<EFBFBD>մ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ƣ<EFBFBD>0<EFBFBD><EFBFBD><EFBFBD><EFBFBD>ֻ<EFBFBD>ܲ鿴һ<EFBFBD>ι<EFBFBD><EFBFBD>ʵ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ú<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>й<EFBFBD><EFBFBD>ʵ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѷ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʵ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ч' from HtmlLabelIndex where not exists (select id from HtmlLabelIndex where id = 547984 and ( indexdesc is not null and indexdesc <> '' ))
|
|||
|
|
GO
|
|||
|
|
delete from HtmlLabelInfo where indexid = 547984 and languageid=7 and ( labelname is null or labelname = '' )
|
|||
|
|
GO
|
|||
|
|
insert into HtmlLabelInfo(indexid,labelname,languageid) select * from (select top 1 547984 as indexid ,'<EFBFBD>մ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ƣ<EFBFBD>0<EFBFBD><EFBFBD><EFBFBD><EFBFBD>ֻ<EFBFBD>ܲ鿴һ<EFBFBD>ι<EFBFBD><EFBFBD>ʵ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ú<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>й<EFBFBD><EFBFBD>ʵ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѷ<EFBFBD><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 = 547984 and languageid=7 and ( labelname is not null and labelname <> '' ))
|
|||
|
|
GO
|
|||
|
|
delete from HtmlLabelInfo where indexid = 547984 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 547984 as indexid ,'Empty means no control, 0 means only one view of the payroll! After Settings, all payslips (contain paid payslips) become effective immediately' as content,8 as languageid from HtmlLabelInfo) t where not exists (select indexid,languageid from HtmlLabelInfo where indexid = 547984 and languageid=8 and ( labelname is not null and labelname <> '' and labelname not like '%[߹-<2D><>]%' ))
|
|||
|
|
GO
|
|||
|
|
delete from HtmlLabelInfo where indexid = 547984 and languageid=9 and ( labelname is null or labelname = '' )
|
|||
|
|
GO
|
|||
|
|
insert into HtmlLabelInfo(indexid,labelname,languageid) select * from (select top 1 547984 as indexid ,'<EFBFBD>մ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ƣ<EFBFBD>0<EFBFBD><EFBFBD><EFBFBD><EFBFBD>ֻ<EFBFBD>ܲ鿴һ<EFBFBD>ι<EFBFBD><EFBFBD>Y<EFBFBD>Σ<EFBFBD><EFBFBD>O<EFBFBD>ú<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>й<EFBFBD><EFBFBD>Y<EFBFBD>Σ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ѱl<EFBFBD><EFBFBD><EFBFBD>Y<EFBFBD>Σ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ч' as content,9 as languageid from HtmlLabelInfo) t where not exists (select indexid,languageid from HtmlLabelInfo where indexid = 547984 and languageid=9 and ( labelname is not null and labelname <> '' ))
|
|||
|
|
GO
|
|||
|
|
delete from HtmlModuleLabel where indexId = 547984 and moduleCode = 'COMMON' and type = 'label'
|
|||
|
|
GO
|
|||
|
|
insert into HtmlModuleLabel(type,moduleCode,indexId) values ('label','COMMON',547984)
|
|||
|
|
GO
|