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());