Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
EduSpider
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
viitto
EduSpider
Commits
b5d8b648
Commit
b5d8b648
authored
Nov 23, 2022
by
liudong1993
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
056a0cc8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
0 deletions
+15
-0
ExamService.cs
EduSpider.Services/ExamService.cs
+15
-0
No files found.
EduSpider.Services/ExamService.cs
View file @
b5d8b648
...
...
@@ -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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment