From 2c99ebfb736e9174c3dab012a9fdc9ed19d490d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=B6=E5=9D=A4?= <997828819@qq.com> Date: Fri, 17 May 2024 13:54:13 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E5=8D=95=E7=81=AF=E5=87=BA?= =?UTF-8?q?=E5=BA=93=E5=AE=8C=E6=88=90=E8=A7=A3=E9=94=81=E5=BA=93=E5=AD=98?= =?UTF-8?q?=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- WCS.BLL/Services/Service/OutstoreService.cs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/WCS.BLL/Services/Service/OutstoreService.cs b/WCS.BLL/Services/Service/OutstoreService.cs index e10f390..875db49 100644 --- a/WCS.BLL/Services/Service/OutstoreService.cs +++ b/WCS.BLL/Services/Service/OutstoreService.cs @@ -602,7 +602,7 @@ namespace WCS.BLL.Services.Service orcs.Data.Add(od); } //亮灯 - + //返回 return new OutResponseCommonSingle() { @@ -871,6 +871,13 @@ namespace WCS.BLL.Services.Service order.OutOrderExeStatus = OutOrderExeStatus.发料完成; DbHelp.db.Updateable(order).ExecuteCommand(); } + //解锁物料 + List List = DbHelp.db.Queryable().Where(it => it.OrderNumber == request.OrderNumber).ToList(); + foreach (OutOrderMatDetail listdetail in List) + { + DbHelp.db.Updateable().SetColumns(it => it.IsLocked == false).Where(it => it.MatSN == listdetail.MatSN).ExecuteCommand(); + } + DbHelp.db.Updateable().SetColumns(it => it.OrderNumber == null).Where(it => it.OrderNumber == request.OrderNumber).ExecuteCommand(); //灭灯