Browse Source

作者:张哲
时间:2023/08/14
类型:优化
描述:专辑审核列表和点评审核列表修改

zizg 1 year ago
parent
commit
e7a9ed476b

+ 1 - 1
src/main/java/com/redxun/knowledge/album/service/AlbumApproveServiceImpl.java

@@ -195,7 +195,7 @@ public class AlbumApproveServiceImpl extends SuperServiceImpl<AlbumApproveMapper
         //查询知识管理员
         List<String> knowledgeManager = knowledgeApproveMapper.findKnowledgeManager();
         String user = userService.queryLoginUser();
-        if (("1".equals(type) && knowledgeManager.contains(user)) || "1".equals(user)) {
+        if ("1".equals(type) && knowledgeManager.contains(user)) {
             List<AlbumApprove> result = albumApproveVos.stream().
                     sorted((t1, t2) -> t2.getCreateTime().compareTo(t1.getCreateTime())).collect(Collectors.toList());
             Page pageResult = PageListUtils.getPages(queryFilter.getPage().getCurrent(), queryFilter.getPage().getSize(), result);

+ 1 - 1
src/main/java/com/redxun/knowledge/album/service/AlbumYelpApproveServiceImpl.java

@@ -118,7 +118,7 @@ public class AlbumYelpApproveServiceImpl extends SuperServiceImpl<AlbumYelpAppro
         //查询知识管理员
         List<String> knowledgeManager = knowledgeApproveMapper.findKnowledgeManager();
         String user = userService.queryLoginUser();
-        if (("1".equals(type) && knowledgeManager.contains(user)) || "1".equals(user)) {
+        if ("1".equals(type) && knowledgeManager.contains(user)) {
             List<AlbumYelpApprove> result = albumYelpApproves.stream().
                     sorted((t1, t2) -> t2.getCreateTime().compareTo(t1.getCreateTime())).collect(Collectors.toList());
             Page pageResult = PageListUtils.getPages(queryFilter.getPage().getCurrent(), queryFilter.getPage().getSize(), result);