From 2a69514f3c3c8351041b19248037ca653f2093e0 Mon Sep 17 00:00:00 2001 From: wangxy <1356089412@qq.com> Date: Tue, 16 Apr 2024 10:00:22 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E8=AF=84=E5=88=86=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../hyp/web/controller/manager/FileRelationManager.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/hyp-admin/src/main/java/com/hyp/web/controller/manager/FileRelationManager.java b/hyp-admin/src/main/java/com/hyp/web/controller/manager/FileRelationManager.java index e331812..1738757 100644 --- a/hyp-admin/src/main/java/com/hyp/web/controller/manager/FileRelationManager.java +++ b/hyp-admin/src/main/java/com/hyp/web/controller/manager/FileRelationManager.java @@ -41,6 +41,12 @@ public class FileRelationManager { @Resource private ServerConfig serverConfig; + /** + * 未通过 + * + */ + private static final Integer FILE_STATE_WTG = 2; + /** * * 删除文件 @@ -85,7 +91,7 @@ public class FileRelationManager { .list(); if(CollUtil.isNotEmpty(list)){ for(RewFileRelation rewFileRelation : list){ - if(Objects.equals(rewFileRelation.getFileState(),2)){ + if(Objects.equals(rewFileRelation.getFileState(),FILE_STATE_WTG) || Objects.isNull(rewFileRelation.getFileState())){ return AjaxResult.error("材料存在未通过情况,请检查"); } }