Commit 7820ab56 by hcy001

更新商品分页

parent aa4f7485
Showing with 1 additions and 1 deletions
......@@ -170,7 +170,7 @@ func (qs *OptimumService) GetOptimumAttr(ctx *gin.Context) (results model.LyResp
*/
func (qs *OptimumService) GetOptimumAttrInfo(ctx *gin.Context) (results model.LyResponse) {
//修复分页数据
if gconv.Int64(ctx.Request.FormValue("page")) * gconv.Int64(ctx.Request.FormValue("page_size")) >= 10000 {
if gconv.Int64(ctx.Request.FormValue("page")) * gconv.Int64(ctx.Request.FormValue("page_size")) > 10000 {
results.ErrorCode = 0;
results.ErrorMsg = "查询es没有数据,分页查询不得超出10000条"
return
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment