From 182b2b1d3464dc1e2dcfe83a9f11799a90e7db23 Mon Sep 17 00:00:00 2001 From: zqy <2522236926@qq.com> Date: 星期六, 23 八月 2025 20:58:21 +0800 Subject: [PATCH] 同一用户 健康模块 新增删除同一条数据 --- ruoyi-common/src/main/java/com/ruoyi/common/utils/poi/ExcelUtil.java | 9 ++++++++- 1 files changed, 8 insertions(+), 1 deletions(-) diff --git a/ruoyi-common/src/main/java/com/ruoyi/common/utils/poi/ExcelUtil.java b/ruoyi-common/src/main/java/com/ruoyi/common/utils/poi/ExcelUtil.java index 0a48f37..81c0188 100644 --- a/ruoyi-common/src/main/java/com/ruoyi/common/utils/poi/ExcelUtil.java +++ b/ruoyi-common/src/main/java/com/ruoyi/common/utils/poi/ExcelUtil.java @@ -430,6 +430,11 @@ { if (val instanceof String) { + System.out.println("====++++++++"); + System.out.println(val); + if(((String) val).contains("/")) + val = ((String) val).replace("/","-"); + System.out.println(val); val = DateUtils.parseDate(val); } else if (val instanceof Double) @@ -1571,8 +1576,10 @@ for (int i = row.getFirstCellNum(); i < row.getLastCellNum(); i++) { Cell cell = row.getCell(i); - if (cell != null && cell.getCellType() != CellType.BLANK) +// System.out.println("11111111111111:/"+(cell != null)+"\n2222222222:/"+cell+"\n333333:/"+String.valueOf(cell).length()); + if (cell != null && cell.getCellType() != CellType.BLANK && !cell.toString().equals("")) { +// System.out.println("444444+/"+(cell.getCellType())); return false; } } -- Gitblit v1.9.1