Commit b5d8b648 authored by liudong1993's avatar liudong1993

1

parent 056a0cc8
......@@ -86,6 +86,11 @@ namespace EduSpider.Services
stuUId = StudentRepository.GetEntity(stuId)?.StudentUid ?? 0;
if (stuUId <= 0) { msg = "未查到账号信息"; return ""; }
}
if (stuId <= 0 && stuUId > 0)
{
stuId = AccountRepository.GetAccountList(new rb_account_hk_Extend() { AccountType = Utility.Enum.AccountTypeEnum.Student, AccountId = stuUId })?.FirstOrDefault()?.Id ?? 0;
if (stuId <= 0) { msg = "未查到账号信息2"; return ""; }
}
var stuModel = StudentRepository.GetEntity(stuId);
if (stuModel == null) { msg = "学生信息不存在"; return ""; }
var examModel = ExamRepository.GetEntity(examId);
......@@ -227,6 +232,11 @@ namespace EduSpider.Services
stuUId = StudentRepository.GetEntity(stuId)?.StudentUid ?? 0;
if (stuUId <= 0) { return ""; }
}
if (stuId <= 0 && stuUId > 0)
{
stuId = AccountRepository.GetAccountList(new rb_account_hk_Extend() { AccountType = Utility.Enum.AccountTypeEnum.Student, AccountId = stuUId })?.FirstOrDefault()?.Id ?? 0;
if (stuId <= 0) { return ""; }
}
var stuModel = StudentRepository.GetEntity(stuId);
if (stuModel == null) { return ""; }
var examModel = ExamRepository.GetEntity(examId);
......@@ -790,6 +800,11 @@ namespace EduSpider.Services
stuUId = StudentRepository.GetEntity(stuId)?.StudentUid ?? 0;
if (stuUId <= 0) { msg = "账号不存在"; return ""; }
}
if (stuId <= 0 && stuUId > 0)
{
stuId = AccountRepository.GetAccountList(new rb_account_hk_Extend() { AccountType = Utility.Enum.AccountTypeEnum.Student, AccountId = stuUId })?.FirstOrDefault()?.Id ?? 0;
if (stuId <= 0) { msg = "未查到账号信息2"; return ""; }
}
var stuModel = StudentRepository.GetEntity(stuId);
if (stuModel == null) { msg = "学生信息不存在"; return ""; }
var examModel = ExamRepository.GetEntity(examId);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment