[17:33:05] [Fatal] [yfzWebApi.Utils.SerializeHelper] : 对象Json({"orderdetailMdoel":{"opertype":1,"operid":153,"remark":""},"PayModels":[{"payname":"陶成云","payamt":"42500","paytype":1,"paychannel":"微信","operid":144,"currencytype":1,"branchid":3},{"payname":"陶成云","payamt":"","paytype":1,"paychannel":"支付宝","operid":144,"currencytype":1,"branchid":3}],"watchesList":[{"ordermasterModel":{"odertype":1,"watchesbrand":"芝柏","watchestype":"25800-52-851BA6D","watchescode":"ORN11","orderamt":"42500","branchid":3,"customersource":"1","sellamt":null,"annex1":"5","isopen":2,"isstore":0,"sellbyrecid":"","recbysellid":"","goodtype":0,"num":0,"material":"","weight":"","color":"","norms":"","source":"","remark":"","tokeroperidList":[],"cooperateoperidList":[],"discountamt":"","visitoperid":0,"ispartnership":0},"ImgModels":[{"imgtype":20,"imgurl":"/Uploads/Images/e19c1a91-8aed-4239-b07d-48894ac02b18.jpg","ingname":""},{"imgtype":1,"imgurl":"/Uploads/Images/68d9aa5c-976a-4229-b337-98d77af28722.jpg","ingname":""},{"imgtype":1,"imgurl":"/Uploads/Images/dff3d2b0-90f7-4ac4-8c5d-2d4a19b5cd53.jpg","ingname":""}],"PayModels":[{"operid":153,"payname":"樊筱倩","payamt":"500","paytype":6,"branchid":3}]}]})反序列化(NewOrderApiModel)失败Newtonsoft.Json.JsonSerializationException: Error converting value {null} to type 'System.Decimal'. Path 'PayModels[1].payamt', line 1, position 209. ---> System.InvalidCastException: 空对象不能转换为值类型。 在 System.Convert.ChangeType(Object value, Type conversionType, IFormatProvider provider) 在 Newtonsoft.Json.Serialization.JsonSerializerInternalReader.EnsureType(JsonReader reader, Object value, CultureInfo culture, JsonContract contract, Type targetType) --- 内部异常堆栈跟踪的结尾 --- 在 Newtonsoft.Json.Serialization.JsonSerializerInternalReader.EnsureType(JsonReader reader, Object value, CultureInfo culture, JsonContract contract, Type targetType) 在 Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateValueInternal(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue) 在 Newtonsoft.Json.Serialization.JsonSerializerInternalReader.SetPropertyValue(JsonProperty property, JsonConverter propertyConverter, JsonContainerContract containerContract, JsonProperty containerProperty, JsonReader reader, Object target) 在 Newtonsoft.Json.Serialization.JsonSerializerInternalReader.PopulateObject(Object newObject, JsonReader reader, JsonObjectContract contract, JsonProperty member, String id) 在 Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateObject(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue) 在 Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateValueInternal(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue) 在 Newtonsoft.Json.Serialization.JsonSerializerInternalReader.PopulateList(IList list, JsonReader reader, JsonArrayContract contract, JsonProperty containerProperty, String id) 在 Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateList(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, Object existingValue, String id) 在 Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateValueInternal(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue) 在 Newtonsoft.Json.Serialization.JsonSerializerInternalReader.SetPropertyValue(JsonProperty property, JsonConverter propertyConverter, JsonContainerContract containerContract, JsonProperty containerProperty, JsonReader reader, Object target) 在 Newtonsoft.Json.Serialization.JsonSerializerInternalReader.PopulateObject(Object newObject, JsonReader reader, JsonObjectContract contract, JsonProperty member, String id) 在 Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateObject(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue) 在 Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateValueInternal(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue) 在 Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize(JsonReader reader, Type objectType, Boolean checkAdditionalContent) 在 Newtonsoft.Json.JsonSerializer.DeserializeInternal(JsonReader reader, Type objectType) 在 Newtonsoft.Json.JsonConvert.DeserializeObject(String value, Type type, JsonSerializerSettings settings) 在 Newtonsoft.Json.JsonConvert.DeserializeObject[T](String value, JsonSerializerSettings settings) 在 Newtonsoft.Json.JsonConvert.DeserializeObject[T](String value) 在 yfzWebApi.Utils.SerializeHelper.JsonDeserialize[T](String json) [17:33:05] [Fatal] [yfzWebApi.BLL.NewOrderService] : 工单提交异常System.NullReferenceException: 未将对象引用设置到对象的实例。 在 yfzWebApi.BLL.NewOrderService.SaveOrderNew(Object dy) [17:33:16] [Fatal] [yfzWebApi.Utils.SerializeHelper] : 对象Json({"orderdetailMdoel":{"opertype":1,"operid":153,"remark":""},"PayModels":[{"payname":"陶成云","payamt":"42500","paytype":1,"paychannel":"微信","operid":144,"currencytype":1,"branchid":3},{"payname":"陶成云","payamt":"","paytype":1,"paychannel":"支付宝","operid":144,"currencytype":1,"branchid":3}],"watchesList":[{"ordermasterModel":{"odertype":1,"watchesbrand":"芝柏","watchestype":"25800-52-851BA6D","watchescode":"ORN11","orderamt":"42500","branchid":3,"customersource":"1","sellamt":null,"annex1":"5","isopen":2,"isstore":0,"sellbyrecid":"","recbysellid":"","goodtype":0,"num":0,"material":"","weight":"","color":"","norms":"","source":"","remark":"","tokeroperidList":[],"cooperateoperidList":[],"discountamt":"","visitoperid":0,"ispartnership":0},"ImgModels":[{"imgtype":20,"imgurl":"/Uploads/Images/e19c1a91-8aed-4239-b07d-48894ac02b18.jpg","ingname":""},{"imgtype":1,"imgurl":"/Uploads/Images/68d9aa5c-976a-4229-b337-98d77af28722.jpg","ingname":""},{"imgtype":1,"imgurl":"/Uploads/Images/dff3d2b0-90f7-4ac4-8c5d-2d4a19b5cd53.jpg","ingname":""}],"PayModels":[{"operid":153,"payname":"樊筱倩","payamt":"500","paytype":6,"branchid":3}]}]})反序列化(NewOrderApiModel)失败Newtonsoft.Json.JsonSerializationException: Error converting value {null} to type 'System.Decimal'. Path 'PayModels[1].payamt', line 1, position 209. ---> System.InvalidCastException: 空对象不能转换为值类型。 在 System.Convert.ChangeType(Object value, Type conversionType, IFormatProvider provider) 在 Newtonsoft.Json.Serialization.JsonSerializerInternalReader.EnsureType(JsonReader reader, Object value, CultureInfo culture, JsonContract contract, Type targetType) --- 内部异常堆栈跟踪的结尾 --- 在 Newtonsoft.Json.Serialization.JsonSerializerInternalReader.EnsureType(JsonReader reader, Object value, CultureInfo culture, JsonContract contract, Type targetType) 在 Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateValueInternal(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue) 在 Newtonsoft.Json.Serialization.JsonSerializerInternalReader.SetPropertyValue(JsonProperty property, JsonConverter propertyConverter, JsonContainerContract containerContract, JsonProperty containerProperty, JsonReader reader, Object target) 在 Newtonsoft.Json.Serialization.JsonSerializerInternalReader.PopulateObject(Object newObject, JsonReader reader, JsonObjectContract contract, JsonProperty member, String id) 在 Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateObject(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue) 在 Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateValueInternal(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue) 在 Newtonsoft.Json.Serialization.JsonSerializerInternalReader.PopulateList(IList list, JsonReader reader, JsonArrayContract contract, JsonProperty containerProperty, String id) 在 Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateList(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, Object existingValue, String id) 在 Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateValueInternal(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue) 在 Newtonsoft.Json.Serialization.JsonSerializerInternalReader.SetPropertyValue(JsonProperty property, JsonConverter propertyConverter, JsonContainerContract containerContract, JsonProperty containerProperty, JsonReader reader, Object target) 在 Newtonsoft.Json.Serialization.JsonSerializerInternalReader.PopulateObject(Object newObject, JsonReader reader, JsonObjectContract contract, JsonProperty member, String id) 在 Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateObject(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue) 在 Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateValueInternal(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue) 在 Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize(JsonReader reader, Type objectType, Boolean checkAdditionalContent) 在 Newtonsoft.Json.JsonSerializer.DeserializeInternal(JsonReader reader, Type objectType) 在 Newtonsoft.Json.JsonConvert.DeserializeObject(String value, Type type, JsonSerializerSettings settings) 在 Newtonsoft.Json.JsonConvert.DeserializeObject[T](String value, JsonSerializerSettings settings) 在 Newtonsoft.Json.JsonConvert.DeserializeObject[T](String value) 在 yfzWebApi.Utils.SerializeHelper.JsonDeserialize[T](String json) [17:33:16] [Fatal] [yfzWebApi.BLL.NewOrderService] : 工单提交异常System.NullReferenceException: 未将对象引用设置到对象的实例。 在 yfzWebApi.BLL.NewOrderService.SaveOrderNew(Object dy)