Explorar o código

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

dzx hai 1 ano
pai
achega
faacccb31b
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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)