Explorar o código

添加评价资源和查询评价资源

zengyicheng hai 1 ano
pai
achega
d13a809714
Modificáronse 1 ficheiros con 42 adicións e 0 borrados
  1. 42 0
      pbl.js

+ 42 - 0
pbl.js

@@ -5754,6 +5754,29 @@ router.route("/addSource").all((req, res, next) => {
         });
     }
 });
+
+// router.route("/addCourseEvaT").all((req, res, next) => {
+//     //添加评价资源
+//     if (req.body[0]) {
+//         p = [
+//             req.body[0].pid,
+//             req.body[0].ppid,
+//             req.body[0].name,
+//             req.body[0].userid,
+//             req.body[0].oid,
+//         ];
+//         p.unshift(_mysqlLabor[0], _mysqlLabor[1], "addCourseEvaT");
+//         //執行存儲過程
+//         mysql.usselect(p, function(ret) {
+//             let courseId = ret[0][0].id;
+//             let userid = req.body[0].userid;
+//             delSourceType(course, courseId, userid);
+//             res.end(JSON.stringify({ id: ret[0][0].id, success: 1 }));
+//             // res.end(JSON.stringify(ret));
+//         });
+//     }
+// });
+
 router.route("/updateSource").all((req, res, next) => {
     //修改资源
     if (req.body[0]) {
@@ -5822,6 +5845,25 @@ router.route("/selectSource").all((req, res, next) => {
     );
 });
 
+//评价资源查询
+router.route("/selectCourseEvaT").all((req, res, next) => {
+    var json = queryString(req.url);
+    getmysql(
+        req,
+        res,
+        "selectCourseEvaT",
+        json["uid"],
+        json["oid"],
+        json["org"],
+        json["typea"],
+        json["typeb"],
+        json["typeE"],
+        json["cn"],
+        json["page"],
+        json["pageSize"]
+    );
+});
+
 //数据看板-综合数据
 router.route("/selectDataBoardSchool").all((req, res, next) => {
     postmysql(req, res, "selectDataBoardSchool");