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

Merge branch 'master' of https://git.cocorobo.cn/CocoRoboLabs/pbl-api

lsc 16 órája
szülő
commit
ba538aa854
1 módosított fájl, 66 hozzáadás és 9 törlés
  1. 66 9
      pbl.js

+ 66 - 9
pbl.js

@@ -11,10 +11,10 @@ var mysql = require("./mysql");
 
 // 本地
 
-// const _mysqlLabor = ["183.36.25.92", "pbl"]; //edu數據庫信息
-// const _mysqluser = ["183.36.25.92", "cocorobouser"]; //用户数据库信息
-// const _getmysqlLabor2 = ["183.36.25.92", "pbl"]; //edu數據庫信息
-// const _getmysqlLabor = ["183.36.25.92", "pbl"]; //edu數據庫信息
+// const _mysqlLabor = ["183.36.26.8", "pbl"]; //edu數據庫信息
+// const _mysqluser = ["183.36.26.8", "cocorobouser"]; //用户数据库信息
+// const _getmysqlLabor2 = ["183.36.26.8", "pbl"]; //edu數據庫信息
+// const _getmysqlLabor = ["183.36.26.8", "pbl"]; //edu數據庫信息
 
 
 //线上
@@ -1551,7 +1551,7 @@ router.route("/selectStudent2").all((req, res, next) => {
     );
 });
 
-/* 新学生管理查询学生 */
+//  新学生管理查询学生  yym
 router.route("/selectStudentManage").all((req, res, next) => {
     var json = queryString(req.url);
     getmysql(
@@ -1566,6 +1566,19 @@ router.route("/selectStudentManage").all((req, res, next) => {
     );
 });
 
+//  新学生管理查询学生  yym
+router.route("/selectStudentManageTwo").all((req, res, next) => {
+    var json = queryString(req.url);
+    getmysql(
+        req,
+        res,
+        "selectStudentManageTwo",
+        json["oid"],
+        json["cid"],
+        json["inp"]
+    );
+});
+
 /* 查询教师 */
 router.route("/selectTeacher2").all((req, res, next) => {
     var json = queryString(req.url);
@@ -6435,6 +6448,50 @@ router.route("/getEvaluation").all((req, res, next) => {
         10
     );
 });
+
+//添加班级 yym
+router.route("/addClassgra").all((req, res, next) => {
+    postmysql(req, res, "addClassgra");
+});
+
+//禁用启用社区 yym
+router.route("/updateCyOP").all((req, res, next) => {
+    postmysql(req, res, "updateCyOP");
+});
+
+// 新学生管理 获取年级与班级 yym
+router.route("/selectGradeNew").all((req, res, next) => {
+    var json = queryString(req.url);
+    getmysql(
+        req,
+        res,
+        "selectGradeNew",
+        json["oid"]
+    );
+});
+// 新学生管理 查看兴趣班 yym
+router.route("/selectInterestcla").all((req, res, next) => {
+    var json = queryString(req.url);
+    getmysql(
+        req,
+        res,
+        "selectInterestcla",
+        json["oid"]
+    );
+});
+// 新学生管理 获取班级学生 yym
+router.route("/selectclaStu").all((req, res, next) => {
+    var json = queryString(req.url);
+    getmysql(
+        req,
+        res,
+        "selectclaStu",
+        json["oid"],
+        json["claid"],
+        json["inp"],
+    );
+});
+
 //查询社区列表 yym
 router.route("/getcylist").all((req, res, next) => {
     var json = queryString(req.url); //cid 课程id,page 页数
@@ -6487,10 +6544,10 @@ router.route("/getCococy").all((req, res, next) => {
 });
 
 //社区应用获取 yym
-router.route('/selectCyapp').all((req,res,next)=>{
-	var json = queryString(req.url);
-	getmysql(req, res, "selectCyapp",json["uid"],json["cyid"],json["tea"],json["stand"]);
-})
+router.route("/selectCyapp").all((req, res, next) => {
+    postmysql(req, res, "selectCyapp");
+    //uid 用户id t标题 c内容
+});
 
 //添加评价体系
 router.route("/addEvaluation").all((req, res, next) => {