dd
This commit is contained in:
parent
5707dd1515
commit
bcbe60d1f9
@ -398,7 +398,7 @@ namespace YD_AllHeartRates.Api.Mqtt
|
|||||||
var exist = await dbContext.JumpRopeData
|
var exist = await dbContext.JumpRopeData
|
||||||
.FirstOrDefaultAsync(x => x.StudentNo == data.StudentNo && x.ScoreTime.Date == today);
|
.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.JumpValue = data.JumpValue;
|
||||||
exist.ErrorNumber = data.ErrorNumber;
|
exist.ErrorNumber = data.ErrorNumber;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user