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("材料存在未通过情况,请检查"); } }