Browse Source

上传货柜报错修改

master
yangtm 1 week ago
parent
commit
092c7a4ea9
  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
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 sqlString = string.Empty;

Loading…
Cancel
Save