|
@@ -156,13 +156,16 @@
|
|
AND m_store_combination.cate_id = #{cateId}
|
|
AND m_store_combination.cate_id = #{cateId}
|
|
</if>
|
|
</if>
|
|
<if test="storeName != null and storeName != ''">
|
|
<if test="storeName != null and storeName != ''">
|
|
- AND m_store_combination.product_name = #{storeName}
|
|
|
|
|
|
+ AND m_store_combination.product_name LIKE CONCAT('%', #{storeName}, '%')
|
|
</if>
|
|
</if>
|
|
|
|
|
|
<choose>
|
|
<choose>
|
|
<when test="sort == @com.txz.mall.enums.SpuSortEnum@SALES_DESC">
|
|
<when test="sort == @com.txz.mall.enums.SpuSortEnum@SALES_DESC">
|
|
ORDER BY m_store_product.ficti desc
|
|
ORDER BY m_store_product.ficti desc
|
|
</when>
|
|
</when>
|
|
|
|
+ <when test="sort == @com.txz.mall.enums.SpuSortEnum@SALES_ASC">
|
|
|
|
+ ORDER BY m_store_product.ficti asc
|
|
|
|
+ </when>
|
|
<when test="sort == @com.txz.mall.enums.SpuSortEnum@CREATE_DESC">
|
|
<when test="sort == @com.txz.mall.enums.SpuSortEnum@CREATE_DESC">
|
|
ORDER BY m_store_combination.create_time desc
|
|
ORDER BY m_store_combination.create_time desc
|
|
</when>
|
|
</when>
|