Commit b52cd1db authored by 吴春's avatar 吴春

1

parent 57c24d3e
...@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment