三楼人工库逻辑等
This commit is contained in:
@@ -71,7 +71,7 @@ namespace Tnb.WarehouseMgr
|
||||
warehouse_name = d.whname,
|
||||
material_name = f.name,
|
||||
material_specification = f.material_specification,
|
||||
container_no = f.container_no,
|
||||
container_no = f.material_standard,
|
||||
create_time = a.create_time,
|
||||
create_id = a.create_id,
|
||||
code_batch = a.code_batch,
|
||||
@@ -79,18 +79,6 @@ namespace Tnb.WarehouseMgr
|
||||
supplier_name = "",
|
||||
}, true).ToListAsync();
|
||||
|
||||
|
||||
string ssssss = _db.Queryable<WmsCarryCode>().InnerJoin<WmsCarryH>((a, b) => a.carry_id == b.id)
|
||||
.InnerJoin<BasLocation>((a, b, c) => b.location_id == c.id).InnerJoin<BasWarehouse>((a, b, c, d) => c.wh_id == d.id)
|
||||
.LeftJoin<WmsTempCode>((a, b, c, d, e) => e.barcode == a.barcode)
|
||||
.InnerJoin<BasMaterial>((a, b, c, d, e, f) => f.id == a.material_id)
|
||||
.LeftJoin<WmsPurchaseD>((a, b, c, d, e, f, g) => e.require_id == g.id)
|
||||
.LeftJoin<WmsPurchaseH>((a, b, c, d, e, f, g, h) => h.id == g.bill_id)
|
||||
.WhereIF(!string.IsNullOrEmpty(material_specification), (a, b, c, d, e, f) => f.material_specification.Contains(material_specification))
|
||||
.WhereIF(!string.IsNullOrEmpty(code_batch), (a, b, c, d, e, f) => a.code_batch.Contains(code_batch))
|
||||
.WhereIF(!string.IsNullOrEmpty(container_no), (a, b, c, d, e, f) => f.container_no.Contains(container_no))
|
||||
.WhereIF(!string.IsNullOrEmpty(material_code), (a, b, c, d, e, f) => f.code.Contains(material_code)).ToSqlString();
|
||||
|
||||
List<WmsCarryCode> carryCodes = await _db.Queryable<WmsCarryCode>().ToListAsync();
|
||||
var storeMap = items.DistinctBy(x => new { x.warehouse_id, x.material_id, x.code_batch }).ToDictionary(x => new { x.warehouse_id, x.material_id, x.code_batch }, x => x);
|
||||
|
||||
@@ -147,7 +135,7 @@ namespace Tnb.WarehouseMgr
|
||||
warehouse_name = d.whname,
|
||||
material_name = f.name,
|
||||
material_specification = f.material_specification,
|
||||
container_no = f.container_no,
|
||||
container_no = f.material_standard,
|
||||
create_time = a.create_time,
|
||||
create_id = a.create_id,
|
||||
code_batch = a.code_batch,
|
||||
|
||||
Reference in New Issue
Block a user