/* 97 */str3="insert into t_ar_total(archiveId,tableId,archiveTypeId,archiveTypeCode,qzh,qzmc,ys,mj,kfkz,tableName,yearCode,bgqx,tm,zrz,dh,archiveTypeName,rowContext,archiveType) select id,"+str2+","+archivaTypeId+",'"+code+"',fonds_code,fondsName,ys,mj,kfqk,'"+str1+"',year_code,bgqx,tm,zrz,dh,'"+name+"',concat_ws('|',"+columns+") ,'"+type+"' from "+str1+" where is_delete='0' and status='80'";
/* 113 */str3="insert into t_ar_total(archiveId,tableId,archiveTypeId,archiveTypeCode,qzh,qzmc,ys,mj,kfkz,tableName,yearCode,bgqx,tm,zrz,dh,archiveTypeName,rowContext,archiveType) select id,"+str2+","+archivaTypeId+",'"+code+"',fonds_code,fondsName,ys,mj,kfqk,'"+str1+"',year_code,bgqx,tm,zrz,dh,'"+name+"',"+newColumns+",'"+type+"' from "+str1+" where is_delete='0' and status='80'";
/* 119 */str3="insert into t_ar_total(archiveId,tableId,archiveTypeId,archiveTypeCode,qzh,qzmc,ys,mj,kfkz,tableName,yearCode,bgqx,tm,zrz,dh,archiveTypeName,rowContext,archiveType) select id,"+str2+","+archivaTypeId+",'"+code+"',fonds_code,fondsName,ys,mj,kfqk,'"+str1+"',year_code,bgqx,tm,zrz,dh,'"+name+"',concat_ws('|',fonds_code,fondsName,year_code,bgqx,tm,zrz,dh) ,'"+type+"' from "+str1+" where is_delete='0' and status='80'";
/* 123 */str3="insert into t_ar_total(archiveId,tableId,archiveTypeId,archiveTypeCode,qzh,qzmc,ys,mj,kfkz,tableName,yearCode,bgqx,tm,zrz,dh,archiveTypeName,rowContext,archiveType) select id,"+str2+","+archivaTypeId+",'"+code+"',fonds_code,fondsName,ys,mj,kfqk,'"+str1+"',year_code,bgqx,tm,zrz,dh,'"+name+"',COALESCE(fonds_code,'')||'|'||COALESCE(fondsName,'')||'|'||COALESCE(year_code,'')||'|'||COALESCE(bgqx,'')||'|'||COALESCE(tm,'')||'|'||COALESCE(zrz,'')||'|'||COALESCE(dh,'') ,'"+type+"' from "+str1+" where is_delete='0' and status='80'";
/* 153 */sql="insert into t_ar_total(archiveId,tableId,archiveTypeId,archiveTypeCode,qzh,qzmc,ys,mj,kfkz,tableName,yearCode,bgqx,tm,zrz,rq,dh,archiveTypeName,dzqw,rowContext,archiveType) select id,"+tableId+","+archivaTypeId+",'"+code+"',fonds_code,fondsName,ys,mj,kfqk,'"+tableName+"',year_code,bgqx,tm,zrz,wjrq,dh,'"+name+"',dqzws,concat_ws('|',"+columns+"),'"+type+"' from "+tableName+" where is_delete='0' and status='80'";
/* 169 */sql="insert into t_ar_total(archiveId,tableId,archiveTypeId,archiveTypeCode,qzh,qzmc,ys,mj,kfkz,tableName,yearCode,bgqx,tm,zrz,rq,dh,archiveTypeName,dzqw,rowContext,archiveType) select id,"+tableId+","+archivaTypeId+",'"+code+"',fonds_code,fondsName,ys,mj,kfqk,'"+tableName+"',year_code,bgqx,tm,zrz,wjrq,dh,'"+name+"',dqzws,"+newColumns+",'"+type+"' from "+tableName+" where is_delete='0' and status='80'";
/* 175 */sql="insert into t_ar_total(archiveId,tableId,archiveTypeId,archiveTypeCode,qzh,qzmc,ys,mj,kfkz,tableName,yearCode,bgqx,tm,zrz,rq,dh,archiveTypeName,dzqw,rowContext,archiveType) select id,"+tableId+","+archivaTypeId+",'"+code+"',fonds_code,fondsName,ys,mj,kfqk,'"+tableName+"',year_code,bgqx,tm,zrz,wjrq,dh,'"+name+"',dqzws,concat_ws('|',fonds_code,fondsName,year_code,bgqx,tm,zrz,wjrq,dh),'"+type+"' from "+tableName+" where is_delete='0' and status='80'";
/* 179 */sql="insert into t_ar_total(archiveId,tableId,archiveTypeId,archiveTypeCode,qzh,qzmc,ys,mj,kfkz,tableName,yearCode,bgqx,tm,zrz,rq,dh,archiveTypeName,dzqw,rowContext,archiveType) select id,"+tableId+","+archivaTypeId+",'"+code+"',fonds_code,fondsName,ys,mj,kfqk,'"+tableName+"',year_code,bgqx,tm,zrz,wjrq,dh,'"+name+"',dqzws,COALESCE(fonds_code,'')||'|'||COALESCE(fondsName,'')||'|'||COALESCE(year_code,'')||'|'||COALESCE(bgqx,'')||'|'||COALESCE(tm,'')||'|'||COALESCE(zrz,'')||'|'||COALESCE(wjrq,'')||'|'||COALESCE(dh,''),'"+type+"' from "+tableName+" where is_delete='0' and status='80'";
/* */}
/* */
/* */
/* */
/* */
/* */
/* 186 */System.out.println("-----------"+sql);
/* 187 */this.executeSqlService.insert(sql);
/* */}
/* */}
/* */}
/* */
/* */
/* */
/* */
/* */
/* */publicvoidupdateContextDataToTotal(){
/* 197 */Stringsql="select id,archiveId,archiveTypeCode,rowContext from t_ar_total where dzqw>0";
/* 261 */Stringupdatesql="update t_ar_total set fantiContext='"+allValueTraditional+"',pinyinContext='"+allValuePinyin+"',fileContext='"+ocrText+"' where id="+id;
str3="insert into t_ar_total(archiveId,tableId,archiveTypeId,archiveTypeCode,qzh,qzmc,ys,mj,kfkz,tableName,yearCode,bgqx,tm,zrz,dh,archiveTypeName,rowContext,archiveType) select id,"+str2+","+archivaTypeId+",'"+code+"',fonds_code,fondsName,ys,mj,kfqk,'"+str1+"',year_code,bgqx,tm,zrz,dh,'"+name+"',concat_ws('|',"+columns+") ,'"+type+"' from "+str1+" where is_delete='0' and status='80'";
str3="insert into t_ar_total(archiveId,tableId,archiveTypeId,archiveTypeCode,qzh,qzmc,ys,mj,kfkz,tableName,yearCode,bgqx,tm,zrz,dh,archiveTypeName,rowContext,archiveType) select id,"+str2+","+archivaTypeId+",'"+code+"',fonds_code,fondsName,ys,mj,kfqk,'"+str1+"',year_code,bgqx,tm,zrz,dh,'"+name+"',"+newColumns+",'"+type+"' from "+str1+" where is_delete='0' and status='80'";
str3="insert into t_ar_total(archiveId,tableId,archiveTypeId,archiveTypeCode,qzh,qzmc,ys,mj,kfkz,tableName,yearCode,bgqx,tm,zrz,dh,archiveTypeName,rowContext,archiveType) select id,"+str2+","+archivaTypeId+",'"+code+"',fonds_code,fondsName,ys,mj,kfqk,'"+str1+"',year_code,bgqx,tm,zrz,dh,'"+name+"',concat_ws('|',fonds_code,fondsName,year_code,bgqx,tm,zrz,dh) ,'"+type+"' from "+str1+" where is_delete='0' and status='80'";
str3="insert into t_ar_total(archiveId,tableId,archiveTypeId,archiveTypeCode,qzh,qzmc,ys,mj,kfkz,tableName,yearCode,bgqx,tm,zrz,dh,archiveTypeName,rowContext,archiveType) select id,"+str2+","+archivaTypeId+",'"+code+"',fonds_code,fondsName,ys,mj,kfqk,'"+str1+"',year_code,bgqx,tm,zrz,dh,'"+name+"',COALESCE(fonds_code,'')||'|'||COALESCE(fondsName,'')||'|'||COALESCE(year_code,'')||'|'||COALESCE(bgqx,'')||'|'||COALESCE(tm,'')||'|'||COALESCE(zrz,'')||'|'||COALESCE(dh,'') ,'"+type+"' from "+str1+" where is_delete='0' and status='80'";
sql="insert into t_ar_total(archiveId,tableId,archiveTypeId,archiveTypeCode,qzh,qzmc,ys,mj,kfkz,tableName,yearCode,bgqx,tm,zrz,rq,dh,archiveTypeName,dzqw,rowContext,archiveType) select id,"+tableId+","+archivaTypeId+",'"+code+"',fonds_code,fondsName,ys,mj,kfqk,'"+tableName+"',year_code,bgqx,tm,zrz,wjrq,dh,'"+name+"',dqzws,concat_ws('|',"+columns+"),'"+type+"' from "+tableName+" where is_delete='0' and status='80'";
sql="insert into t_ar_total(archiveId,tableId,archiveTypeId,archiveTypeCode,qzh,qzmc,ys,mj,kfkz,tableName,yearCode,bgqx,tm,zrz,rq,dh,archiveTypeName,dzqw,rowContext,archiveType) select id,"+tableId+","+archivaTypeId+",'"+code+"',fonds_code,fondsName,ys,mj,kfqk,'"+tableName+"',year_code,bgqx,tm,zrz,wjrq,dh,'"+name+"',dqzws,"+newColumns+",'"+type+"' from "+tableName+" where is_delete='0' and status='80'";
sql="insert into t_ar_total(archiveId,tableId,archiveTypeId,archiveTypeCode,qzh,qzmc,ys,mj,kfkz,tableName,yearCode,bgqx,tm,zrz,rq,dh,archiveTypeName,dzqw,rowContext,archiveType) select id,"+tableId+","+archivaTypeId+",'"+code+"',fonds_code,fondsName,ys,mj,kfqk,'"+tableName+"',year_code,bgqx,tm,zrz,wjrq,dh,'"+name+"',dqzws,concat_ws('|',fonds_code,fondsName,year_code,bgqx,tm,zrz,wjrq,dh),'"+type+"' from "+tableName+" where is_delete='0' and status='80'";
sql="insert into t_ar_total(archiveId,tableId,archiveTypeId,archiveTypeCode,qzh,qzmc,ys,mj,kfkz,tableName,yearCode,bgqx,tm,zrz,rq,dh,archiveTypeName,dzqw,rowContext,archiveType) select id,"+tableId+","+archivaTypeId+",'"+code+"',fonds_code,fondsName,ys,mj,kfqk,'"+tableName+"',year_code,bgqx,tm,zrz,wjrq,dh,'"+name+"',dqzws,COALESCE(fonds_code,'')||'|'||COALESCE(fondsName,'')||'|'||COALESCE(year_code,'')||'|'||COALESCE(bgqx,'')||'|'||COALESCE(tm,'')||'|'||COALESCE(zrz,'')||'|'||COALESCE(wjrq,'')||'|'||COALESCE(dh,''),'"+type+"' from "+tableName+" where is_delete='0' and status='80'";
}
System.out.println("-----------"+sql);
this.executeSqlService.insert(sql);
}
}
}
publicvoidupdateContextDataToTotal(){
Stringsql="select id,archiveId,archiveTypeCode,rowContext from t_ar_total where dzqw>0";
Stringupdatesql="update t_ar_total set fantiContext='"+allValueTraditional+"',pinyinContext='"+allValuePinyin+"',fileContext='"+ocrText+"' where id="+id;