kaick 2 лет назад
Родитель
Сommit
8be58f261f
1 измененных файлов с 2 добавлено и 1 удалено
  1. 2 1
      src/main/resources/mapper/ArticleMapper.xml

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

@@ -57,7 +57,8 @@
 		a.relatedLabels
 		from cm_related cr
 		left join info a on a.id=cr.relatedId
-		where cr.type=2
+		left join info_praise c on a.id = c.infoId
+1		where cr.type=2
 		and a.enabledStatus = 1
 		and a.auditStatus = 2
 		and NOW() >= a.pubdate