From d55394e5a1ce970cb759de51194f7c1facb523fb Mon Sep 17 00:00:00 2001 From: buaixuexideshitongxue <2936013465@qq.com> Date: Wed, 12 Aug 2026 10:42:47 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=AF=BC=E5=87=BA=E4=BF=AE=E6=94=B9?= =?UTF-8?q?=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ModifiedVerifyContentCellWriteHandler.java | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/main/java/com/biutag/supervision/service/ModifiedVerifyContentCellWriteHandler.java b/src/main/java/com/biutag/supervision/service/ModifiedVerifyContentCellWriteHandler.java index 42930f4..cb58d04 100644 --- a/src/main/java/com/biutag/supervision/service/ModifiedVerifyContentCellWriteHandler.java +++ b/src/main/java/com/biutag/supervision/service/ModifiedVerifyContentCellWriteHandler.java @@ -15,6 +15,7 @@ public class ModifiedVerifyContentCellWriteHandler implements CellWriteHandler { private static final int MODIFIED_VERIFY_CONTENT_COLUMN_INDEX = 6; private Font labelFont; + private Font arrowFont; private CellStyle wrappedStyle; @Override @@ -38,6 +39,10 @@ public class ModifiedVerifyContentCellWriteHandler implements CellWriteHandler { if (separatorIndex > 0) { richText.applyFont(offset, offset + separatorIndex, getLabelFont(workbook)); } + int arrowIndex = line.indexOf('→', separatorIndex + 1); + if (arrowIndex >= 0) { + richText.applyFont(offset + arrowIndex, offset + arrowIndex + 1, getArrowFont(workbook)); + } offset += line.length() + 1; } float requiredHeight = Math.max(cell.getRow().getHeightInPoints(), lines.length * 18F); @@ -54,6 +59,15 @@ public class ModifiedVerifyContentCellWriteHandler implements CellWriteHandler { return labelFont; } + private Font getArrowFont(Workbook workbook) { + if (arrowFont == null) { + arrowFont = workbook.createFont(); + arrowFont.setBold(true); + arrowFont.setColor(IndexedColors.RED.getIndex()); + } + return arrowFont; + } + private void applyWrappedStyle(Workbook workbook, Cell cell) { if (wrappedStyle == null) { wrappedStyle = workbook.createCellStyle();