[10:10:37] [Fatal] [yfzWebApi.BLL.BonusService] : 新增业绩异常Microsoft.CSharp.RuntimeBinder.RuntimeBinderException: “yfzWebApi.Models.BonusmasterModel”未包含“bonusmasterModel”的定义 在 CallSite.Target(Closure , CallSite , Object ) 在 System.Dynamic.UpdateDelegates.UpdateAndExecute1[T0,TRet](CallSite site, T0 arg0) 在 CallSite.Target(Closure , CallSite , Object ) 在 yfzWebApi.BLL.BonusService.SaveBonus(Object dy) [17:49:17] [Fatal] [yfzWebApi.Utils.SerializeHelper] : 对象Json({"orderdetailMdoel":{"opertype":1,"operid":105,"remark":""},"PayModels":[{"payname":"王鹏","payamt":"","paytype":4,"operid":99,"paychannel":"渤海9938","currencytype":1,"branchid":18}],"watchesList":[{"ordermasterModel":{"id":1450,"odertype":5,"watchesbrand":"劳力士","watchestype":"126200","watchescode":"3K8G5371","watchesyear":"2022-01-01T00:00:00","orderamt":48000,"branchid":18,"customersource":"2","sellamt":"52000","annex1":"1","isopen":2,"isstore":0,"sellbyrecid":"","recbysellid":"","goodtype":0,"num":0,"material":null,"weight":null,"color":null,"norms":null,"source":null,"remark":"","tokeroperidList":[],"cooperateoperidList":[],"discountamt":"","visitoperid":0,"ispartnership":0},"ImgModels":[{"imgtype":5,"imgurl":"/Uploads/Images/cd465134-931c-4f02-8d60-2ac4fb54135c.jpg","ingname":""},{"imgtype":5,"imgurl":"/Uploads/Images/199170db-cacb-40c2-ba30-232bb8f7c6aa.jpg","ingname":""}],"PayModels":[]}]})反序列化(NewOrderApiModel)失败Newtonsoft.Json.JsonSerializationException: Error converting value {null} to type 'System.Decimal'. Path 'PayModels[0].payamt', line 1, position 100. ---> 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:49:17] [Fatal] [yfzWebApi.BLL.NewOrderService] : 工单提交异常System.NullReferenceException: 未将对象引用设置到对象的实例。 在 yfzWebApi.BLL.NewOrderService.SaveOrderNew(Object dy)