kaick преди 1 година
родител
ревизия
9921e73af8
променени са 1 файла, в които са добавени 2 реда и са изтрити 0 реда
  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}