| | |
| | | throw new ArgumentException($"工单 {request.workOrderNumber} 不存在"); |
| | | } |
| | | |
| | | foreach (var barcode in request.barcodes) |
| | | { |
| | | if (string.IsNullOrEmpty(barcode) || !barcode.StartsWith("BC")) |
| | | { |
| | | throw new ArgumentException($"条码 {barcode} 无效"); |
| | | } |
| | | |
| | | if (!GeneratedBarcodes.Contains(barcode)) |
| | | { |
| | | throw new ArgumentException($"条码 {barcode} 无效"); |
| | | } |
| | | } |
| | | // foreach (var barcode in request.barcodes) |
| | | // { |
| | | // if (string.IsNullOrEmpty(barcode) || !barcode.StartsWith("BC")) |
| | | // { |
| | | // throw new ArgumentException($"条码 {barcode} 无效"); |
| | | // } |
| | | // |
| | | // if (!GeneratedBarcodes.Contains(barcode)) |
| | | // { |
| | | // throw new ArgumentException($"条码 {barcode} 无效"); |
| | | // } |
| | | // } |
| | | } |
| | | } |