kaick преди 2 години
родител
ревизия
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