fix: 恢复壹路运动站有效次数原始类型

将 YL_Train.StandardCounts 和 AiSportsStationDto.StandardCounts 从 double 恢复为 int,与原始实体定义及迁移快照保持一致。

列表查询保留显式数值转换,以适配测试库 float 和生产库 int 的列类型差异;不修改数据库表结构或数据。

验证:dotnet build VOL.WebApi/VOL.WebApi.csproj --no-restore -c Release 成功;git diff --cached --check 通过。
This commit is contained in:
ltx 2026-10-22 11:32:30 +08:00
parent 9266080356
commit 06785f7987
3 changed files with 4 additions and 4 deletions

View File

@ -102,8 +102,8 @@ namespace VOL.Ai.Services
train.StartTime,
train.EndTime,
train.Score,
// QA stores this as float, while production still uses int.
StandardCounts = Convert.ToDouble(train.StandardCounts),
// Cast in SQL so int and float columns both materialize as the original int type.
StandardCounts = Convert.ToInt32(Convert.ToDouble(train.StandardCounts)),
train.UnStandardCounts,
train.TimeKeeping,
train.Duration,

View File

@ -72,7 +72,7 @@ namespace VOL.Entity.DomainModels.YiLu
/// <summary>
/// 有效个数
/// </summary>
public double StandardCounts { get; set; }
public int StandardCounts { get; set; }
/// <summary>
/// 不合格动作数

View File

@ -42,7 +42,7 @@ namespace VOL.Model.Ai.Response
/// </summary>
public double? Score { get; set; }
public double StandardCounts { get; set; }
public int StandardCounts { get; set; }
public int UnStandardCounts { get; set; }