From be5f47e3050edf98bdda8f567f39ac0c63dc56d5 Mon Sep 17 00:00:00 2001 From: wangxy <1356089412@qq.com> Date: Thu, 15 Aug 2024 15:44:31 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E6=A3=80=E6=9F=A5=E6=8A=A5=E5=91=8A?= =?UTF-8?q?=E5=AF=BC=E5=87=BA=E6=8E=A5=E5=8F=A3=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/ruoyi/web/controller/manager/CheckReportManager.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/manager/CheckReportManager.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/manager/CheckReportManager.java index 8b642ee..e0e6755 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/manager/CheckReportManager.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/manager/CheckReportManager.java @@ -18,6 +18,7 @@ import javax.annotation.Resource; import java.util.Arrays; import java.util.Date; import java.util.List; +import java.util.Objects; /** * packageName com.ruoyi.web.controller.manager @@ -51,7 +52,9 @@ public class CheckReportManager { .eq(TdCheckType::getCheckId, checkReportDTO.getCheckId()) .remove(); } else { - tdCheckReport.setCheckState("2"); + if(Objects.isNull(tdCheckReport.getCheckState())){ + tdCheckReport.setCheckState("2"); + } tdCheckReport.setDepart(ShiroUtils.getSysUser().getDept().getDeptName()); tdCheckReport.setAdduser(ShiroUtils.getSysUser().getLoginName()); tdCheckReport.setCreateTime(new Date());