作者 yangfu

商品统计分页修改

@@ -237,8 +237,8 @@ func (srv CompanyStatisticsService) GoodsStatistics(cmd *command.GoodsStatistics @@ -237,8 +237,8 @@ func (srv CompanyStatisticsService) GoodsStatistics(cmd *command.GoodsStatistics
237 "companyId": cmd.Operator.CompanyId, 237 "companyId": cmd.Operator.CompanyId,
238 "orgId": cmd.Operator.OrgId, 238 "orgId": cmd.Operator.OrgId,
239 "rankType": cmd.RankingType, //当前月 239 "rankType": cmd.RankingType, //当前月
240 - //"offset":cmd.PageNumber*cmd.PageSize,  
241 - "top": 100, 240 + "offset": cmd.PageNumber * cmd.PageSize,
  241 + "limit": cmd.PageSize,
242 }) 242 })
243 if err != nil { 243 if err != nil {
244 return 0, nil, application.ThrowError(application.BUSINESS_ERROR, err.Error()) 244 return 0, nil, application.ThrowError(application.BUSINESS_ERROR, err.Error())