Kaynağa Gözat

内容库V1.0.0

kaick 1 yıl önce
ebeveyn
işleme
77a0a75612

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

@@ -43,7 +43,6 @@
 			<if test="productType != null  and productType != ''"> and cpa.productType = #{productType}</if>
 			<if test="productClassify != null "> and cpa.productClassify = #{productClassify}</if>
 		</where>
-		group by cm_product_archive_content.id
 		limit 0,1
 	</select>
 
@@ -65,8 +64,7 @@
 		cpa.shopName,
 		cpa.productImage as image,
 		cpa.productType,
-		cpa.productClassify,
-		cm_product_archive_content.addTime
+		cpa.productClassify
 		from cm_product_archive_content AS cm_product_archive_content
 		left join cm_product_archive cpa on cpa.id = cm_product_archive_content.productArchiveId
 		<where>
@@ -89,7 +87,6 @@
 			<if test="productType != null  and productType != ''"> and cpa.productType = #{productType}</if>
 			<if test="productClassify != null "> and cpa.productClassify = #{productClassify}</if>
 		</where>
-		group by cm_product_archive_content.id
 		order by cm_product_archive_content.addTime desc
 		limit #{pageNum},5
 	</select>