This commit is contained in:
余宇波 2025-06-14 10:22:51 +08:00
parent 6813715482
commit 78d0b4a7d5

View File

@ -262,6 +262,11 @@ namespace MyCode.Project.Services.Implementation
{ {
throw new BaseException("不正确的ID值"); throw new BaseException("不正确的ID值");
} }
if (orderItem.MSSSupplierLot == null || orderItem.MSSSupplierLot == "0")
{
throw new BaseException("此条数据的美塞斯批号是0,属于异常数据,请反馈给系统管理员处理后再打印条码,订单ID"+ orderItem.Id);
}
var order = _invoiceOrderRepository.Queryable().Where(t => t.Id == orderItem.InvoiceOrderId).First(); var order = _invoiceOrderRepository.Queryable().Where(t => t.Id == orderItem.InvoiceOrderId).First();
if (order == null) if (order == null)
{ {