陆晔 2 weeks ago
parent
commit
1b586d059a
  1. 4
      WMS-BS/NFine.Application/WMS/WMSCreateItemLotApp.cs

4
WMS-BS/NFine.Application/WMS/WMSCreateItemLotApp.cs

@ -3866,8 +3866,8 @@ CAST( (a.Quantity-ISNULL(c.LOTQTY,0)) as DECIMAL(18,{0})) as thisCreateQty,isnu
#endregion #endregion
if (!result.Contains("successo")) if (!result.Contains("successo"))
{ {
ICSHGResult hgresult = JsonConvert.DeserializeObject<ICSHGResult>(result.TrimStart('[').TrimEnd(']'));
throw new Exception("货柜单据传输接口调用报错,主要报错信息:" + hgresult.PrimaryError + ",次要报错信息:" + hgresult.SecondaryError + "");
List<ICSHGResult> hgresult = JsonConvert.DeserializeObject<List<ICSHGResult>>(result);
throw new Exception("货柜单据传输接口调用报错,主要报错信息:" + hgresult[0].PrimaryError + ",次要报错信息:" + hgresult[0].SecondaryError + "");
} }
string sb = stringBuilder.ToString().TrimEnd(','); string sb = stringBuilder.ToString().TrimEnd(',');
string sqlString = string.Empty; string sqlString = string.Empty;

Loading…
Cancel
Save