1
This commit is contained in:
@@ -492,6 +492,8 @@ namespace Tnb.WarehouseMgr
|
|||||||
[HttpPost]
|
[HttpPost]
|
||||||
public async Task<dynamic> MesFetchInOutStockInfoByBarCode(MaterialLabelQuery input)
|
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)
|
var pagedList = await _db.Queryable<WmsInstockH>().InnerJoin<WmsInstockCode>((a, b) => a.id == b.bill_id)
|
||||||
.LeftJoin<WmsOutstockCode>((a, b, c) => b.barcode == c.barcode)
|
.LeftJoin<WmsOutstockCode>((a, b, c) => b.barcode == c.barcode)
|
||||||
.WhereIF(!string.IsNullOrEmpty(input.org_id), (a, b, c) => a.org_id == input.org_id)
|
.WhereIF(!string.IsNullOrEmpty(input.org_id), (a, b, c) => a.org_id == input.org_id)
|
||||||
@@ -506,7 +508,7 @@ namespace Tnb.WarehouseMgr
|
|||||||
}, true)
|
}, true)
|
||||||
.ToPagedListAsync(input.currentPage, input.pageSize);
|
.ToPagedListAsync(input.currentPage, input.pageSize);
|
||||||
|
|
||||||
return PageResult<MaterailLabelOutput>.SqlSugarPageResult(pagedList); ;
|
return PageResult<MaterailLabelOutput>.SqlSugarPageResult(pagedList);
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user