From a1436c2bee85c9aac740b7c713b1a90dc32659a4 Mon Sep 17 00:00:00 2001 From: lilili Date: Fri, 21 Apr 2023 16:28:13 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E5=90=88=E5=B9=B6=E9=A2=86?= =?UTF-8?q?=E6=96=99=E6=9F=A5=E8=AF=A2=E5=8D=95=E6=8D=AE=E6=8A=A5=E9=94=99?= =?UTF-8?q?=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ICSSoft.WMS.WebAPI/ICSSoft.DataProject/ICSSubmitService.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ICSSoft.WMS.WebAPI/ICSSoft.DataProject/ICSSubmitService.cs b/ICSSoft.WMS.WebAPI/ICSSoft.DataProject/ICSSubmitService.cs index bc89c67..ceb9da4 100644 --- a/ICSSoft.WMS.WebAPI/ICSSoft.DataProject/ICSSubmitService.cs +++ b/ICSSoft.WMS.WebAPI/ICSSoft.DataProject/ICSSubmitService.cs @@ -262,7 +262,7 @@ namespace ICSSoft.DataProject a.ToWarehouseCode,"; tableNameMerge = @"ICSTransfer a - INNER JOIN ICSMOPickMerge mer ON a.TransferDetailID=mer.SourceID AND a.WorkPoint=mer.WorkPoint"; + INNER JOIN ICSMOPickMerge mer ON a.ID=mer.SourceID AND a.WorkPoint=mer.WorkPoint"; #region SLQ sql = @"SELECT a.ID, @@ -999,7 +999,7 @@ namespace ICSSoft.DataProject string sqlMerge = "SELECT ID FROM ICSMOPickMerge WHERE MergeID='" + JsonData.TransCode + "' AND WorkPoint='" + JsonData.WorkPoint + "'"; DataTable sign = DBHelper.SQlReturnData(sqlMerge, cmd); - if (sign != null && flag.Rows.Count > 0) + if (sign != null && sign.Rows.Count > 0) { string whereMerge = string.Format("mer.MergeID='{0}' AND mer.WorkPoint='{1}'", JsonData.TransCode, JsonData.WorkPoint); sql = string.Format(sql, columnsMerge, tableNameMerge, whereMerge, JsonData.TransCode, JsonData.WorkPoint);