This commit is contained in:
tanglong 2025-07-18 16:17:46 +08:00
parent e01ee775ef
commit 4c94f0318f
8 changed files with 4 additions and 4 deletions

View File

@ -188,8 +188,8 @@ namespace YD_AllHeartRates.Api.Services.Impl
{ {
var student = await _sportsContext.Student.Where(x => x.StudentNo == dto.StudentNo).FirstOrDefaultAsync(); var student = await _sportsContext.Student.Where(x => x.StudentNo == dto.StudentNo).FirstOrDefaultAsync();
if (student != null) if (student == null)
throw new Exception($"学号:{dto.StudentNo}的学生存在!"); throw new Exception($"学号:{dto.StudentNo}的学生存在!");
} }
device.StudentNo = dto.StudentNo; device.StudentNo = dto.StudentNo;

View File

@ -14,7 +14,7 @@ using System.Reflection;
[assembly: System.Reflection.AssemblyCompanyAttribute("YD_AllHeartRates.Api")] [assembly: System.Reflection.AssemblyCompanyAttribute("YD_AllHeartRates.Api")]
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")] [assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")] [assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+3541983c97ddb8048831fcd1dc06e256f56e15af")] [assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+e01ee775ef92809f327583b4c25bb687370d4e17")]
[assembly: System.Reflection.AssemblyProductAttribute("YD_AllHeartRates.Api")] [assembly: System.Reflection.AssemblyProductAttribute("YD_AllHeartRates.Api")]
[assembly: System.Reflection.AssemblyTitleAttribute("YD_AllHeartRates.Api")] [assembly: System.Reflection.AssemblyTitleAttribute("YD_AllHeartRates.Api")]
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")] [assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]

View File

@ -1 +1 @@
c60887e9acfaf3a9d98cfcdcd99dfde547625c531ec4383cdf9465334cd7982e aa15a527b01bb34e7004da74dc4c876914e6325b6f967a67d4d425d617ff6b50