Browse Source

新增查询作业接口

zengyicheng 2 năm trước cách đây
mục cha
commit
37a21942f4
1 tập tin đã thay đổi với 13 bổ sung1 xóa
  1. 13 1
      pbl.js

+ 13 - 1
pbl.js

@@ -237,6 +237,18 @@ router.route('/selectWorksDetail2').all((req, res, next) => {
     getmysql(req, res, "selectWorksDetail2", json['uid'], json['cid'], json['stage'], json['task']);
 });
 
+//学习中心查询作业
+router.route('/selectSWorks').all((req, res, next) => {
+    var json = queryString(req.url);
+    getmysql(req, res, "selectSWorks", json['cid'], json['s'], json['t']);
+});
+
+//学习中心查询学生
+router.route('/selectWorksStudent').all((req, res, next) => {
+    var json = queryString(req.url);
+    getmysql(req, res, "selectWorksStudent", json['oid']);
+});
+
 router.route('/addWorkNew').all((req, res, next) => {
     // postmysql(req, res, "insert_teacher_work_new");
     if (req.body[0]) {
@@ -841,7 +853,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['n'], json['page'], 10);
 });
 
 //添加评价体系