From fcf24f0494a7efddf16645b397879494eede3152 Mon Sep 17 00:00:00 2001 From: dhy1725534722 <1725534722@qq.com> Date: Thu, 28 Mar 2024 15:35:02 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AF=BC=E5=85=A5=E7=9A=84=E9=A1=B9=E7=9B=AE?= =?UTF-8?q?=E4=B8=BA=E8=AF=84=E5=AE=A1=E5=AE=8C=E6=88=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/com/ruoyi/common/utils/poi/ProjectExcelUtil.java | 1 + .../main/java/com/ruoyi/common/utils/poi/ProjectValueUtil.java | 1 + 2 files changed, 2 insertions(+) diff --git a/ruoyi-common/src/main/java/com/ruoyi/common/utils/poi/ProjectExcelUtil.java b/ruoyi-common/src/main/java/com/ruoyi/common/utils/poi/ProjectExcelUtil.java index f0f6980..6dea51e 100644 --- a/ruoyi-common/src/main/java/com/ruoyi/common/utils/poi/ProjectExcelUtil.java +++ b/ruoyi-common/src/main/java/com/ruoyi/common/utils/poi/ProjectExcelUtil.java @@ -385,6 +385,7 @@ public class ProjectExcelUtil { ReflectUtils.invokeSetter(entity, propertyName, val); } } + ReflectUtils.invokeSetter(entity, "status", 5); cellMap.entrySet().removeIf(entry -> hasStr.contains(entry.getKey())); StringBuilder str = new StringBuilder(); Map sortHash = new HashMap<>(); diff --git a/ruoyi-common/src/main/java/com/ruoyi/common/utils/poi/ProjectValueUtil.java b/ruoyi-common/src/main/java/com/ruoyi/common/utils/poi/ProjectValueUtil.java index e3c54f0..ca0fec0 100644 --- a/ruoyi-common/src/main/java/com/ruoyi/common/utils/poi/ProjectValueUtil.java +++ b/ruoyi-common/src/main/java/com/ruoyi/common/utils/poi/ProjectValueUtil.java @@ -384,6 +384,7 @@ public class ProjectValueUtil { } ReflectUtils.invokeSetter(entity, "projectClassify", projectClassify); ReflectUtils.invokeSetter(entity, "projectYear", projectYear); + ReflectUtils.invokeSetter(entity, "status", 5); cellMap.entrySet().removeIf(entry -> hasStr.contains(entry.getKey())); StringBuilder str = new StringBuilder(); Map sortHash = new HashMap<>();