소스 검색

公告新闻已读数量

phoenix 1 년 전
부모
커밋
eb5e1e7817
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      src/main/java/com/xjrsoft/module/oa/controller/NewsController.java

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

@@ -413,7 +413,7 @@ public class NewsController {
 
             if (news != null) {
                 newsCountTypeVo.setTime(news.getReleaseTime());
-                newsCountTypeVo.setTitle(news.getBriefHead());
+                newsCountTypeVo.setTitle(news.getFullHead());
             }
             newsCountTypeVoList.add(newsCountTypeVo);
         }
@@ -434,7 +434,7 @@ public class NewsController {
                 .eq(News::getStatus, 2)
                 .gt(News::getSendEndDate, LocalDateTime.now())
                 .eq(News::getWfStatus, 1)
-                .notInSql(News::getId, "select distinct news_id from xjr_oa_news_relation where read_mark = 1 user_id = " + StpUtil.getLoginIdAsLong()));
+                .notInSql(News::getId, "select distinct news_id from xjr_oa_news_relation where read_mark = 1 and user_id = " + StpUtil.getLoginIdAsLong()));
 
         //公告发给全体的
         Long notReadCountProclamationToAll = newsService.count(Wrappers.<News>query().lambda()