处方还药时bug修复

This commit is contained in:
马巧 2025-09-28 14:40:01 +08:00
parent 289a1491f3
commit 6fa4cb7508
1 changed files with 1 additions and 1 deletions

View File

@ -109,7 +109,6 @@ namespace MasaBlazorApp3.DataAccess.Impl
query = query.Where(cs => cs.MachineId.Equals(_setting.machineId)).Where(cs => cs.DrawerType == 1) query = query.Where(cs => cs.MachineId.Equals(_setting.machineId)).Where(cs => cs.DrawerType == 1)
.Where(cs => cs.Quantity > 0)
.Where(cs => cs.DrugId.Equals(DrugId)); .Where(cs => cs.DrugId.Equals(DrugId));
if (quantity > 0) if (quantity > 0)
@ -118,6 +117,7 @@ namespace MasaBlazorApp3.DataAccess.Impl
{ {
query = query.Where(cs => cs.ManuNo.Equals(ManuNo)); query = query.Where(cs => cs.ManuNo.Equals(ManuNo));
} }
query = query.Where(cs => cs.Quantity > 0);
} }
else else
{ {