feat: 不符合项库导出超长字段截取

This commit is contained in:
2024-09-20 17:19:50 +08:00
parent 22767e872b
commit aedfb9339a
@@ -149,6 +149,11 @@ public class LawsEvaluationNotMetLibraryServiceImpl extends ServiceImpl<LawsEval
exportParams.setSheetName(sheetName);
// 复制一份数据
List<LawsEvaluationNotMetLibrary> newRecordsExport = new ArrayList<>(records);
records.parallelStream().forEach(item -> {
String termContent = item.getTermContent();
// 截取32766字符
item.setTermContent(StrUtil.sub(termContent, 0, 32767));
});
Workbook workbook = ExcelExportUtil.exportExcel(exportParams, LawsEvaluationNotMetLibrary.class, records);
// 翻译评估结果和佐证材料字段
newRecordsExport.parallelStream().forEach(item -> {