weaver-hrm-salary/resource/sqlupgrade/ST/sql202407090101.sql

31 lines
1.9 KiB
MySQL
Raw Normal View History

2024-07-09 14:57:06 +08:00
delete from HtmlLabelIndex where id = 547804 and ( trim(indexdesc) is null ) ;
/
insert into HtmlLabelIndex(id,indexdesc) select 547804,'<EFBFBD><EFBFBD>ѡ<EFBFBD><EFBFBD><EFBFBD>ù<EFBFBD><EFBFBD><EFBFBD>ϵ' from HtmlLabelIndex where not exists (select id from HtmlLabelIndex where id = 547804 and ( trim(indexdesc) is not null )) and rownum = 1 ;
/
delete from HtmlLabelInfo where indexid = 547804 and languageid=7 and ( trim(labelname) is null ) ;
/
insert into HtmlLabelInfo(indexid,labelname,languageid) select * from (select 547804 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 = 547804 and languageid=7 and ( trim(labelname) is not null )) and rownum = 1 ;
/
delete from HtmlLabelInfo where indexid = 547804 and languageid=8 and ( trim(labelname) is null or length(labelname)!=lengthb(labelname) ) ;
/
insert into HtmlLabelInfo(indexid,labelname,languageid) select * from (select 547804 as indexid ,'Please select employment relationship' as content,8 as languageid from HtmlLabelInfo) t where not exists (select indexid,languageid from HtmlLabelInfo where indexid = 547804 and languageid=8 and ( trim(labelname) is not null and length(labelname)=lengthb(labelname) )) and rownum = 1 ;
/
delete from HtmlLabelInfo where indexid = 547804 and languageid=9 and ( trim(labelname) is null ) ;
/
insert into HtmlLabelInfo(indexid,labelname,languageid) select * from (select 547804 as indexid ,'Ո<EFBFBD>x<EFBFBD><EFBFBD><EFBFBD>ù<EFBFBD><EFBFBD>P<EFBFBD>S' as content,9 as languageid from HtmlLabelInfo) t where not exists (select indexid,languageid from HtmlLabelInfo where indexid = 547804 and languageid=9 and ( trim(labelname) is not null )) and rownum = 1 ;
/
delete from HtmlModuleLabel where indexId = 547804 and moduleCode = 'COMMON' and type = 'label' ;
/
insert into HtmlModuleLabel(type,moduleCode,indexId) values ('label','COMMON',547804) ;
/