|
@@ -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>
|