bug
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user