s
This commit is contained in:
parent
e01ee775ef
commit
4c94f0318f
@ -188,8 +188,8 @@ namespace YD_AllHeartRates.Api.Services.Impl
|
||||
{
|
||||
var student = await _sportsContext.Student.Where(x => x.StudentNo == dto.StudentNo).FirstOrDefaultAsync();
|
||||
|
||||
if (student != null)
|
||||
throw new Exception($"学号:{dto.StudentNo}的学生已存在!");
|
||||
if (student == null)
|
||||
throw new Exception($"学号:{dto.StudentNo}的学生不存在!");
|
||||
}
|
||||
|
||||
device.StudentNo = dto.StudentNo;
|
||||
|
@ -14,7 +14,7 @@ using System.Reflection;
|
||||
[assembly: System.Reflection.AssemblyCompanyAttribute("YD_AllHeartRates.Api")]
|
||||
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
|
||||
[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.AssemblyTitleAttribute("YD_AllHeartRates.Api")]
|
||||
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
|
||||
|
@ -1 +1 @@
|
||||
c60887e9acfaf3a9d98cfcdcd99dfde547625c531ec4383cdf9465334cd7982e
|
||||
aa15a527b01bb34e7004da74dc4c876914e6325b6f967a67d4d425d617ff6b50
|
||||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user