[09:44:01] [Fatal] [yfzWebApi.Utils.SerializeHelper] : 对象Json({"watchesbrand":"百达","watchesyear":"2025","operid":3,"branchid":0})反序列化(OrdermasterModel)失败Newtonsoft.Json.JsonReaderException: Could not convert string to DateTime: 2025. Path 'watchesyear', line 1, position 41. 在 Newtonsoft.Json.JsonReader.ReadDateTimeString(String s) 在 Newtonsoft.Json.JsonTextReader.FinishReadQuotedStringValue(ReadType readType) 在 Newtonsoft.Json.JsonTextReader.ReadStringValue(ReadType readType) 在 Newtonsoft.Json.JsonTextReader.ReadAsDateTime() 在 Newtonsoft.Json.JsonReader.ReadForType(JsonContract contract, Boolean hasConverter) 在 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) [09:44:01] [Fatal] [yfzWebApi.Attribute.GlobalExceptionFilter] : 服务器内部异常System.NullReferenceException: 未将对象引用设置到对象的实例。 在 yfzWebApi.BLL.OrderService.GetOrderModelPage(Object dy, Int32& totalCount, Boolean isPage) 在 CallSite.Target(Closure , CallSite , OrderService , Object , Int32& ) 在 yfzWebApi.Controllers.OrderController.GetOrderPage(Object dy) 在 lambda_method(Closure , Object , Object[] ) 在 System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ActionExecutor.<>c__DisplayClass6_2.b__2(Object instance, Object[] methodParameters) 在 System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ActionExecutor.Execute(Object instance, Object[] arguments) 在 System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ExecuteAsync(HttpControllerContext controllerContext, IDictionary`2 arguments, CancellationToken cancellationToken) --- 引发异常的上一位置中堆栈跟踪的末尾 --- 在 System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) 在 System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) 在 System.Web.Http.Controllers.ApiControllerActionInvoker.d__1.MoveNext() --- 引发异常的上一位置中堆栈跟踪的末尾 --- 在 System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) 在 System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) 在 System.Web.Http.Filters.ActionFilterAttribute.d__6.MoveNext() --- 引发异常的上一位置中堆栈跟踪的末尾 --- 在 System.Web.Http.Filters.ActionFilterAttribute.d__6.MoveNext() --- 引发异常的上一位置中堆栈跟踪的末尾 --- 在 System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) 在 System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) 在 System.Web.Http.Filters.ActionFilterAttribute.d__5.MoveNext() --- 引发异常的上一位置中堆栈跟踪的末尾 --- 在 System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) 在 System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) 在 System.Web.Http.Controllers.ActionFilterResult.d__5.MoveNext() --- 引发异常的上一位置中堆栈跟踪的末尾 --- 在 System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) 在 System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) 在 System.Web.Http.Controllers.ExceptionFilterResult.d__6.MoveNext() [17:16:00] [Fatal] [yfzWebApi.Utils.SerializeHelper] : 对象Json({"orderdetailMdoel":{"opertype":1,"operid":154,"remark":""},"PayModels":[{"payname":"陶成云","payamt":"","paytype":4,"operid":144,"paychannel":"农行0271","currencytype":1,"branchid":3}],"watchesList":[{"ordermasterModel":{"id":1634,"odertype":5,"watchesbrand":"爱彼","watchestype":"15550ST","watchescode":"XX8441U","watchesyear":"2022-01-01T00:00:00","orderamt":253000,"branchid":3,"customersource":"2","sellamt":"286000","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/0073005f-fb52-40ce-af6c-f791888fd2c6.jpg","ingname":""},{"imgtype":5,"imgurl":"/Uploads/Images/cae0e506-59cb-491a-b08d-8105ee68eef4.jpg","ingname":""}],"PayModels":[]}]})反序列化(NewOrderApiModel)失败Newtonsoft.Json.JsonSerializationException: Error converting value {null} to type 'System.Decimal'. Path 'PayModels[0].payamt', line 1, position 101. ---> 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:16:00] [Fatal] [yfzWebApi.BLL.NewOrderService] : 工单提交异常System.NullReferenceException: 未将对象引用设置到对象的实例。 在 yfzWebApi.BLL.NewOrderService.SaveOrderNew(Object dy)