调整库存报表分页bug

This commit is contained in:
alex
2023-08-24 17:37:44 +08:00
parent 6857cc9c75
commit 4d6e1896b2
2 changed files with 2 additions and 2 deletions

View File

@@ -80,11 +80,11 @@ namespace Tnb.WarehouseMgr
.Where(whereExp) .Where(whereExp)
.Select((a, b, c) => new WmsCarryCode .Select((a, b, c) => new WmsCarryCode
{ {
//is_check = SqlFunc.Subqueryable<WmsCarryH>().Where(it => it.id == a.carry_id).Select(it => it.is_check),
check_conclusion = SqlFunc.IsNull(b.check_conclusion, 1), check_conclusion = SqlFunc.IsNull(b.check_conclusion, 1),
instock_time = b.create_time, instock_time = b.create_time,
}, true) }, true)
.ToListAsync(); .ToListAsync();
if (carry.carrystd_id == WmsWareHouseConst.CARRY_LJSTD_ID && mCarryIdDic?.Count > 0) if (carry.carrystd_id == WmsWareHouseConst.CARRY_LJSTD_ID && mCarryIdDic?.Count > 0)
{ {
if (carryCodes.Count < mCarryIdDic.Keys?.Count) throw new AppFriendlyException("载具条码数据异常,有料箱为空", 500); if (carryCodes.Count < mCarryIdDic.Keys?.Count) throw new AppFriendlyException("载具条码数据异常,有料箱为空", 500);

View File

@@ -86,7 +86,7 @@ namespace Tnb.WarehouseMgr
return stockReport; return stockReport;
}); });
var pages = result.Skip(input.currentPage * input.pageSize).Take(input.pageSize).ToList(); var pages = result.Skip((input.currentPage - 1) * input.pageSize).Take(input.pageSize).ToList();
SqlSugarPagedList<WmsStockReportH> pagedList = new() SqlSugarPagedList<WmsStockReportH> pagedList = new()
{ {
list = pages, list = pages,