This commit is contained in:
2025-03-05 16:57:56 +08:00
parent fe66f7d251
commit 4e480c26c9

View File

@@ -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);
}