调整库存报表分页bug
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
@@ -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,
|
||||||
|
|||||||
Reference in New Issue
Block a user