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
b52cd1db
Commit
b52cd1db
authored
Aug 30, 2024
by
吴春
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
57c24d3e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
RB_Visitor_ReserveRepository.cs
Edu.Repository/Reserve/RB_Visitor_ReserveRepository.cs
+1
-1
No files found.
Edu.Repository/Reserve/RB_Visitor_ReserveRepository.cs
View file @
b52cd1db
...
@@ -486,7 +486,7 @@ WHERE 1=1 AND A.Status=0 {0}
...
@@ -486,7 +486,7 @@ WHERE 1=1 AND A.Status=0 {0}
{
{
string
sql
=
$@"SELECT c.TeacherId FROM rb_visitor_reserve r
string
sql
=
$@"SELECT c.TeacherId FROM rb_visitor_reserve r
INNER JOIN rb_reserve_class c on r.ReserveClassId = c.ReserveClassId
INNER JOIN rb_reserve_class c on r.ReserveClassId = c.ReserveClassId
WHERE r.Group_Id =
{
groupId
}
and r.`Status` =0 and c.`Status` =0 and r.Visitor_Id =
{
stuId
}
AND A.IsReserve=1
WHERE r.Group_Id =
{
groupId
}
and r.`Status` =0 and c.`Status` =0 and r.Visitor_Id =
{
stuId
}
ORDER BY c.ClassDate DESC LIMIT 1"
;
ORDER BY c.ClassDate DESC LIMIT 1"
;
var
obj
=
ExecuteScalar
(
sql
);
var
obj
=
ExecuteScalar
(
sql
);
return
obj
!=
null
?
Convert
.
ToInt32
(
obj
)
:
0
;
return
obj
!=
null
?
Convert
.
ToInt32
(
obj
)
:
0
;
...
...
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