Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
Education
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
黄奎
Education
Commits
4da1811e
Commit
4da1811e
authored
May 10, 2022
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
e8889ae9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
10 deletions
+3
-10
TeacherStaticModule.cs
Edu.Module.User/TeacherStaticModule.cs
+2
-9
TeacherStaticController.cs
Edu.WebApi/Controllers/User/TeacherStaticController.cs
+1
-1
No files found.
Edu.Module.User/TeacherStaticModule.cs
View file @
4da1811e
...
@@ -412,8 +412,7 @@ namespace Edu.Module.User
...
@@ -412,8 +412,7 @@ namespace Edu.Module.User
index
++;
index
++;
}
}
item
.
OnLineInteractive
=
GetTeacherAndStudentScore
(
item
.
FinishFollow
,
item
.
TotalFollow
);
item
.
OnLineInteractiveScore
=
GetTeacherAndStudentScore
(
item
.
FinishFollow
,
item
.
TotalFollow
);
item
.
OnLineInteractiveScore
=
item
.
OnLineInteractive
;
//+ item.AttendClassHourScore
//+ item.AttendClassHourScore
item
.
TotalScore
=
(
item
.
StudentCount
+
item
.
RenewScore
item
.
TotalScore
=
(
item
.
StudentCount
+
item
.
RenewScore
+
item
.
UpgradeScore
+
item
.
TransScore
+
item
.
TrialSpeakScore
-
item
.
TruancyScore
-
item
.
WithdrawsScore
-
item
.
ComplaintScore
+
item
.
UpgradeScore
+
item
.
TransScore
+
item
.
TrialSpeakScore
-
item
.
TruancyScore
-
item
.
WithdrawsScore
-
item
.
ComplaintScore
...
@@ -586,13 +585,9 @@ namespace Edu.Module.User
...
@@ -586,13 +585,9 @@ namespace Edu.Module.User
{
{
foreach
(
var
item
in
list
)
foreach
(
var
item
in
list
)
{
{
var
tempAssessment
=
teacherAssessmentList
?.
Where
(
qitem
=>
qitem
.
TeacherId
==
item
.
TeacherId
)?.
FirstOrDefault
();
var
tempAssessment
=
teacherAssessmentList
?.
Where
(
qitem
=>
qitem
.
TeacherId
==
item
.
TeacherId
)?.
FirstOrDefault
();
item
.
AssessmentScore
=
tempAssessment
?.
TotalScore
??
0
;
item
.
AssessmentScore
=
tempAssessment
?.
TotalScore
??
0
;
item
.
OnLineInteractive
=
0
;
item
.
OnLineInteractiveScore
=
GetTeacherAndStudentScore
(
item
.
FinishFollow
,
item
.
TotalFollow
);
item
.
OnLineInteractive
=
GetTeacherAndStudentScore
(
item
.
FinishFollow
,
item
.
TotalFollow
);
item
.
OnLineInteractiveScore
=
item
.
OnLineInteractive
;
//+ item.AttendClassHourScore
item
.
TotalScore
=
(
item
.
StudentCount
+
item
.
RenewScore
item
.
TotalScore
=
(
item
.
StudentCount
+
item
.
RenewScore
+
item
.
UpgradeScore
+
item
.
TransScore
+
item
.
TrialSpeakScore
-
item
.
TruancyScore
-
item
.
WithdrawsScore
-
item
.
ComplaintScore
+
item
.
UpgradeScore
+
item
.
TransScore
+
item
.
TrialSpeakScore
-
item
.
TruancyScore
-
item
.
WithdrawsScore
-
item
.
ComplaintScore
-
item
.
TeacherBeLateScore
+
item
.
MiniAppPractiseScore
+
item
.
MiniAppTimeScore
-
item
.
TeacherBeLateScore
+
item
.
MiniAppPractiseScore
+
item
.
MiniAppTimeScore
...
@@ -601,10 +596,8 @@ namespace Edu.Module.User
...
@@ -601,10 +596,8 @@ namespace Edu.Module.User
+
item
.
SpeakClassScore
+
item
.
SpeakVipScore
*
2
-
item
.
SpeakFailScore
+
item
.
GradeTestScore
+
item
.
SpeakClassScore
+
item
.
SpeakVipScore
*
2
-
item
.
SpeakFailScore
+
item
.
GradeTestScore
);
);
}
}
foreach
(
var
item
in
list
)
foreach
(
var
item
in
list
)
{
{
var
tempAssessment
=
teacherAssessmentList
?.
Where
(
qitem
=>
qitem
.
TeacherId
==
item
.
TeacherId
)?.
FirstOrDefault
();
var
tempAssessment
=
teacherAssessmentList
?.
Where
(
qitem
=>
qitem
.
TeacherId
==
item
.
TeacherId
)?.
FirstOrDefault
();
int
teacherCount
=
1
;
int
teacherCount
=
1
;
var
teacherModel
=
teacherList
.
FirstOrDefault
(
qitem
=>
qitem
.
AccountId
==
item
.
TeacherId
);
var
teacherModel
=
teacherList
.
FirstOrDefault
(
qitem
=>
qitem
.
AccountId
==
item
.
TeacherId
);
...
...
Edu.WebApi/Controllers/User/TeacherStaticController.cs
View file @
4da1811e
...
@@ -650,7 +650,7 @@ namespace Edu.WebApi.Controllers.User
...
@@ -650,7 +650,7 @@ namespace Edu.WebApi.Controllers.User
{
{
StartTime
=
Common
.
ConvertHelper
.
FormatDate
(
DateTime
.
Now
);
StartTime
=
Common
.
ConvertHelper
.
FormatDate
(
DateTime
.
Now
);
}
}
StartTime
=
"202
1-12
-21"
;
StartTime
=
"202
2-04
-21"
;
string
EndTime
=
Common
.
ConvertHelper
.
FormatDate
(
DateTime
.
Now
);
string
EndTime
=
Common
.
ConvertHelper
.
FormatDate
(
DateTime
.
Now
);
Task
.
Run
(()
=>
Task
.
Run
(()
=>
{
{
...
...
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