1
This commit is contained in:
@@ -51,15 +51,7 @@ namespace Tnb.WarehouseMgr
|
||||
}
|
||||
Expression<Func<WmsCarryCode, bool>> whereExp = carryMIds?.Count > 0 ? a => carryMIds.Contains(a.carry_id) : a => a.carry_id == carryId;
|
||||
items = await _db.Queryable<WmsCarryCode>().Where(whereExp)
|
||||
.Select(a => new CarryCodeDetailOutput
|
||||
{
|
||||
barcode = a.barcode,
|
||||
code_batch = a.code_batch!,
|
||||
codeqty = a.codeqty,
|
||||
material_code = a.material_code,
|
||||
material_id = a.material_id,
|
||||
unit_id = a.unit_id,
|
||||
})
|
||||
.Select<CarryCodeDetailOutput>()
|
||||
.Mapper(it => it.material_name = (it.material_id != null && dicMaterial.ContainsKey(it.material_id)) ? dicMaterial[it.material_id].ToString() : "")
|
||||
.ToListAsync();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user