| | |
| | | private int SaveDeliveryNoticeDetail(dynamic responseJson,string deliveryNo) |
| | | { |
| | | var result = 1; |
| | | List<DeliveryNoticeDetail> noticeList = JsonConvert.DeserializeObject<List<DeliveryNoticeDetail>>(responseJson.data.lineList.ToString()); |
| | | // 转换purchaseDesc对象为字符串 |
| | | var jsonData = JArray.Parse(responseJson.data.lineList.ToString()); |
| | | foreach (var item in jsonData) |
| | | { |
| | | item["purchaseDesc"] = item["purchaseDesc"]?.ToString(Formatting.None); |
| | | } |
| | | |
| | | List<DeliveryNoticeDetail> noticeList = jsonData.ToObject<List<DeliveryNoticeDetail>>(); |
| | | |
| | | // 新增列表空值检查 |
| | | if (noticeList == null || !noticeList.Any() || noticeList.Count < 1) |