11
tjx
2025-11-12 c6d9fc76d16c944e64d6490eb2a6d866fd7a38f0
11
已修改1个文件
24 ■■■■ 文件已修改
MES.Service/service/QC/BarcodeService.cs 24 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
MES.Service/service/QC/BarcodeService.cs
@@ -64,17 +64,17 @@
            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} 无效");
        //     }
        // }
    }
}