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
8ab930c1
Commit
8ab930c1
authored
Apr 11, 2022
by
liudong1993
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://gitlab.oytour.com/Kui2/education
parents
3e37de14
44fe56a3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
4 deletions
+3
-4
TeacherStaticModule.cs
Edu.Module.User/TeacherStaticModule.cs
+2
-3
TeacherStaticController.cs
Edu.WebApi/Controllers/User/TeacherStaticController.cs
+1
-1
No files found.
Edu.Module.User/TeacherStaticModule.cs
View file @
8ab930c1
...
...
@@ -488,12 +488,10 @@ namespace Edu.Module.User
query
.
QTeacherIds
=
""
;
}
teacherList
=
teacherList
.
Where
(
qitem
=>
qitem
.
AccountId
!=
5
&&
qitem
.
AccountId
!=
10
&&
qitem
.
AccountId
!=
15
&&
qitem
.
AccountId
!=
20
).
ToList
();
List
<
object
>
dataList
=
new
List
<
object
>();
var
list
=
teacher_StaticRepository
.
GetTeacherStaticMonthExtListRepository
(
query
);
if
(
list
!=
null
&&
list
.
Count
>
0
)
{
foreach
(
var
item
in
list
)
{
int
teacherCount
=
1
;
...
...
@@ -502,7 +500,8 @@ namespace Edu.Module.User
if
(
teacherModel
!=
null
)
{
DateStr
=
teacherModel
.
AccountName
;
teacherCount
=
teacherList
.
Where
(
qitem
=>
qitem
.
Dept_Id
==
teacherModel
.
Dept_Id
).
Count
();
string
teacherIds
=
string
.
Join
(
","
,
teacherList
.
Where
(
qitem
=>
qitem
.
Dept_Id
==
teacherModel
.
Dept_Id
).
Select
(
qitem
=>
qitem
.
AccountId
));
teacherCount
=
list
.
Where
(
qitem
=>
qitem
.
TotalScore
>
0
&&
teacherIds
.
Contains
(
item
.
TeacherId
.
ToString
())).
Count
();
}
item
.
TotalScore
=
(
item
.
StudentCount
+
item
.
AttendClassHourScore
+
item
.
OnLineInteractiveScore
+
item
.
RenewScore
+
item
.
UpgradeScore
+
item
.
TransScore
+
item
.
TrialSpeakScore
-
item
.
TruancyScore
-
item
.
WithdrawsScore
-
item
.
ComplaintScore
...
...
Edu.WebApi/Controllers/User/TeacherStaticController.cs
View file @
8ab930c1
...
...
@@ -188,7 +188,7 @@ namespace Edu.WebApi.Controllers.User
{
ExcelRows
=
new
List
<
ExcelColumn
>()
{
new
ExcelColumn
(
"
日期
"
){
CellWidth
=
15
},
new
ExcelColumn
(
"
老师
"
){
CellWidth
=
15
},
new
ExcelColumn
(
"学生人数"
){
CellWidth
=
15
},
new
ExcelColumn
(
"上课时数"
){
CellWidth
=
15
},
new
ExcelColumn
(
"线上与学生互动数"
){
CellWidth
=
10
},
...
...
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