Forráskód Böngészése

新增查询作业接口

zengyicheng 2 éve
szülő
commit
37a21942f4
1 módosított fájl, 13 hozzáadás és 1 törlés
  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);
 });
 
 //添加评价体系