소스 검색

新闻列表返回是否已读状态

dzx 1 년 전
부모
커밋
faacccb31b
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/main/resources/mapper/oa/NewsMapper.xml

+ 1 - 1
src/main/resources/mapper/oa/NewsMapper.xml

@@ -39,7 +39,7 @@
         from xjr_oa_news t
         left join xjr_user t2 on t.create_user_id = t2.id
         <if test="dto.type != null and dto.type == 2 and dto.loginId != null">
-            left join xjr_oa_news_relation t3 on t.id = t3.news_id
+            left join xjr_oa_news_relation t3 on t.id = t3.news_id and t3.user_id = #{dto.loginId}
         </if>
         where t.delete_mark = 0 and
         (t.send_end_date > now() or t.send_end_date is null)