1
This commit is contained in:
@@ -115,9 +115,11 @@ namespace ZR.Admin.WebApi.Controllers
|
||||
{ "TotalBaofeiNumber", totalBaofeiNumber },
|
||||
{ "TotalListCount", totalListCount }
|
||||
};
|
||||
// 创建分页结果
|
||||
var pageList = resultWithDefects.Skip((parm.PageNum - 1) * parm.PageSize).Take(parm.PageSize).ToList();
|
||||
|
||||
// 返回包含数据和统计数据的对象
|
||||
var result = new { list = resultWithDefects, statistics = statistics };
|
||||
var result = new { list = resultWithDefects, statistics = statistics, pageList,total=resultWithDefects.Count };
|
||||
|
||||
return SUCCESS(result);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user