浏览代码

新闻查询调整

dzx 9 月之前
父节点
当前提交
020fc0770d
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      src/main/java/com/xjrsoft/module/oa/controller/NewsController.java

+ 3 - 0
src/main/java/com/xjrsoft/module/oa/controller/NewsController.java

@@ -116,6 +116,9 @@ public class NewsController {
                             .eq(File::getFolderId, record.getCover())
                             .eq(File::getDeleteMark, DeleteMark.NODELETE.getCode())
             );
+            if(file == null){
+                continue;
+            }
             record.setCoverUrl(file.getFileUrl());
         }
         PageOutput<NewsPageVo> pageOutput = ConventPage.getPageOutput(page, NewsPageVo.class);