String tableCode = table.getChildText("Code", A_NS);
String tableName = table.getChildText("Name", A_NS);
String tableDesc = table.getChildText("Comment",A_NS);
LOG.debug("解析表[{}]", tableCode);
TableInfo t = new TableInfo();
t.setCode(tableCode);
t.setName(tableName);
t.setDesc(tableDesc);
// 全部字段
Map<String, ColInfo> allColumns = parseColumns(table);
Map<String, ColInfo> headerColumns = Maps.newLinkedHashMap();
Map<String, ColInfo> footerColumns = Maps.newLinkedHashMap();
//调整pdf文件中字段的顺序
//通州版
// final String[] head = new String[]{"ID","ID_FK","UPLOAD_ORG_CODE","PERSON_ID","STATE"};
// final String[] foot = new String[]{"CREATETIME","LASTUPTIME","SEND_ORG_CODE","SEND_SYSTEM","SEND_TIME"};
//标准版
final String[] head = new String[]{"ID","UPLOAD_ORG_CODE","SEND_SYSTEM","PERSON_ID","STATE"};
final String[] foot = new String[]{"ID_FK","CREATETIME","LASTUPTIME","SEND_ORG_CODE","SEND_TIME"};
moveColumns(allColumns, headerColumns, head);
moveColumns(allColumns, footerColumns, foot);
t.setColumns(allColumns);
t.setHeaderColumns(headerColumns);
t.setFooterColumns(footerColumns);
return t;
}