年级id
This commit is contained in:
parent
3661747123
commit
10993a8e04
@ -274,22 +274,22 @@ namespace VOL.Business.Services.SportsHall
|
|||||||
|
|
||||||
// 为每个学生添加多条体测数据
|
// 为每个学生添加多条体测数据
|
||||||
if (data.BMIValue > 0)
|
if (data.BMIValue > 0)
|
||||||
entityList.Add(await AddSportsHallEnumStudentsTestData(data, SportsTestItemType.BMI, student, timeNow));
|
entityList.Add(await AddSportsHallEnumStudentsTestData(data, SportsTestItemType.BMI, student, data.GradeId, timeNow));
|
||||||
|
|
||||||
if (data.Sit_And_ReachValue > 0)
|
if (data.Sit_And_ReachValue > 0)
|
||||||
entityList.Add(await AddSportsHallEnumStudentsTestData(data, SportsTestItemType.Sit_And_Reach, student, timeNow));
|
entityList.Add(await AddSportsHallEnumStudentsTestData(data, SportsTestItemType.Sit_And_Reach, student, data.GradeId, timeNow));
|
||||||
|
|
||||||
if (data.VitalCapacityValue > 0)
|
if (data.VitalCapacityValue > 0)
|
||||||
entityList.Add(await AddSportsHallEnumStudentsTestData(data, SportsTestItemType.VitalCapacity, student, timeNow));
|
entityList.Add(await AddSportsHallEnumStudentsTestData(data, SportsTestItemType.VitalCapacity, student, data.GradeId, timeNow));
|
||||||
|
|
||||||
if (data.OneMinuteJumpRopeValue > 0)
|
if (data.OneMinuteJumpRopeValue > 0)
|
||||||
entityList.Add(await AddSportsHallEnumStudentsTestData(data, SportsTestItemType.OneMinuteJumpRope, student, timeNow));
|
entityList.Add(await AddSportsHallEnumStudentsTestData(data, SportsTestItemType.OneMinuteJumpRope, student, data.GradeId, timeNow));
|
||||||
|
|
||||||
if (data.One_Minute_Sit_UpValue > 0)
|
if (data.One_Minute_Sit_UpValue > 0)
|
||||||
entityList.Add(await AddSportsHallEnumStudentsTestData(data, SportsTestItemType.One_Minute_Sit_Up, student, timeNow));
|
entityList.Add(await AddSportsHallEnumStudentsTestData(data, SportsTestItemType.One_Minute_Sit_Up, student, data.GradeId, timeNow));
|
||||||
|
|
||||||
if (data.StandingLongJumpValue > 0)
|
if (data.StandingLongJumpValue > 0)
|
||||||
entityList.Add(await AddSportsHallEnumStudentsTestData(data, SportsTestItemType.StandingLongJump, student, timeNow));
|
entityList.Add(await AddSportsHallEnumStudentsTestData(data, SportsTestItemType.StandingLongJump, student, data.GradeId, timeNow));
|
||||||
}
|
}
|
||||||
|
|
||||||
// 批量添加数据
|
// 批量添加数据
|
||||||
@ -299,7 +299,7 @@ namespace VOL.Business.Services.SportsHall
|
|||||||
await _sportsTestResultRepository.SaveChangesAsync();
|
await _sportsTestResultRepository.SaveChangesAsync();
|
||||||
}
|
}
|
||||||
|
|
||||||
public async Task<N_SportsTestValue> AddSportsHallEnumStudentsTestData(SportsHallImportStudentsTestDataParam data, SportsTestItemType type, dynamic student, DateTime timeNow)
|
public async Task<N_SportsTestValue> AddSportsHallEnumStudentsTestData(SportsHallImportStudentsTestDataParam data, SportsTestItemType type, dynamic student, int gradeId, DateTime timeNow)
|
||||||
{
|
{
|
||||||
var entity = new N_SportsTestValue
|
var entity = new N_SportsTestValue
|
||||||
{
|
{
|
||||||
@ -320,7 +320,6 @@ namespace VOL.Business.Services.SportsHall
|
|||||||
IsDisplay = false
|
IsDisplay = false
|
||||||
};
|
};
|
||||||
|
|
||||||
int gradeId = student.GradeId;
|
|
||||||
SexType sexType = student.Sex;
|
SexType sexType = student.Sex;
|
||||||
|
|
||||||
string sex = sexType == SexType.Male ? "男" : "女";
|
string sex = sexType == SexType.Male ? "男" : "女";
|
||||||
@ -505,7 +504,7 @@ namespace VOL.Business.Services.SportsHall
|
|||||||
StudentName = g.Key.StudentName,
|
StudentName = g.Key.StudentName,
|
||||||
SexName = g.Key.Sex.GetDescription(),
|
SexName = g.Key.Sex.GetDescription(),
|
||||||
|
|
||||||
GradeAndClass = g.Key.GradeName + "_" + g.Key.ClassName,
|
GradeAndClass = g.Key.GradeName + " " + g.Key.ClassName,
|
||||||
|
|
||||||
ScoreTime = g.Key.ScoreTime,
|
ScoreTime = g.Key.ScoreTime,
|
||||||
IsDisplay = g.Key.IsDisplay,
|
IsDisplay = g.Key.IsDisplay,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user