|
@@ -69,7 +69,7 @@
|
|
|
<if test="source == 'crm'.toString()">
|
|
|
and crmValidFlag = '1'
|
|
|
</if>
|
|
|
- order by sortIndex
|
|
|
+ order by ifnull(sortIndex,10000) ASC,addTime DESC
|
|
|
</select>
|
|
|
<select id="getSmallType" resultType="com.caimei.module.base.entity.vo.SmalltypeVo">
|
|
|
select
|
|
@@ -82,7 +82,7 @@
|
|
|
<if test="source == 'crm'.toString()">
|
|
|
and crmValidFlag = '1'
|
|
|
</if>
|
|
|
- order by sortIndex
|
|
|
+ order by ifnull(sortIndex,10000) ASC,addTime DESC
|
|
|
</select>
|
|
|
<select id="getTinytype" resultType="com.caimei.module.base.entity.vo.TinytypeVo">
|
|
|
select
|
|
@@ -95,7 +95,7 @@
|
|
|
<if test="source == 'crm'.toString()">
|
|
|
and crmValidFlag = '1'
|
|
|
</if>
|
|
|
- order by sortIndex
|
|
|
+ order by ifnull(sortIndex,10000) ASC,addTime DESC
|
|
|
</select>
|
|
|
<!-- sortType (3:价格升序, 4:价格降序, 7:人气, 8:销量) -->
|
|
|
<select id="getProductsByTypeId" resultType="com.caimei.module.base.entity.vo.ProductVo" parameterType="java.lang.Integer">
|