GP12报表分页显示
This commit is contained in:
@@ -84,6 +84,10 @@ namespace ZR.Admin.WebApi.Controllers
|
|||||||
totalDamoNumber += Convert.ToInt32(item.DamoNumber);
|
totalDamoNumber += Convert.ToInt32(item.DamoNumber);
|
||||||
totalBaofeiNumber += Convert.ToInt32(item.BaofeiNumber);
|
totalBaofeiNumber += Convert.ToInt32(item.BaofeiNumber);
|
||||||
totalListCount += 1;
|
totalListCount += 1;
|
||||||
|
|
||||||
|
// 移除不要的属性
|
||||||
|
itemDict["DynamicProperties"] = null;
|
||||||
|
itemDict["GroupDefectJson"] = "";
|
||||||
return itemDict;
|
return itemDict;
|
||||||
})
|
})
|
||||||
.ToList();
|
.ToList();
|
||||||
@@ -119,7 +123,7 @@ namespace ZR.Admin.WebApi.Controllers
|
|||||||
var pageList = resultWithDefects.Skip((parm.PageNum - 1) * parm.PageSize).Take(parm.PageSize).ToList();
|
var pageList = resultWithDefects.Skip((parm.PageNum - 1) * parm.PageSize).Take(parm.PageSize).ToList();
|
||||||
|
|
||||||
// 返回包含数据和统计数据的对象
|
// 返回包含数据和统计数据的对象
|
||||||
var result = new { list = resultWithDefects, statistics = statistics, pageList,total=resultWithDefects.Count };
|
var result = new { statistics = statistics, pageList ,total = resultWithDefects.Count };
|
||||||
|
|
||||||
return SUCCESS(result);
|
return SUCCESS(result);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user