This commit is contained in:
tanglong 2025-07-29 16:53:49 +08:00
parent 5707dd1515
commit bcbe60d1f9

View File

@ -398,7 +398,7 @@ namespace YD_AllHeartRates.Api.Mqtt
var exist = await dbContext.JumpRopeData
.FirstOrDefaultAsync(x => x.StudentNo == data.StudentNo && x.ScoreTime.Date == today);
if (exist != null && exist.JumpValue > 0)
if (exist != null && data.JumpValue > exist.JumpValue)
{
exist.JumpValue = data.JumpValue;
exist.ErrorNumber = data.ErrorNumber;