diff --git a/laws-modules/src/main/java/com/jero/modules/activiti/process/standardinterpret/entity/ProcessStandardInterpretClause.java b/laws-modules/src/main/java/com/jero/modules/activiti/process/standardinterpret/entity/ProcessStandardInterpretClause.java index b48a6c88..38f14f31 100644 --- a/laws-modules/src/main/java/com/jero/modules/activiti/process/standardinterpret/entity/ProcessStandardInterpretClause.java +++ b/laws-modules/src/main/java/com/jero/modules/activiti/process/standardinterpret/entity/ProcessStandardInterpretClause.java @@ -41,6 +41,10 @@ public class ProcessStandardInterpretClause extends BaseEntity { @TableField(exist = false) @Excel(name = "条款内容", width = 15) private String itemContent; + /**译文*/ + @ApiModelProperty(value = "译文") + @TableField(exist = false) + private String translation; /**各涉及部门解读人*/ @ApiModelProperty(value = "各涉及部门解读人") @Excel(name = "各涉及部门解读人", width = 18, dictTable = "sys_user", dicCode = "id", dicText = "CONCAT(realname, '(', username, ')')") diff --git a/laws-modules/src/main/java/com/jero/modules/activiti/process/standardinterpret/entity/ProcessStandardInterpretClauseSublist.java b/laws-modules/src/main/java/com/jero/modules/activiti/process/standardinterpret/entity/ProcessStandardInterpretClauseSublist.java index 362cae0c..9d2bdd8f 100644 --- a/laws-modules/src/main/java/com/jero/modules/activiti/process/standardinterpret/entity/ProcessStandardInterpretClauseSublist.java +++ b/laws-modules/src/main/java/com/jero/modules/activiti/process/standardinterpret/entity/ProcessStandardInterpretClauseSublist.java @@ -51,6 +51,7 @@ public class ProcessStandardInterpretClauseSublist extends BaseEntity { /**译文*/ @ApiModelProperty(value = "译文") @Excel(name = "译文", width = 15) + @TableField(exist = false) private String translation; /**是否与上一版相同(字典:1:是,0:否)*/ @ApiModelProperty(value = "是否与上一版相同(字典:1:是,0:否)") diff --git a/laws-modules/src/main/java/com/jero/modules/activiti/process/standardinterpret/mapper/xml/ProcessStandardInterpretClauseMapper.xml b/laws-modules/src/main/java/com/jero/modules/activiti/process/standardinterpret/mapper/xml/ProcessStandardInterpretClauseMapper.xml index e6b738a4..13ec8624 100644 --- a/laws-modules/src/main/java/com/jero/modules/activiti/process/standardinterpret/mapper/xml/ProcessStandardInterpretClauseMapper.xml +++ b/laws-modules/src/main/java/com/jero/modules/activiti/process/standardinterpret/mapper/xml/ProcessStandardInterpretClauseMapper.xml @@ -8,6 +8,7 @@ IF(lds.id is not null, lds.standard_number, lds2.item_num) itemNum, IF(lds.id is not null, lds.standard_name, lds2.item_title) itemTitle, IF(lds.id is not null, null, lds2.item_content) itemContent, + lds2.translation, standard_interpret_id, psic.clause_id, interpret_person_ids, diff --git a/laws-modules/src/main/java/com/jero/modules/activiti/process/standardinterpret/mapper/xml/ProcessStandardInterpretClauseSublistMapper.xml b/laws-modules/src/main/java/com/jero/modules/activiti/process/standardinterpret/mapper/xml/ProcessStandardInterpretClauseSublistMapper.xml index 794ccd2f..a7bf7e86 100644 --- a/laws-modules/src/main/java/com/jero/modules/activiti/process/standardinterpret/mapper/xml/ProcessStandardInterpretClauseSublistMapper.xml +++ b/laws-modules/src/main/java/com/jero/modules/activiti/process/standardinterpret/mapper/xml/ProcessStandardInterpretClauseSublistMapper.xml @@ -9,7 +9,7 @@ standard_interpret_clause_id, clause_id, interpret_person_id, - `translation`, + psic2.translation, is_same_as_prev_version, change_description, regulatory_notes, @@ -50,6 +50,7 @@ IF(lds.id is not null, lds.standard_number, lds2.item_num) itemNum, IF(lds.id is not null, lds.standard_name, lds2.item_title) itemTitle, IF(lds.id is not null, null, lds2.item_content) itemContent, + lds2.translation, standard_interpret_id from process_standard_interpret_clause psic left join laws_domestic_standard lds on psic.clause_id = lds.id and lds.del_flag = 0 diff --git a/laws-modules/src/main/java/com/jero/modules/activiti/process/standardinterpret/service/impl/StandardInterpretFlowServiceImpl.java b/laws-modules/src/main/java/com/jero/modules/activiti/process/standardinterpret/service/impl/StandardInterpretFlowServiceImpl.java index 0c7e6a39..927bd3f1 100644 --- a/laws-modules/src/main/java/com/jero/modules/activiti/process/standardinterpret/service/impl/StandardInterpretFlowServiceImpl.java +++ b/laws-modules/src/main/java/com/jero/modules/activiti/process/standardinterpret/service/impl/StandardInterpretFlowServiceImpl.java @@ -268,6 +268,7 @@ public class StandardInterpretFlowServiceImpl implements StandardInterpretFlowSe lawsDocumentSplit.setItemNum(null); lawsDocumentSplit.setItemTitle(null); lawsDocumentSplit.setItemContent(null); + lawsDocumentSplit.setTranslation(null); LawsDomesticStandard lawsDomesticStandard = lawsDomesticStandardService.getById(standardInterpretClauseSublist.getClauseId()); if (!Objects.isNull(lawsDomesticStandard)){ @@ -479,8 +480,6 @@ public class StandardInterpretFlowServiceImpl implements StandardInterpretFlowSe // 合并 first.setInterpretPersonId(mergeString(first.getInterpretPersonId(), standardInterpretClauseSublist.getInterpretPersonId())); - first.setTranslation(mergeString(first.getTranslation(), - standardInterpretClauseSublist.getTranslation())); first.setIsSameAsPrevVersion(mergeString(first.getIsSameAsPrevVersion(), standardInterpretClauseSublist.getIsSameAsPrevVersion())); first.setChangeDescription(mergeString(first.getChangeDescription(), @@ -809,6 +808,10 @@ public class StandardInterpretFlowServiceImpl implements StandardInterpretFlowSe .map(SarFileSplitItemsValEO::getItemContent) .collect(Collectors.joining("\n\r")); processStandardInterpretClause.setItemContent(itemContents); + String translation = sarFileSplitItemsValEOS.stream() + .map(SarFileSplitItemsValEO::getTranslation) + .collect(Collectors.joining("\n\r")); + processStandardInterpretClause.setTranslation(translation); } } @@ -949,6 +952,10 @@ public class StandardInterpretFlowServiceImpl implements StandardInterpretFlowSe .map(SarFileSplitItemsValEO::getItemContent) .collect(Collectors.joining("\n\r")); processStandardInterpretClauseSublist.setItemContent(itemContents); + String translation = sarFileSplitItemsValEOS.stream() + .map(SarFileSplitItemsValEO::getTranslation) + .collect(Collectors.joining("\n\r")); + processStandardInterpretClauseSublist.setTranslation(translation); } } }else { @@ -977,6 +984,10 @@ public class StandardInterpretFlowServiceImpl implements StandardInterpretFlowSe .map(SarFileSplitItemsValEO::getItemContent) .collect(Collectors.joining("\n\r")); processStandardInterpretClause.setItemContent(itemContents); + String translation = sarFileSplitItemsValEOS.stream() + .map(SarFileSplitItemsValEO::getTranslation) + .collect(Collectors.joining("\n\r")); + processStandardInterpretClause.setTranslation(translation); } } @@ -1318,6 +1329,7 @@ public class StandardInterpretFlowServiceImpl implements StandardInterpretFlowSe data.setClauseId(lawsDocumentSplits.getId()); data.setItemTitle(lawsDocumentSplits.getItemTitle()); data.setItemContent(lawsDocumentSplits.getItemContent()); + data.setTranslation(lawsDocumentSplits.getTranslation()); } } diff --git a/laws-modules/src/main/java/com/jero/modules/laws/documenttool/mapper/xml/DocumentSplitMapper.xml b/laws-modules/src/main/java/com/jero/modules/laws/documenttool/mapper/xml/DocumentSplitMapper.xml index cd0ec966..eaaa47d2 100644 --- a/laws-modules/src/main/java/com/jero/modules/laws/documenttool/mapper/xml/DocumentSplitMapper.xml +++ b/laws-modules/src/main/java/com/jero/modules/laws/documenttool/mapper/xml/DocumentSplitMapper.xml @@ -4,7 +4,7 @@ insert into SAR_FILE_SPLIT_ITEMS_VAL - (id, type, item_id, valid_flag, creation_user, creation_time, modify_time, modify_user, display_seq, img_name, item_content, index_item) + (id, type, item_id, valid_flag, creation_user, creation_time, modify_time, modify_user, display_seq, img_name, item_content, translation, index_item) values ( #{item.id, jdbcType=VARCHAR}, #{item.type, jdbcType=VARCHAR}, @@ -14,6 +14,7 @@ #{item.modifyUser, jdbcType=VARCHAR}, #{item.displaySeq, jdbcType=INTEGER}, #{item.imgName, jdbcType=INTEGER}, #{item.itemContent, jdbcType=CLOB}, + #{item.translation, jdbcType=CLOB}, #{item.indexItem, jdbcType=INTEGER}) diff --git a/laws-modules/src/main/java/com/jero/modules/laws/documenttool/service/impl/DocumentSplitServiceImpl.java b/laws-modules/src/main/java/com/jero/modules/laws/documenttool/service/impl/DocumentSplitServiceImpl.java index 5def0e0e..10f5cade 100644 --- a/laws-modules/src/main/java/com/jero/modules/laws/documenttool/service/impl/DocumentSplitServiceImpl.java +++ b/laws-modules/src/main/java/com/jero/modules/laws/documenttool/service/impl/DocumentSplitServiceImpl.java @@ -511,6 +511,7 @@ public class DocumentSplitServiceImpl implements IDocumentSplitService { List valList = JSON.parseArray(JSON.toJSONString(parameter.get("itemValEOList")), SarFileSplitItemsValEO.class); parameter.remove("itemValEOList"); parameter.putIfAbsent(ITEM_CONTENT, ""); + parameter.putIfAbsent(TRANSLATION, ""); // 条文解读 List articlesList = JSON.parseArray(JSON.toJSONString(parameter.get(INTERPRETATION_ARTICLES_LIST)), SarFileSplitItemsValEO.class); parameter.remove(INTERPRETATION_ARTICLES_LIST); @@ -520,6 +521,10 @@ public class DocumentSplitServiceImpl implements IDocumentSplitService { if (ITEM_CONTENT.equals(k)){ v = itemContentJoin(valList, (String) parameter.get(ID)); } + // 条文内容拼接 + if (TRANSLATION.equals(k)){ + v = translationJoin(valList, (String) parameter.get(ID)); + } // 条文解读 if (INTERPRETATION_ARTICLES.equals(k)){ v = articlesJoin(articlesList, (String) parameter.get(ID)); @@ -587,6 +592,42 @@ public class DocumentSplitServiceImpl implements IDocumentSplitService { return valContent.toString(); } + private String translationJoin(List valList, String itemId) { + StringBuilder valContent = new StringBuilder(); + if (!Objects.isNull(valList) && !valList.isEmpty()){ + int index = 0; + LoginUser sysUser = (LoginUser) SecurityUtils.getSubject().getPrincipal(); + for (SarFileSplitItemsValEO sarFileSplitItemsValEO : valList) { + String translation = sarFileSplitItemsValEO.getTranslation(); + // 条文内容拼接 + if (DocumentSplitCommon.TEXT.equals(sarFileSplitItemsValEO.getType())) { + if (StringUtils.isNotBlank(translation)){ + sarFileSplitItemsValEO.setTranslation(translation + .replace("<", "<").replace(">", ">")); + } + valContent.append("

").append(translation).append("

"); + } else if (DocumentSplitCommon.IMG.equals(sarFileSplitItemsValEO.getType())) { + valContent.append(""); + } else if (DocumentSplitCommon.TABLE.equals(sarFileSplitItemsValEO.getType())) { + valContent.append(translation); + } + + // 条目信息 + index += 1; + sarFileSplitItemsValEO.setId(UUIDUtils.randomUUID20()); + sarFileSplitItemsValEO.setItemId(itemId); + sarFileSplitItemsValEO.setDisplaySeq(index); + sarFileSplitItemsValEO.setValidFlag(0); + sarFileSplitItemsValEO.setCreationTime(new Date()); + sarFileSplitItemsValEO.setModifyTime(new Date()); + sarFileSplitItemsValEO.setCreationUser(sysUser.getId()); + sarFileSplitItemsValEO.setModifyUser(sysUser.getId()); + } + } + return valContent.toString(); + } + private String itemContentJoin(List valList, String itemId) { StringBuilder valContent = new StringBuilder(); if (!Objects.isNull(valList) && !valList.isEmpty()){ diff --git a/laws-modules/src/main/java/com/jero/modules/split/service/impl/FileSplitItemsEOServiceImpl.java b/laws-modules/src/main/java/com/jero/modules/split/service/impl/FileSplitItemsEOServiceImpl.java index 8ef94218..d974d31c 100644 --- a/laws-modules/src/main/java/com/jero/modules/split/service/impl/FileSplitItemsEOServiceImpl.java +++ b/laws-modules/src/main/java/com/jero/modules/split/service/impl/FileSplitItemsEOServiceImpl.java @@ -1445,6 +1445,9 @@ public class FileSplitItemsEOServiceImpl extends ServiceImpl addItemValList = new ArrayList<>(); if (addItemsEOList != null && !addItemsEOList.isEmpty()) { Map oldItems = addItemsEOList.get(addItemsEOList.size()-1); @@ -1456,7 +1459,6 @@ public class FileSplitItemsEOServiceImpl extends ServiceImpl) oldItems.get("itemValEOList"); String itemContent = oldItems.get("item_content").toString() + importDto.get("item_content").toString(); oldItems.put("item_content", itemContent); - String[] valArr = importDto.get("item_content").toString().split("\n"); if (valArr != null && valArr.length > 0) { for (int i=0;i nowfilelist = FileUnZip.readFileByFilename(filepath, valArr[i]); if (nowfilelist != null && !nowfilelist.isEmpty()) { @@ -1508,6 +1517,20 @@ public class FileSplitItemsEOServiceImpl extends ServiceImpl translationfilelist = FileUnZip.readFileByFilename(filepath, translationArr[i]); + if (CollectionUtil.isNotEmpty(translationfilelist)) { + String urlTranslation = translationfilelist.get(0).getPath(); + MultipartFile multipartFileTranslation = createMfileByPath(urlTranslation); + String uploadTranslation = ObsBootUtil.upload(multipartFileTranslation, "temp"); + OSSFile ossFileTranslation = new OSSFile(); + ossFileTranslation.setId(String.valueOf(SnowflakeUtils.snowflake())); + ossFileTranslation.setFileName(multipartFileTranslation.getName()); + ossFileTranslation.setUrl(uploadTranslation); + ossFileService.save(ossFileTranslation); + valEO.setTranslation(splitUrl+uploadTranslation.replace("temp\\", "")); + } + } } catch (Exception e) { e.printStackTrace(); } @@ -1516,6 +1539,9 @@ public class FileSplitItemsEOServiceImpl extends ServiceImpl 0) { for (int i = 0; i < valArr.length; i++) { SarFileSplitItemsValEO valEO = new SarFileSplitItemsValEO(); @@ -1536,6 +1561,13 @@ public class FileSplitItemsEOServiceImpl extends ServiceImpl nowfilelist = FileUnZip.readFileByFilename(filepath, valArr[i]); if (nowfilelist != null && !nowfilelist.isEmpty()) { @@ -1575,6 +1607,20 @@ public class FileSplitItemsEOServiceImpl extends ServiceImpl translationfilelist = FileUnZip.readFileByFilename(filepath, translationArr[i]); + if (CollectionUtil.isNotEmpty(translationfilelist)) { + String urlTranslation = translationfilelist.get(0).getPath(); + MultipartFile multipartFileTranslation = createMfileByPath(urlTranslation); + String uploadTranslation = ObsBootUtil.upload(multipartFileTranslation, "temp"); + OSSFile ossFileTranslation = new OSSFile(); + ossFileTranslation.setId(String.valueOf(SnowflakeUtils.snowflake())); + ossFileTranslation.setFileName(multipartFileTranslation.getName()); + ossFileTranslation.setUrl(uploadTranslation); + ossFileService.save(ossFileTranslation); + valEO.setTranslation(splitUrl+uploadTranslation.replace("temp\\", "")); + } + } } catch (Exception e) { e.printStackTrace(); } @@ -1582,6 +1628,9 @@ public class FileSplitItemsEOServiceImpl extends ServiceImpl 0) { for (int i = 0; i < valArr.length; i++) { SarFileSplitItemsValEO valEO = new SarFileSplitItemsValEO(); @@ -1605,6 +1653,13 @@ public class FileSplitItemsEOServiceImpl extends ServiceImpl nowfilelist = FileUnZip.readFileByFilename(filepath, valArr[i]); if (nowfilelist != null && !nowfilelist.isEmpty()) { @@ -1638,6 +1693,20 @@ public class FileSplitItemsEOServiceImpl extends ServiceImpl translationfilelist = FileUnZip.readFileByFilename(filepath, translationArr[i]); + if (CollectionUtil.isNotEmpty(translationfilelist)) { + String urlTranslation = translationfilelist.get(0).getPath(); + MultipartFile multipartFileTranslation = createMfileByPath(urlTranslation); + String uploadTranslation = ObsBootUtil.upload(multipartFileTranslation, "temp"); + OSSFile ossFileTranslation = new OSSFile(); + ossFileTranslation.setId(String.valueOf(SnowflakeUtils.snowflake())); + ossFileTranslation.setFileName(multipartFileTranslation.getName()); + ossFileTranslation.setUrl(uploadTranslation); + ossFileService.save(ossFileTranslation); + valEO.setTranslation(splitUrl+uploadTranslation.replace("temp\\", "")); + } + } } catch (Exception e) { e.printStackTrace(); } @@ -1645,6 +1714,9 @@ public class FileSplitItemsEOServiceImpl extends ServiceImpl getValList = (List) sarFileSplitItemsEO.get("itemValEOList"); String itemConditions = ""; + String itemConditionsTranslation = ""; int ind = 1; if (getValList != null && !getValList.isEmpty()) { for (SarFileSplitItemsValEO valEO : getValList) { + String type = valEO.getType(); + String itemContent = valEO.getItemContent(); + String translation = valEO.getTranslation(); // 当前段内容 String valContent = ""; - if ("TEXT".equals(valEO.getType())) { - valContent += "

" + valEO.getItemContent() + "

"; - } else if ("IMG".equals(valEO.getType())) { - valContent += ""; -// valContent += valEO.getItemContent(); - } else if ("TABLE".equals(valEO.getType())) { - valContent += valEO.getItemContent(); + String valContentTranslation = ""; + if ("TEXT".equals(type)) { + valContent += "

" + itemContent + "

"; + if (StringUtils.isNotBlank(translation)){ + valContentTranslation += "

" + translation + "

"; + } + } else if ("IMG".equals(type)) { + valContent += ""; + if (StringUtils.isNotBlank(translation)){ + valContentTranslation += ""; + } + } else if ("TABLE".equals(type)) { + valContent += itemContent; + if (StringUtils.isNotBlank(translation)){ + valContentTranslation += translation; + } } itemConditions += valContent; + itemConditionsTranslation += valContentTranslation; // val表信息 valEO.setId(UUIDUtils.randomUUID20()); // valEO.setItemId(itemsId); @@ -3023,6 +3109,7 @@ public class FileSplitItemsEOServiceImpl extends ServiceImpl allImgList, String fileNowPath) { for(FileSplitValImgExportDto imgExportDto : allImgList){ - String oldPath = "temp\\" + imgExportDto.getImgPath(); - String newPath = fileNowPath + File.separator + "附件" + File.separator + imgExportDto.getImgName(); -// if (MinioUtil.doesObjectExist(oldPath)){ - try (InputStream in = ObsBootUtil.getOssFile(oldPath);) { - File file = new File(fileNowPath + File.separator + "附件"); - if (!file.exists()){ - file.mkdir(); - } - copyFile1(in, newPath); + String imgName = imgExportDto.getImgName(); + String fileName = imgExportDto.getImgPath(); + String oldPath = getPath(fileName); + String newPath = fileNowPath + File.separator + "附件" + File.separator + imgName; + try (InputStream in = ObsBootUtil.getOssFile(oldPath)) { + File file = new File(fileNowPath + File.separator + "附件"); + if (!file.exists()){ + file.mkdir(); + } + copyFile1(in, newPath); + } catch (IOException e) { + log.error(e.getMessage(), e); + } + String fileNameTranslation = imgExportDto.getImgPathTranslation(); + if (StringUtils.isNotBlank(fileNameTranslation)){ + String imgNameTranslation = imgName.substring(0,imgName.indexOf("."))+"translation.png"; + String oldPathTranslation = getPath(fileNameTranslation); + String newPathTranslation = fileNowPath + File.separator + "附件" + File.separator + imgNameTranslation; + try (InputStream in = ObsBootUtil.getOssFile(oldPathTranslation)) { + copyFile1(in, newPathTranslation); } catch (IOException e) { - e.printStackTrace(); log.error(e.getMessage(), e); } -// } + } } + } + private String getPath(String fileName){ + if (!fileName.contains("temp")){ + fileName = "temp\\" + fileName; + } + return fileName.replace("\\\\", "\\"); } @Override @@ -4182,12 +4289,15 @@ public class FileSplitItemsEOServiceImpl extends ServiceImpl ossFileList = ossFileService.getFileInfosByConnectId(connectId); List fileNameList = new ArrayList<>(); if (ossFileList != null && !ossFileList.isEmpty()) { @@ -4212,15 +4322,16 @@ public class FileSplitItemsEOServiceImpl extends ServiceImpl -1) { @@ -4228,7 +4339,7 @@ public class FileSplitItemsEOServiceImpl extends ServiceImpl -1) { + content = content.substring(0,content.lastIndexOf("\n")); + } + } + + if("TABLE".equals(fileSplitValExportDto.getValType())){ + /* 连接跳转*/ + content = fileSplitValExportDto.getValContent()+"translation"; + CreationHelper createHelper = workbook.getCreationHelper(); + Hyperlink hyperlink1 = createHelper.createHyperlink(HyperlinkType.DOCUMENT); + String tableName = "#\'"+ content + "\'!A1"; + hyperlink1.setAddress(tableName); + cell2.setHyperlink(hyperlink1);// 链接 + row1.getCell(cellNum).setCellStyle(cellStyleLink); + } else if ("IMG".equals(fileSplitValExportDto.getValType())) { + /* 连接跳转*/ + content = fileSplitValExportDto.getValContent(); + content = content.substring(0,content.indexOf("."))+"translation.png"; + CreationHelper createHelper = workbook.getCreationHelper(); // Hyperlink hyperlink1 = createHelper.createHyperlink(HyperlinkType.FILE); String imgName = content; // hyperlink1.setAddress("附件\\" + imgName); @@ -4249,7 +4394,8 @@ public class FileSplitItemsEOServiceImpl extends ServiceImpl startRow) { for(int cellNum = 0; cellNum < fieldList.size(); cellNum++) { - if (!"item_content".equals(fieldList.get(cellNum))) { + String s = fieldList.get(cellNum); + if (!"item_content".equals(s) && !"translation".equals(s)) { sheetItems.addMergedRegion(new CellRangeAddress(startRow, allRow, cellNum, cellNum)); } } @@ -4333,6 +4480,8 @@ public class FileSplitItemsEOServiceImpl extends ServiceImpl") < 0) { if (tableHtml.indexOf("") < 0) { tableHtml = tableHtml.replaceFirst("",""); @@ -4345,6 +4494,18 @@ public class FileSplitItemsEOServiceImpl extends ServiceImpl]*?>|<[\\s]*?\\/[\\s]*?br[\\s]*?>", cnt); workbook = ConvertHtml2Excel.table2Excel(tableHtml,workbook,tableName); + + if (StringUtils.isNotEmpty(tableHtmlTranslation) && tableHtmlTranslation.indexOf("") < 0) { + if (tableHtmlTranslation.indexOf("") < 0) { + tableHtmlTranslation = tableHtmlTranslation.replaceFirst("",""); + tableHtmlTranslation = tableHtmlTranslation.replaceFirst("",""); + } else { + tableHtmlTranslation = tableHtmlTranslation.replaceFirst("",""); + tableHtmlTranslation = tableHtmlTranslation.replaceFirst("",""); + } + } + tableHtmlTranslation = tableHtmlTranslation.replaceAll("<[\\s]*?br[^>]*?>|<[\\s]*?\\/[\\s]*?br[\\s]*?>", cnt); + workbook = ConvertHtml2Excel.table2Excel(tableHtmlTranslation,workbook,tableName+"translation"); // for (int r=0;r colTableList = rowtableList.get(r); // HSSFRow tRow = sheetTable.createRow(colTableList.get(0).getRowNum()-1);