1
This commit is contained in:
@@ -90,11 +90,13 @@ namespace Tnb.WarehouseMgr
|
|||||||
carryMats = carryMats.OrderBy(o => o.create_time).GroupBy(g => new { g.carry_id, g.material_id, g.code_batch })
|
carryMats = carryMats.OrderBy(o => o.create_time).GroupBy(g => new { g.carry_id, g.material_id, g.code_batch })
|
||||||
.Select(x =>
|
.Select(x =>
|
||||||
{
|
{
|
||||||
WmsCarryMat carryMat = x.FirstOrDefault()!;
|
WmsCarryMat? carryMat = x.FirstOrDefault()!;
|
||||||
carryMat.real_qty = x.Sum(d => d.real_qty);
|
carryMat.real_qty = x.Sum(d => d.real_qty);
|
||||||
return carryMat;
|
return carryMat;
|
||||||
})
|
})
|
||||||
.ToList();
|
.ToList();
|
||||||
|
await _db.Insertable(carryMats).ExecuteCommandAsync();
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user