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
7b9d1a7d
Commit
7b9d1a7d
authored
Sep 18, 2024
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
111
parent
ede7bec1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
3 deletions
+12
-3
RB_Scroll_Appointment_ViewModel.cs
...Model/ViewModel/Scroll/RB_Scroll_Appointment_ViewModel.cs
+5
-0
ScrollClassCommonModule.cs
Edu.Module.Course/ScrollClassCommonModule.cs
+2
-2
RB_Scroll_AppointmentRepository.cs
Edu.Repository/Scroll/RB_Scroll_AppointmentRepository.cs
+5
-1
No files found.
Edu.Model/ViewModel/Scroll/RB_Scroll_Appointment_ViewModel.cs
View file @
7b9d1a7d
...
...
@@ -151,6 +151,11 @@ namespace Edu.Model.ViewModel.Scroll
/// 学生列表
/// </summary>
public
List
<
ScrollGuestModel
>
GuestList
{
get
;
set
;
}
/// <summary>
/// 状态
/// </summary>
public
string
QState
{
get
;
set
;
}
}
/// <summary>
...
...
Edu.Module.Course/ScrollClassCommonModule.cs
View file @
7b9d1a7d
...
...
@@ -669,11 +669,11 @@ namespace Edu.Module.Course
public
void
CreateScrollChapter
(
int
groupId
=
100000
)
{
//查询当前时间已结束的预约课
var
list
=
scroll_AppointmentRepository
.
GetList
(
new
RB_Scroll_Appointment_ViewModel
()
{
Group_Id
=
groupId
,
CourseEndTimeStr
=
DateTime
.
Now
.
ToString
(
"yyyy-MM-dd HH:mm:ss"
)
});
var
list
=
scroll_AppointmentRepository
.
GetList
(
new
RB_Scroll_Appointment_ViewModel
()
{
Group_Id
=
groupId
,
CourseEndTimeStr
=
DateTime
.
Now
.
ToString
(
"yyyy-MM-dd HH:mm:ss"
)
,
QState
=
"2,6"
});
if
(
list
.
Any
())
{
var
tempList
=
list
.
Where
(
qitem
=>
qitem
.
State
==
Common
.
Enum
.
Course
.
CourseAppointStateEnum
.
WaitCourse
||
qitem
.
State
==
Common
.
Enum
.
Course
.
CourseAppointStateEnum
.
StuCheck
)?.
ToList
();
if
(
tempList
.
Any
())
if
(
tempList
.
Any
())
{
class_CheckRepository
.
AppointStuCheckRepository
(
tempList
,
1
);
}
...
...
Edu.Repository/Scroll/RB_Scroll_AppointmentRepository.cs
View file @
7b9d1a7d
...
...
@@ -32,6 +32,10 @@ namespace Edu.Repository.Scroll
{
where
+=
$@" and r.
{
nameof
(
RB_Scroll_Appointment_ViewModel
.
State
)}
=
{(
int
)
demodel
.
State
}
"
;
}
if
(!
string
.
IsNullOrEmpty
(
demodel
.
QState
))
{
where
+=
$@" and r.
{
nameof
(
RB_Scroll_Appointment_ViewModel
.
State
)}
IN(
{
demodel
.
QState
}
)"
;
}
if
(!
string
.
IsNullOrEmpty
(
demodel
.
StartTime
))
{
where
+=
$@" and r.
{
nameof
(
RB_Scroll_Appointment_ViewModel
.
Date
)}
>='
{
demodel
.
StartTime
}
'"
;
...
...
@@ -80,7 +84,7 @@ namespace Edu.Repository.Scroll
{
where
+=
$@" and r.
{
nameof
(
RB_Scroll_Appointment_ViewModel
.
CourseGradeNo
)}
=
{
demodel
.
CourseGradeNo
}
"
;
}
string
sql
=
$@"
SELECT r.*,c.AccountId as TeacherId,s.StuName,cou.CourseName,cou.ScrollMinNum,cou.ScrollMaxNum From RB_Scroll_Appointment r
inner join rb_account c on r.AccountId = c.Id
...
...
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