quchong
This commit is contained in:
parent
cfd469cb79
commit
197948e290
@ -198,8 +198,12 @@ namespace YD_YiLu.Api.Services.Impl
|
|||||||
var item = normalized.Item;
|
var item = normalized.Item;
|
||||||
|
|
||||||
// 👉 3. 唯一校验(跳过已存在)
|
// 👉 3. 唯一校验(跳过已存在)
|
||||||
//if (!seenSerials.Add(normalized.TrainSerial))
|
if (!seenSerials.Add(normalized.TrainSerial))
|
||||||
// continue;
|
continue;
|
||||||
|
|
||||||
|
var score = CalculateScore(item);
|
||||||
|
if (!score.HasValue || score.Value <= 0)
|
||||||
|
continue;
|
||||||
|
|
||||||
var entity = new YL_Train
|
var entity = new YL_Train
|
||||||
{
|
{
|
||||||
@ -226,7 +230,7 @@ namespace YD_YiLu.Api.Services.Impl
|
|||||||
EndTime = Util.ParseDateTime(item.EndTime),
|
EndTime = Util.ParseDateTime(item.EndTime),
|
||||||
|
|
||||||
// 👉 成绩计算(建议统一规则)
|
// 👉 成绩计算(建议统一规则)
|
||||||
Score = CalculateScore(item),
|
Score = score,
|
||||||
|
|
||||||
IsValid = 1, // 默认有效
|
IsValid = 1, // 默认有效
|
||||||
UploadTime = DateTime.Now,
|
UploadTime = DateTime.Now,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user