Ver Fonte

新品橱窗bugfix

zhijiezhao há 2 anos atrás
pai
commit
932fd947d9

+ 1 - 12
src/main/resources/mappings/modules/product/ProductMapper.xml

@@ -620,19 +620,8 @@
 			AND p.showFlag!=2
 
 		</where>
-		<choose>
-			<when test="page !=null and page.orderBy != null and page.orderBy != ''">
-				ORDER BY ${page.orderBy}
-			</when>
-		</choose>
 # 		在设置重点关注时给排序值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>
 	<update id="updateActive">
 		UPDATE product