lsc 2 lat temu
rodzic
commit
1cc31ef0f6
1 zmienionych plików z 8 dodań i 2 usunięć
  1. 8 2
      pbl.js

+ 8 - 2
pbl.js

@@ -793,7 +793,7 @@ router.route('/insertSWork').all((req, res, next) => {
 //查询学生作业
 router.route('/selectSWork').all((req, res, next) => {
     var json = queryString(req.url);
-    getmysql(req, res, "selectSWork", json['uid'], json['cid'], json['p']);
+    getmysql(req, res, "selectSWork", json['uid'], json['cid'], json['p'], json['type']);
 });
 
 
@@ -991,6 +991,12 @@ router.route('/getRealTimeClassStu').all((req, res, next) => {
     var json = queryString(req.url);
     getmysql(req, res, "getRealTimeClassStu", json["oid"], json["cid"], json["page"], 10);
 });
+//查询实时课堂学生
+router.route('/getRealTimeClassById').all((req, res, next) => {
+    var json = queryString(req.url);
+    getmysql(req, res, "getRealTimeClassById", json["id"]);
+});
+
 
 
 //teacher 查询模板
@@ -1102,7 +1108,7 @@ router.route('/getWorkData').all((req, res, next) => {
 //查询评价体系
 router.route('/getEvaluation').all((req, res, next) => {
     var json = queryString(req.url); //cid 课程id,page 页数
-    getmysql(req, res, "select_evaluation", json['n'], json['page'], 10);
+    getmysql(req, res, "select_evaluation", json['oid'], json['n'], json['page'], 10);
 });
 
 //添加评价体系