|
@@ -620,19 +620,8 @@
|
|
AND p.showFlag!=2
|
|
AND p.showFlag!=2
|
|
|
|
|
|
</where>
|
|
</where>
|
|
- <choose>
|
|
|
|
- <when test="page !=null and page.orderBy != null and page.orderBy != ''">
|
|
|
|
- ORDER BY ${page.orderBy}
|
|
|
|
- </when>
|
|
|
|
- </choose>
|
|
|
|
# 在设置重点关注时给排序值1000为了让重点关注始终在列表前端
|
|
# 在设置重点关注时给排序值1000为了让重点关注始终在列表前端
|
|
- <if test="sortIndex==1000">
|
|
|
|
- ORDER BY a.newshowTime DESC
|
|
|
|
- </if>
|
|
|
|
- <if test="sortIndex!=1000">
|
|
|
|
- order by a.sortIndex desc
|
|
|
|
- </if>
|
|
|
|
-
|
|
|
|
|
|
+ order by a.sortIndex desc,a.newshowTime DESC
|
|
</select>
|
|
</select>
|
|
<update id="updateActive">
|
|
<update id="updateActive">
|
|
UPDATE product
|
|
UPDATE product
|