Browse Source

1.修改WriteBarcodeInfo4DataCarrier

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

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

@ -384,8 +384,12 @@ namespace AMESCoreStudio.WebApi.Controllers.AMES
{ {
for (int i = 0; i < oldBarcodeItem.Count; i++) for (int i = 0; i < oldBarcodeItem.Count; i++)
{ {
_context.BarcodeItems.Remove(oldBarcodeItem[i]); try
await _context.SaveChangesAsync(); {
_context.BarcodeItems.Remove(oldBarcodeItem[i]);
await _context.SaveChangesAsync();
}
catch { }
} }
} }

Loading…
Cancel
Save