瀏覽代碼

슬로우 쿼리 튜닝 커밋

card007 4 年之前
父節點
當前提交
4e86c42e82
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3 0
      src/main/java/com/style24/persistence/mybatis/shop/TsfGoods.xml

+ 3 - 0
src/main/java/com/style24/persistence/mybatis/shop/TsfGoods.xml

@@ -3576,6 +3576,9 @@
 		            WHERE GOODS_CD = G.GOODS_CD
 		            AND BENEFIT_GB = '40'
 		        )
+		<if test="maxRow != null and maxRow > 0">
+		    LIMIT #{maxRow}
+		</if>
 		    ) G
 		    WHERE 1 = 1
 		)