소스 검색

新品橱窗bugfix

zhijiezhao 2 년 전
부모
커밋
932fd947d9
1개의 변경된 파일1개의 추가작업 그리고 12개의 파일을 삭제
  1. 1 12
      src/main/resources/mappings/modules/product/ProductMapper.xml

+ 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