feat: 不符合项库导出超长字段截取
This commit is contained in:
+5
@@ -149,6 +149,11 @@ public class LawsEvaluationNotMetLibraryServiceImpl extends ServiceImpl<LawsEval
|
|||||||
exportParams.setSheetName(sheetName);
|
exportParams.setSheetName(sheetName);
|
||||||
// 复制一份数据
|
// 复制一份数据
|
||||||
List<LawsEvaluationNotMetLibrary> newRecordsExport = new ArrayList<>(records);
|
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);
|
Workbook workbook = ExcelExportUtil.exportExcel(exportParams, LawsEvaluationNotMetLibrary.class, records);
|
||||||
// 翻译评估结果和佐证材料字段
|
// 翻译评估结果和佐证材料字段
|
||||||
newRecordsExport.parallelStream().forEach(item -> {
|
newRecordsExport.parallelStream().forEach(item -> {
|
||||||
|
|||||||
Reference in New Issue
Block a user