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
3b94b4f0
Commit
3b94b4f0
authored
Jun 29, 2021
by
吴春
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提交代码
parent
d799607a
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
276 additions
and
33 deletions
+276
-33
ClassModule.cs
Edu.Module.Course/ClassModule.cs
+233
-33
ClassRoomController.cs
Edu.WebApi/Controllers/Course/ClassRoomController.cs
+43
-0
No files found.
Edu.Module.Course/ClassModule.cs
View file @
3b94b4f0
This diff is collapsed.
Click to expand it.
Edu.WebApi/Controllers/Course/ClassRoomController.cs
View file @
3b94b4f0
...
...
@@ -230,6 +230,49 @@ namespace Edu.WebApi.Controllers.Course
/// <summary>
/// 老师上课计划统计
/// </summary>
/// <returns></returns>
public
ApiResult
GetNewClassRoomTimeList
()
{
var
startDate
=
base
.
ParmJObj
.
GetStringValue
(
"StartTime"
);
var
endDate
=
base
.
ParmJObj
.
GetStringValue
(
"EndTime"
);
DateTime
now
=
DateTime
.
Now
;
//获取当前月的第一天
DateTime
d1
=
new
DateTime
(
now
.
Year
,
now
.
Month
,
1
);
//当月最后一天
DateTime
d2
=
d1
.
AddMonths
(
1
).
AddDays
(-
1
);
if
(
string
.
IsNullOrEmpty
(
startDate
))
{
startDate
=
Common
.
ConvertHelper
.
FormatDate
(
d1
);
}
if
(
string
.
IsNullOrEmpty
(
endDate
))
{
endDate
=
Common
.
ConvertHelper
.
FormatDate
(
d2
);
}
else
{
}
RB_Class_Plan_ViewModel
query
=
new
RB_Class_Plan_ViewModel
()
{
StartTime
=
startDate
,
EndTime
=
endDate
,
TeacherId
=
base
.
ParmJObj
.
GetInt
(
"TeacherId"
),
ClassRoomId
=
base
.
ParmJObj
.
GetInt
(
"ClassRoomId"
),
Group_Id
=
base
.
UserInfo
.
Group_Id
,
ClassId
=
base
.
ParmJObj
.
GetInt
(
"ClassId"
),
};
//课程类型(0-全部,1-正常,2-试听课)
int
ClassType
=
base
.
ParmJObj
.
GetInt
(
"ClassType"
);
var
obj
=
classModule
.
GetClassUseStatisticalModule
(
query
,
ClassType
:
ClassType
);
return
ApiResult
.
Success
(
data
:
obj
);
}
/// <summary>
/// 教室使用记录
/// </summary>
...
...
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