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:
parent
9266080356
commit
06785f7987
@ -102,8 +102,8 @@ namespace VOL.Ai.Services
|
|||||||
train.StartTime,
|
train.StartTime,
|
||||||
train.EndTime,
|
train.EndTime,
|
||||||
train.Score,
|
train.Score,
|
||||||
// QA stores this as float, while production still uses int.
|
// Cast in SQL so int and float columns both materialize as the original int type.
|
||||||
StandardCounts = Convert.ToDouble(train.StandardCounts),
|
StandardCounts = Convert.ToInt32(Convert.ToDouble(train.StandardCounts)),
|
||||||
train.UnStandardCounts,
|
train.UnStandardCounts,
|
||||||
train.TimeKeeping,
|
train.TimeKeeping,
|
||||||
train.Duration,
|
train.Duration,
|
||||||
|
|||||||
@ -72,7 +72,7 @@ namespace VOL.Entity.DomainModels.YiLu
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// 有效个数
|
/// 有效个数
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public double StandardCounts { get; set; }
|
public int StandardCounts { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 不合格动作数
|
/// 不合格动作数
|
||||||
|
|||||||
@ -42,7 +42,7 @@ namespace VOL.Model.Ai.Response
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public double? Score { get; set; }
|
public double? Score { get; set; }
|
||||||
|
|
||||||
public double StandardCounts { get; set; }
|
public int StandardCounts { get; set; }
|
||||||
|
|
||||||
public int UnStandardCounts { get; set; }
|
public int UnStandardCounts { get; set; }
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user