Browse Source

信息中心bugfix

kaick 1 năm trước cách đây
mục cha
commit
9921e73af8

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

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