Browse Source

信息中心bugfix

kaick 1 year ago
parent
commit
9921e73af8
1 changed files with 2 additions and 0 deletions
  1. 2 0
      src/main/resources/mapper/ArticleMapper.xml

+ 2 - 0
src/main/resources/mapper/ArticleMapper.xml

@@ -60,6 +60,7 @@
 		left join info a on a.id=cr.relatedId
 		left join info_praise c on a.id = c.infoId
 		where cr.type=2
+		and cr.delFlag=0
 		and a.enabledStatus = 1
 		and a.auditStatus = 2
 		and NOW() >= a.pubdate
@@ -85,6 +86,7 @@
 				 left join info a on a.id=cr.relatedId
 				 left join info_praise c on a.id = c.infoId
 		where cr.type=1
+		and cr.delFlag=0
 		and a.enabledStatus = 1
 		and a.auditStatus = 2
 		and cr.authorId = #{authorId}