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
ed9a3bf6
Commit
ed9a3bf6
authored
Jul 01, 2022
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
60062f9c
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
3 deletions
+7
-3
PlanAppoimentModule.cs
Edu.Module.Course/PlanAppoimentModule.cs
+2
-2
LeaveStudentController.cs
Edu.WebApi/Controllers/Applet/LeaveStudentController.cs
+4
-0
TimedTaskServices.cs
Edu.WebApi/Timers/TimedTaskServices.cs
+1
-1
No files found.
Edu.Module.Course/PlanAppoimentModule.cs
View file @
ed9a3bf6
...
...
@@ -162,7 +162,7 @@ namespace Edu.Module.Course
var
oldModel
=
GetPlanAppointmentListModule
(
new
RB_Plan_Appointment_ViewModel
()
{
QDate
=
Common
.
ConvertHelper
.
FormatDate
(
model
.
Date
),
})?.
Where
(
qitem
=>
qitem
.
StartTime
==
qitem
.
StartTime
&&
qitem
.
EndTime
==
qitem
.
EndTime
)?.
FirstOrDefault
();
})?.
Where
(
qitem
=>
qitem
.
StartTime
==
model
.
StartTime
&&
qitem
.
EndTime
==
model
.
EndTime
)?.
FirstOrDefault
();
model
.
Id
=
oldModel
?.
Id
??
0
;
if
(
model
.
Id
>
0
)
{
...
...
@@ -239,7 +239,7 @@ namespace Edu.Module.Course
var
dataList
=
GetPlanAppointmentStatic
(
query
);
if
(
dataList
!=
null
&&
dataList
.
Count
>
0
)
{
var
dayList
=
dataList
.
GroupBy
(
qitem
=>
new
{
qitem
.
Date
}).
Select
(
qitem
=>
new
{
qitem
.
Key
.
Date
});
var
dayList
=
dataList
.
GroupBy
(
qitem
=>
new
{
qitem
.
Date
}).
Select
(
qitem
=>
new
{
qitem
.
Key
.
Date
})
.
OrderBy
(
qitem
=>
qitem
.
Date
)
;
foreach
(
var
item
in
dayList
)
{
var
tempDataList
=
dataList
?.
Where
(
qitem
=>
Common
.
ConvertHelper
.
FormatDate
(
qitem
.
Date
)
==
Common
.
ConvertHelper
.
FormatDate
(
item
.
Date
)
&&
qitem
.
Status
==
0
)?.
ToList
();
...
...
Edu.WebApi/Controllers/Applet/LeaveStudentController.cs
View file @
ed9a3bf6
...
...
@@ -104,6 +104,7 @@ namespace Edu.WebApi.Controllers.Applet
/// </summary>
/// <returns></returns>
[
HttpPost
]
[
AllowRepeat
]
public
ApiResult
GetPlanTime
()
{
var
model
=
planAppoiment
.
GetPlanAppointmentConfigModule
(
new
RB_Dictvalue_Extend
()
...
...
@@ -167,6 +168,7 @@ namespace Edu.WebApi.Controllers.Applet
/// </summary>
/// <returns></returns>
[
HttpPost
]
[
AllowRepeat
]
public
ApiResult
SetPlanAppointment
()
{
var
model
=
new
RB_Plan_Appointment_ViewModel
()
...
...
@@ -197,6 +199,7 @@ namespace Edu.WebApi.Controllers.Applet
/// </summary>
/// <returns></returns>
[
HttpPost
]
[
AllowRepeat
]
public
ApiResult
RemovePlanAppointment
()
{
int
DetailsId
=
base
.
ParmJObj
.
GetInt
(
"DetailsId"
);
...
...
@@ -209,6 +212,7 @@ namespace Edu.WebApi.Controllers.Applet
/// </summary>
/// <returns></returns>
[
HttpPost
]
[
AllowRepeat
]
public
ApiResult
GetStuPlanAppointment
()
{
var
query
=
new
RB_Plan_Appointment_Details_ViewModel
()
...
...
Edu.WebApi/Timers/TimedTaskServices.cs
View file @
ed9a3bf6
...
...
@@ -40,7 +40,7 @@ namespace Edu.WebApi.Timers
{
Common
.
Plugin
.
LogHelper
.
Write
(
"定时任务被启动"
);
int
Interval
=
0
;
Interval
=
2
0
;
Interval
=
6
0
;
//Interval = 1;
//绑定定时任务
//设置延迟时间
...
...
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