This commit is contained in:
2024-06-28 16:27:30 +08:00
parent 8a9708ffc7
commit cf241dcd56
2 changed files with 7 additions and 7 deletions

View File

@@ -104,7 +104,7 @@ namespace Tnb.ProductionMgr
if (await db.Queryable<PrdMaterialReceiptD>()
.AnyAsync(x => x.member_carry_code == qrCode && x.is_all_feeding == 0))
.AnyAsync(x => x.member_carry_code == qrCode && x.is_all_feeding == 0 && ids.Contains(x.material_receipt_id)))
{
FeedingDetailOutput result = await db.Queryable<PrdMaterialReceiptD>()
.LeftJoin<WmsCarryH>((a, b) => b.carry_code==qrCode)
@@ -134,7 +134,7 @@ namespace Tnb.ProductionMgr
{
FeedingDetailOutput result = await db.Queryable<PrdMaterialReceiptH>()
.LeftJoin<WmsCarryH>((a, b) => b.carry_code==qrCode)
.Where((a) => a.carry_code == qrCode)
.Where((a) => a.carry_code == qrCode && ids.Contains(a.id))
.Select((a, b) => new FeedingDetailOutput
{
carry_id = a.carry_id,