This commit is contained in:
tanglong 2025-07-29 16:52:39 +08:00
parent 773a169ab6
commit 5707dd1515

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)
if (exist != null && exist.JumpValue > 0)
{
exist.JumpValue = data.JumpValue;
exist.ErrorNumber = data.ErrorNumber;