diff --git a/VOL.Ai/Services/AiSportsStationService.cs b/VOL.Ai/Services/AiSportsStationService.cs index 9b03ab8..fb64b74 100644 --- a/VOL.Ai/Services/AiSportsStationService.cs +++ b/VOL.Ai/Services/AiSportsStationService.cs @@ -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, diff --git a/VOL.Entity/DomainModels/YiLu/YL_Train.cs b/VOL.Entity/DomainModels/YiLu/YL_Train.cs index 872bffe..a4c5f1a 100644 --- a/VOL.Entity/DomainModels/YiLu/YL_Train.cs +++ b/VOL.Entity/DomainModels/YiLu/YL_Train.cs @@ -72,7 +72,7 @@ namespace VOL.Entity.DomainModels.YiLu /// /// 有效个数 /// - public double StandardCounts { get; set; } + public int StandardCounts { get; set; } /// /// 不合格动作数 diff --git a/VOL.Model/Ai/Response/AiSportsStationDto.cs b/VOL.Model/Ai/Response/AiSportsStationDto.cs index bd37f8b..950b85c 100644 --- a/VOL.Model/Ai/Response/AiSportsStationDto.cs +++ b/VOL.Model/Ai/Response/AiSportsStationDto.cs @@ -42,7 +42,7 @@ namespace VOL.Model.Ai.Response /// public double? Score { get; set; } - public double StandardCounts { get; set; } + public int StandardCounts { get; set; } public int UnStandardCounts { get; set; }