This commit is contained in:
alex
2023-08-23 15:00:48 +08:00
parent 62e1cd910a
commit 96920df76f

View File

@@ -492,6 +492,8 @@ namespace Tnb.WarehouseMgr
[HttpPost]
public async Task<dynamic> MesFetchInOutStockInfoByBarCode(MaterialLabelQuery input)
{
if (input.IsNull()) new ArgumentException(nameof(input));
if (input.barcode?.Count < 1) new ArgumentException(nameof(input.barcode));
var pagedList = await _db.Queryable<WmsInstockH>().InnerJoin<WmsInstockCode>((a, b) => a.id == b.bill_id)
.LeftJoin<WmsOutstockCode>((a, b, c) => b.barcode == c.barcode)
.WhereIF(!string.IsNullOrEmpty(input.org_id), (a, b, c) => a.org_id == input.org_id)
@@ -506,7 +508,7 @@ namespace Tnb.WarehouseMgr
}, true)
.ToPagedListAsync(input.currentPage, input.pageSize);
return PageResult<MaterailLabelOutput>.SqlSugarPageResult(pagedList); ;
return PageResult<MaterailLabelOutput>.SqlSugarPageResult(pagedList);
}