fix: 主排查人分批下发导出BUG
This commit is contained in:
+10
-2
@@ -502,7 +502,11 @@ public class ProcessStandardComplianceCheckServiceImpl extends ServiceImpl<Proce
|
||||
ExportParams exportParams = new ExportParams();
|
||||
exportParams.setType(ExcelType.HSSF);
|
||||
// 去除文本的<p>
|
||||
detailInfoList.forEach(detail -> detail.setTermContent(detail.getTermContent().replaceAll("<p>", "")));
|
||||
detailInfoList.forEach(detail -> {
|
||||
if (StrUtil.isNotBlank(detail.getTermContent())) {
|
||||
detail.setTermContent(detail.getTermContent().replaceAll("<p>", ""));
|
||||
}
|
||||
});
|
||||
// 复制一份数据
|
||||
List<ProcessStandardComplianceCheckDetail> newRecordsExport = new ArrayList<>(detailInfoList);
|
||||
Workbook workbook = ExcelExportUtil
|
||||
@@ -546,7 +550,11 @@ public class ProcessStandardComplianceCheckServiceImpl extends ServiceImpl<Proce
|
||||
ProcessStandardComplianceCheckDetail::setFileList);
|
||||
|
||||
// 去除文本的<p>
|
||||
detailInfoList.forEach(detail -> detail.setTermContent(detail.getTermContent().replaceAll("<p>", "")));
|
||||
detailInfoList.forEach(detail -> {
|
||||
if (StrUtil.isNotBlank(detail.getTermContent())) {
|
||||
detail.setTermContent(detail.getTermContent().replaceAll("<p>", ""));
|
||||
}
|
||||
});
|
||||
|
||||
// 生成excel
|
||||
ExportParams exportParams = new ExportParams();
|
||||
|
||||
Reference in New Issue
Block a user