Browse Source

内容库V1.0.0

kaick 1 year ago
parent
commit
ba1f918128
1 changed files with 1 additions and 0 deletions
  1. 1 0
      src/main/resources/mapper/CmProductArchiveContentMapper.xml

+ 1 - 0
src/main/resources/mapper/CmProductArchiveContentMapper.xml

@@ -66,6 +66,7 @@
 		cpa.productImage as image,
 		cpa.productImage as image,
 		cpa.productType,
 		cpa.productType,
 		cpa.productClassify
 		cpa.productClassify
+		,IFNULL((select sum(c.pv) from cm_praise_statistics c where  c.delFlag = 0 and c.type = 1 and cm_product_archive_content.id = c.authorId ), 0) as pv
 		from cm_product_archive_content AS cm_product_archive_content
 		from cm_product_archive_content AS cm_product_archive_content
 		left join cm_product_archive cpa on cpa.id = cm_product_archive_content.productArchiveId
 		left join cm_product_archive cpa on cpa.id = cm_product_archive_content.productArchiveId
 		<where>
 		<where>