瀏覽代碼

信息中心bugfix

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}