提交
This commit is contained in:
parent
18ba6640a2
commit
24d9cd854d
@ -147,10 +147,10 @@ namespace VOL.Ai.Services
|
||||
//if (res == null)
|
||||
// return new Ai_SchoolDto();
|
||||
|
||||
var res = new Ai_SchoolDto();
|
||||
|
||||
var schoolCode = paramDto.Code;
|
||||
|
||||
|
||||
|
||||
// =========================
|
||||
// 2️⃣ 调用京师接口获取学校年级班级
|
||||
// =========================
|
||||
@ -159,6 +159,15 @@ namespace VOL.Ai.Services
|
||||
if (schoolClass?.Grades == null || !schoolClass.Grades.Any())
|
||||
throw new Exception("获取京师年级班级失败!");
|
||||
|
||||
var res = new Ai_SchoolDto()
|
||||
{
|
||||
SchoolCode = schoolCode,
|
||||
Name = schoolClass.SchoolName,
|
||||
Type = 1,
|
||||
Province = "",
|
||||
City = ""
|
||||
};
|
||||
|
||||
var gradeDtos = schoolClass.Grades;
|
||||
|
||||
// =========================
|
||||
@ -1615,6 +1624,7 @@ namespace VOL.Ai.Services
|
||||
Id = (int)tId,
|
||||
TeacherName = teacher.TeacherName,
|
||||
Phone = teacher.TeacherNo,
|
||||
//Photo = teacher.TeacherNo,
|
||||
GradeAndClassList = dbGrades
|
||||
.SelectMany(g => g.Classes)
|
||||
.Select(c => new Classes
|
||||
@ -1629,7 +1639,7 @@ namespace VOL.Ai.Services
|
||||
// 7️⃣ 删除扫码记录
|
||||
// =========================
|
||||
_scanCodeLoginRepository.Delete(loginInfo);
|
||||
await _scanCodeLoginRepository.SaveChangesAsync();
|
||||
//await _scanCodeLoginRepository.SaveChangesAsync();
|
||||
|
||||
return res;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user