diff --git a/YD_YiLu/Controllers/DeviceSyncController.cs b/YD_YiLu/Controllers/DeviceSyncController.cs index 2b1bddc..e99c023 100644 --- a/YD_YiLu/Controllers/DeviceSyncController.cs +++ b/YD_YiLu/Controllers/DeviceSyncController.cs @@ -166,6 +166,18 @@ namespace YD_YiLu.Api.Controllers [Route("/device/sync/grade/my_record")] public async Task MyRecord([FromBody] DeviceSyncMyRecordRequestDto dto) { + /* + * fail: Microsoft.EntityFrameworkCore.Query[10100] + An exception occurred while iterating over the results of a query for context type 'YD_YiLu.Api.Context.SmartSportsContext'. + System.InvalidCastException: Unable to cast object of type 'System.Int32' to type 'System.Double'. + at Microsoft.Data.SqlClient.SqlBuffer.get_Double() + at lambda_method804(Closure , QueryContext , DbDataReader , ResultContext , SingleQueryResultCoordinator ) + at Microsoft.EntityFrameworkCore.Query.Internal.SingleQueryingEnumerable`1.AsyncEnumerator.MoveNextAsync() + System.InvalidCastException: Unable to cast object of type 'System.Int32' to type 'System.Double'. + at Microsoft.Data.SqlClient.SqlBuffer.get_Double() + at lambda_method804(Closure , QueryContext , DbDataReader , ResultContext , SingleQueryResultCoordinator ) + at Microsoft.EntityFrameworkCore.Query.Internal.SingleQueryingEnumerable`1.AsyncEnumerator.MoveNextAsync() + */ var res = await _deviceSyncService.MyRecordAsync(dto); return res; }