delete from HtmlLabelIndex where id = 540871 and ( indexdesc is null or indexdesc = '' ) 
;
insert into HtmlLabelIndex(id,indexdesc) select  540871,'档案管理' from HtmlLabelIndex where not exists (select id from HtmlLabelIndex where id = 540871 and ( indexdesc is not null and indexdesc <> '' ))  limit 1 
;
delete from HtmlLabelInfo where indexid = 540871 and languageid=7 and ( labelname is null or labelname = ''    ) 
;
insert into HtmlLabelInfo(indexid,labelname,languageid) select * from (select  540871 as indexid ,'档案管理' as content,7  as languageid from HtmlLabelInfo) t where not exists (select indexid,languageid from HtmlLabelInfo where indexid = 540871 and languageid=7 and ( labelname is not null and labelname <> ''   ))  limit 1 
;
delete from HtmlLabelInfo where indexid = 540871 and languageid=8 and ( labelname is null or labelname = ''   or length(labelname)!=char_length(labelname)  ) 
;
insert into HtmlLabelInfo(indexid,labelname,languageid) select * from (select  540871 as indexid ,'file management' as content,8  as languageid from HtmlLabelInfo) t where not exists (select indexid,languageid from HtmlLabelInfo where indexid = 540871 and languageid=8 and ( labelname is not null and labelname <> ''   and length(labelname)=char_length(labelname)  ))  limit 1 
;
delete from HtmlLabelInfo where indexid = 540871 and languageid=9 and ( labelname is null or labelname = ''    ) 
;
insert into HtmlLabelInfo(indexid,labelname,languageid) select * from (select  540871 as indexid ,'檔案管理' as content,9  as languageid from HtmlLabelInfo) t where not exists (select indexid,languageid from HtmlLabelInfo where indexid = 540871 and languageid=9 and ( labelname is not null and labelname <> ''   ))  limit 1 
;


delete from HtmlLabelIndex where id = 540869 and ( indexdesc is null or indexdesc = '' ) 
;
insert into HtmlLabelIndex(id,indexdesc) select  540869,'字段管理' from HtmlLabelIndex where not exists (select id from HtmlLabelIndex where id = 540869 and ( indexdesc is not null and indexdesc <> '' ))  limit 1 
;
delete from HtmlLabelInfo where indexid = 540869 and languageid=7 and ( labelname is null or labelname = ''    ) 
;
insert into HtmlLabelInfo(indexid,labelname,languageid) select * from (select  540869 as indexid ,'字段管理' as content,7  as languageid from HtmlLabelInfo) t where not exists (select indexid,languageid from HtmlLabelInfo where indexid = 540869 and languageid=7 and ( labelname is not null and labelname <> ''   ))  limit 1 
;
delete from HtmlLabelInfo where indexid = 540869 and languageid=8 and ( labelname is null or labelname = ''   or length(labelname)!=char_length(labelname)  ) 
;
insert into HtmlLabelInfo(indexid,labelname,languageid) select * from (select  540869 as indexid ,'Field management' as content,8  as languageid from HtmlLabelInfo) t where not exists (select indexid,languageid from HtmlLabelInfo where indexid = 540869 and languageid=8 and ( labelname is not null and labelname <> ''   and length(labelname)=char_length(labelname)  ))  limit 1 
;
delete from HtmlLabelInfo where indexid = 540869 and languageid=9 and ( labelname is null or labelname = ''    ) 
;
insert into HtmlLabelInfo(indexid,labelname,languageid) select * from (select  540869 as indexid ,'字段管理' as content,9  as languageid from HtmlLabelInfo) t where not exists (select indexid,languageid from HtmlLabelInfo where indexid = 540869 and languageid=9 and ( labelname is not null and labelname <> ''   ))  limit 1 
;