From 092c7a4ea9ae1222cb5e9e3184a6f57902af63fc Mon Sep 17 00:00:00 2001 From: yangtm Date: Wed, 7 May 2025 13:23:49 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=8A=E4=BC=A0=E8=B4=A7=E6=9F=9C=E6=8A=A5?= =?UTF-8?q?=E9=94=99=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- WMS-BS/NFine.Application/WMS/WMSCreateItemLotApp.cs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/WMS-BS/NFine.Application/WMS/WMSCreateItemLotApp.cs b/WMS-BS/NFine.Application/WMS/WMSCreateItemLotApp.cs index 42a57aa..4b60059 100644 --- a/WMS-BS/NFine.Application/WMS/WMSCreateItemLotApp.cs +++ b/WMS-BS/NFine.Application/WMS/WMSCreateItemLotApp.cs @@ -1235,12 +1235,12 @@ where a.DNType='1' and a.Status='2' and a.ASNCode is null AND ISNULL(a.EATTRIBUT #endregion #region 获取仓库权限信息 - string workpoint=NFine.Code.OperatorProvider.Provider.GetCurrent().Location; - string user=NFine.Code.OperatorProvider.Provider.GetCurrent().UserCode; - string permission=HelperMethod.GetWarehousePermissions(user, workpoint); + string workpoint = NFine.Code.OperatorProvider.Provider.GetCurrent().Location; + string user = NFine.Code.OperatorProvider.Provider.GetCurrent().UserCode; + string permission = HelperMethod.GetWarehousePermissions(user, workpoint); if (!string.IsNullOrWhiteSpace(permission)) { - sql += " and a.WHCode " + permission +" "; + sql += " and a.WHCode " + permission + " "; } #endregion @@ -3866,8 +3866,8 @@ CAST( (a.Quantity-ISNULL(c.LOTQTY,0)) as DECIMAL(18,{0})) as thisCreateQty,isnu #endregion if (!result.Contains("successo")) { - ICSHGResult hgresult = JsonConvert.DeserializeObject(result.TrimStart('[').TrimEnd(']')); - throw new Exception("货柜单据传输接口调用报错,主要报错信息:" + hgresult.PrimaryError + ",次要报错信息:" + hgresult.SecondaryError + ""); + List hgresult = JsonConvert.DeserializeObject>(result); + throw new Exception("货柜单据传输接口调用报错,主要报错信息:" + hgresult[0].PrimaryError + ",次要报错信息:" + hgresult[0].SecondaryError + ""); } string sb = stringBuilder.ToString().TrimEnd(','); string sqlString = string.Empty;