Browse Source

1.修改WriteBarcodeInfo4DataCarrier

PTD
Marvin 1 year ago
parent
commit
f528d8d0af
  1. 4
      AMESCoreStudio.WebApi/Controllers/AMES/BarcodeInfoesController.cs

4
AMESCoreStudio.WebApi/Controllers/AMES/BarcodeInfoesController.cs

@ -383,10 +383,14 @@ namespace AMESCoreStudio.WebApi.Controllers.AMES
if (oldBarcodeItem != null)
{
for (int i = 0; i < oldBarcodeItem.Count; i++)
{
try
{
_context.BarcodeItems.Remove(oldBarcodeItem[i]);
await _context.SaveChangesAsync();
}
catch { }
}
}
_context.Entry(barcodeInfo[0]).State = EntityState.Modified;

Loading…
Cancel
Save