From a4b1beec1860567d15ae453976ce559d41bee928 Mon Sep 17 00:00:00 2001 From: yijiegong Date: Fri, 27 Sep 2024 14:58:21 +0800 Subject: [PATCH] =?UTF-8?q?=E9=80=80=E8=B4=A7=E6=95=B0=E6=8D=AE=E6=98=BE?= =?UTF-8?q?=E7=A4=BA=E4=B8=BA=E8=B4=9F=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/java/cn/ysk/cashier/utils/FileUtils.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/eladmin-system/src/main/java/cn/ysk/cashier/utils/FileUtils.java b/eladmin-system/src/main/java/cn/ysk/cashier/utils/FileUtils.java index 8188cad2..f6e9437c 100644 --- a/eladmin-system/src/main/java/cn/ysk/cashier/utils/FileUtils.java +++ b/eladmin-system/src/main/java/cn/ysk/cashier/utils/FileUtils.java @@ -45,10 +45,12 @@ public class FileUtils { cell.setCellValue(value); if (j == 10 && !"0".equals(value)) { + cell.setCellValue("-" + value); setCellBackground(cell, IndexedColors.YELLOW, workbook); } if (j == 11 && !"0.00".equals(value)) { + cell.setCellValue("-" + value); setCellBackground(cell, IndexedColors.YELLOW, workbook); } }