|
@@ -710,7 +710,7 @@ router.route("/getComment").all((req, res, next) => {
|
|
postmysql(req, res, "getComment");
|
|
postmysql(req, res, "getComment");
|
|
});
|
|
});
|
|
|
|
|
|
-//取消点赞
|
|
|
|
|
|
+//取消点赞 修1
|
|
router.route("/deleteComment").all((req, res, next) => {
|
|
router.route("/deleteComment").all((req, res, next) => {
|
|
var json = queryString(req.url);
|
|
var json = queryString(req.url);
|
|
getmysql(req, res, "deleteComment", json["wid"], json["lid"]);
|
|
getmysql(req, res, "deleteComment", json["wid"], json["lid"]);
|
|
@@ -971,7 +971,7 @@ router.route("/selectWorksDetailMore").all((req, res, next) => {
|
|
var json = queryString(req.url);
|
|
var json = queryString(req.url);
|
|
getmysql(req, res, "selectWorksDetailMore", json["uid"], json["cid"]);
|
|
getmysql(req, res, "selectWorksDetailMore", json["uid"], json["cid"]);
|
|
});
|
|
});
|
|
-//查询课程某个阶段某个任务下的评价
|
|
|
|
|
|
+//查询课程某个阶段某个任务下的评价 修1 这个update,但标题查询
|
|
router.route("/updateWorksEva").all((req, res, next) => {
|
|
router.route("/updateWorksEva").all((req, res, next) => {
|
|
var json = queryString(req.url);
|
|
var json = queryString(req.url);
|
|
getmysql(
|
|
getmysql(
|
|
@@ -3185,7 +3185,7 @@ router.route("/selectMtl2").all((req, res, next) => {
|
|
getmysql(req, res, "selectMtl2", json["t"], json["uid"], json["page"], 10);
|
|
getmysql(req, res, "selectMtl2", json["t"], json["uid"], json["page"], 10);
|
|
});
|
|
});
|
|
//学习中心
|
|
//学习中心
|
|
-//新增学习资源信息
|
|
|
|
|
|
+//新增学习资源信息 修1
|
|
router.route("/addStuMtl").all((req, res, next) => {
|
|
router.route("/addStuMtl").all((req, res, next) => {
|
|
var json = queryString(req.url);
|
|
var json = queryString(req.url);
|
|
getmysql(req, res, "addStuMtl", json["cInfo"], json["t"], json["cBy"]);
|
|
getmysql(req, res, "addStuMtl", json["cInfo"], json["t"], json["cBy"]);
|
|
@@ -3413,7 +3413,7 @@ router.route("/updateVc").all((req, res, next) => {
|
|
var json = queryString(req.url);
|
|
var json = queryString(req.url);
|
|
getmysql2(req, res, "updateVc", json["cid"]);
|
|
getmysql2(req, res, "updateVc", json["cid"]);
|
|
});
|
|
});
|
|
-//点击阶段时添加观看人数
|
|
|
|
|
|
+//点击阶段时添加观看人数 修1
|
|
router.route("/updateVcTrain").all((req, res, next) => {
|
|
router.route("/updateVcTrain").all((req, res, next) => {
|
|
var json = queryString(req.url);
|
|
var json = queryString(req.url);
|
|
getmysql(req, res, "updateVcTrain", json["cid"]);
|
|
getmysql(req, res, "updateVcTrain", json["cid"]);
|
|
@@ -3587,12 +3587,12 @@ router.route("/selectNote").all((req, res, next) => {
|
|
var json = queryString(req.url);
|
|
var json = queryString(req.url);
|
|
getmysql(req, res, "selectNote", json["uid"]);
|
|
getmysql(req, res, "selectNote", json["uid"]);
|
|
});
|
|
});
|
|
-//新增便签列表
|
|
|
|
|
|
+//新增便签列表 修1
|
|
router.route("/insertNote").all((req, res, next) => {
|
|
router.route("/insertNote").all((req, res, next) => {
|
|
var json = queryString(req.url);
|
|
var json = queryString(req.url);
|
|
getmysql(req, res, "insertNote", json["uid"], json["c"]);
|
|
getmysql(req, res, "insertNote", json["uid"], json["c"]);
|
|
});
|
|
});
|
|
-//根据便签id修改便签内容
|
|
|
|
|
|
+//根据便签id修改便签内容 修1
|
|
router.route("/updateNote").all((req, res, next) => {
|
|
router.route("/updateNote").all((req, res, next) => {
|
|
var json = queryString(req.url);
|
|
var json = queryString(req.url);
|
|
getmysql(req, res, "updateNote", json["nid"], json["c"]);
|
|
getmysql(req, res, "updateNote", json["nid"], json["c"]);
|
|
@@ -3692,7 +3692,7 @@ router.route("/selectUserSzdjg").all((req, res, next) => {
|
|
var json = queryString(req.url);
|
|
var json = queryString(req.url);
|
|
getmysql(req, res, "selectUserSzdjg", json["username"]);
|
|
getmysql(req, res, "selectUserSzdjg", json["username"]);
|
|
});
|
|
});
|
|
-//新增英语写作批改
|
|
|
|
|
|
+//新增英语写作批改 修1
|
|
router.route("/addEngC").all((req, res, next) => {
|
|
router.route("/addEngC").all((req, res, next) => {
|
|
var json = queryString(req.url);
|
|
var json = queryString(req.url);
|
|
getmysql(req, res, "insertEngCorrect", json["cid"], json["s"], json["t"], json["tool"], json["wid"], json["c"], json["w"]);
|
|
getmysql(req, res, "insertEngCorrect", json["cid"], json["s"], json["t"], json["tool"], json["wid"], json["c"], json["w"]);
|
|
@@ -3707,7 +3707,7 @@ router.route("/selectEngWork").all((req, res, next) => {
|
|
var json = queryString(req.url);
|
|
var json = queryString(req.url);
|
|
getmysql(req, res, "selectEngWork", json["wid"]);
|
|
getmysql(req, res, "selectEngWork", json["wid"]);
|
|
});
|
|
});
|
|
-//新增或修改英语写作评价
|
|
|
|
|
|
+//新增或修改英语写作评价 修1
|
|
router.route("/addEngEva").all((req, res, next) => {
|
|
router.route("/addEngEva").all((req, res, next) => {
|
|
var json = queryString(req.url);
|
|
var json = queryString(req.url);
|
|
getmysql(req, res, "addEngEva", json["id"], json["aic"], json["tc"]);
|
|
getmysql(req, res, "addEngEva", json["id"], json["aic"], json["tc"]);
|
|
@@ -3763,17 +3763,17 @@ router.route("/selectPtype1").all((req, res, next) => {
|
|
var json = queryString(req.url);
|
|
var json = queryString(req.url);
|
|
getmysql(req, res, "selectPtype1", json["oid"], json["page"], 10);
|
|
getmysql(req, res, "selectPtype1", json["oid"], json["page"], 10);
|
|
});
|
|
});
|
|
-//添加分类
|
|
|
|
|
|
+//添加分类 修1
|
|
router.route("/addPtype").all((req, res, next) => {
|
|
router.route("/addPtype").all((req, res, next) => {
|
|
var json = queryString(req.url);
|
|
var json = queryString(req.url);
|
|
getmysql(req, res, "addPtype", json["n"], json["uid"], json["oid"]);
|
|
getmysql(req, res, "addPtype", json["n"], json["uid"], json["oid"]);
|
|
});
|
|
});
|
|
-//修改分类
|
|
|
|
|
|
+//修改分类 修1
|
|
router.route("/updatePtype").all((req, res, next) => {
|
|
router.route("/updatePtype").all((req, res, next) => {
|
|
var json = queryString(req.url);
|
|
var json = queryString(req.url);
|
|
getmysql(req, res, "updatePtype", json["n"], json["tid"]);
|
|
getmysql(req, res, "updatePtype", json["n"], json["tid"]);
|
|
});
|
|
});
|
|
-//修改学生项目分类
|
|
|
|
|
|
+//修改学生项目分类 修1
|
|
router.route("/updateSPtype").all((req, res, next) => {
|
|
router.route("/updateSPtype").all((req, res, next) => {
|
|
var json = queryString(req.url);
|
|
var json = queryString(req.url);
|
|
getmysql(req, res, "updateSPtype", json["n"], json["tid"]);
|
|
getmysql(req, res, "updateSPtype", json["n"], json["tid"]);
|
|
@@ -3806,7 +3806,7 @@ router.route("/selectSStype").all((req, res, next) => {
|
|
10
|
|
10
|
|
);
|
|
);
|
|
});
|
|
});
|
|
-//添加子分类
|
|
|
|
|
|
+//添加子分类 修1
|
|
router.route("/addStype").all((req, res, next) => {
|
|
router.route("/addStype").all((req, res, next) => {
|
|
var json = queryString(req.url);
|
|
var json = queryString(req.url);
|
|
getmysql(
|
|
getmysql(
|
|
@@ -3819,7 +3819,7 @@ router.route("/addStype").all((req, res, next) => {
|
|
json["oid"]
|
|
json["oid"]
|
|
);
|
|
);
|
|
});
|
|
});
|
|
-//添加学生项目子分类
|
|
|
|
|
|
+//添加学生项目子分类 修1
|
|
router.route("/addSStype").all((req, res, next) => {
|
|
router.route("/addSStype").all((req, res, next) => {
|
|
var json = queryString(req.url);
|
|
var json = queryString(req.url);
|
|
getmysql(
|
|
getmysql(
|
|
@@ -3850,7 +3850,7 @@ router.route("/selectStudioStype").all((req, res, next) => {
|
|
10
|
|
10
|
|
);
|
|
);
|
|
});
|
|
});
|
|
-//添加工作室项目子分类
|
|
|
|
|
|
+//添加工作室项目子分类 修1
|
|
router.route("/addStudioStype").all((req, res, next) => {
|
|
router.route("/addStudioStype").all((req, res, next) => {
|
|
var json = queryString(req.url);
|
|
var json = queryString(req.url);
|
|
getmysql(
|
|
getmysql(
|
|
@@ -3863,7 +3863,7 @@ router.route("/addStudioStype").all((req, res, next) => {
|
|
json["oid"]
|
|
json["oid"]
|
|
);
|
|
);
|
|
});
|
|
});
|
|
-//修改工作项目分类
|
|
|
|
|
|
+//修改工作项目分类 修1
|
|
router.route("/updateStudioPtype").all((req, res, next) => {
|
|
router.route("/updateStudioPtype").all((req, res, next) => {
|
|
var json = queryString(req.url);
|
|
var json = queryString(req.url);
|
|
getmysql(req, res, "updateStudioPtype", json["n"], json["tid"]);
|
|
getmysql(req, res, "updateStudioPtype", json["n"], json["tid"]);
|
|
@@ -3911,7 +3911,7 @@ router.route("/selectTypeByPid").all((req, res, next) => {
|
|
var json = queryString(req.url);
|
|
var json = queryString(req.url);
|
|
getmysql(req, res, "selectTypeByPid", json["pid"]);
|
|
getmysql(req, res, "selectTypeByPid", json["pid"]);
|
|
});
|
|
});
|
|
-//点击工具计数
|
|
|
|
|
|
+//点击工具计数 修1
|
|
router.route("/insertToolsCount").all((req, res, next) => {
|
|
router.route("/insertToolsCount").all((req, res, next) => {
|
|
var json = queryString(req.url);
|
|
var json = queryString(req.url);
|
|
getmysql(
|
|
getmysql(
|
|
@@ -3925,7 +3925,7 @@ router.route("/insertToolsCount").all((req, res, next) => {
|
|
json["count"]
|
|
json["count"]
|
|
);
|
|
);
|
|
});
|
|
});
|
|
-//修改工具次数
|
|
|
|
|
|
+//修改工具次数 修1
|
|
router.route("/updateToolsCount").all((req, res, next) => {
|
|
router.route("/updateToolsCount").all((req, res, next) => {
|
|
var json = queryString(req.url);
|
|
var json = queryString(req.url);
|
|
getmysql(
|
|
getmysql(
|
|
@@ -3956,7 +3956,7 @@ router.route("/selectUserBySchool").all((req, res, next) => {
|
|
var json = queryString(req.url);
|
|
var json = queryString(req.url);
|
|
getmysql(req, res, "selectUserBySchool", json["oid"]);
|
|
getmysql(req, res, "selectUserBySchool", json["oid"]);
|
|
});
|
|
});
|
|
-//上传学生作业
|
|
|
|
|
|
+//上传学生作业 修1
|
|
router.route("/insertSWork").all((req, res, next) => {
|
|
router.route("/insertSWork").all((req, res, next) => {
|
|
var json = queryString(req.url);
|
|
var json = queryString(req.url);
|
|
getmysql(
|
|
getmysql(
|
|
@@ -4032,7 +4032,7 @@ router.route("/selectRaceList").all((req, res, next) => {
|
|
var json = queryString(req.url);
|
|
var json = queryString(req.url);
|
|
getmysql(req, res, "selectRaceList", json["uid"], json["t"]);
|
|
getmysql(req, res, "selectRaceList", json["uid"], json["t"]);
|
|
});
|
|
});
|
|
-//修改赛事状态
|
|
|
|
|
|
+//修改赛事状态 修1
|
|
router.route("/updateRaceState").all((req, res, next) => {
|
|
router.route("/updateRaceState").all((req, res, next) => {
|
|
var json = queryString(req.url);
|
|
var json = queryString(req.url);
|
|
getmysql(req, res, "updateRaceState", json["id"], json["s"]);
|
|
getmysql(req, res, "updateRaceState", json["id"], json["s"]);
|
|
@@ -4574,7 +4574,7 @@ router.route("/selectEvaTemplate").all((req, res, next) => {
|
|
getmysql(req, res, "select_evaTemplate", json["oid"]);
|
|
getmysql(req, res, "select_evaTemplate", json["oid"]);
|
|
});
|
|
});
|
|
|
|
|
|
-//目标管理新增目标模板
|
|
|
|
|
|
+//目标管理新增目标模板 修1
|
|
router.route("/addEvaTemplate").all((req, res, next) => {
|
|
router.route("/addEvaTemplate").all((req, res, next) => {
|
|
var json = queryString(req.url);
|
|
var json = queryString(req.url);
|
|
getmysql(req, res, "add_evaTemplate", json["t"], json["c"], json["uid"], json["oid"]);
|
|
getmysql(req, res, "add_evaTemplate", json["t"], json["c"], json["uid"], json["oid"]);
|
|
@@ -4875,7 +4875,7 @@ router.route("/insertWord2y").all((req, res, next) => {
|
|
// getmysql(req, res, "insertWord2y", json["uid"], json["cid"], json["s"], json["task"], json["t"], json["text"], json["type"]);
|
|
// getmysql(req, res, "insertWord2y", json["uid"], json["cid"], json["s"], json["task"], json["t"], json["text"], json["type"]);
|
|
postmysql3(req, res, "insertWord2y");
|
|
postmysql3(req, res, "insertWord2y");
|
|
});
|
|
});
|
|
-//新增协同内容
|
|
|
|
|
|
+//新增协同内容 修1
|
|
router.route("/insertWord").all((req, res, next) => {
|
|
router.route("/insertWord").all((req, res, next) => {
|
|
var json = queryString(req.url);
|
|
var json = queryString(req.url);
|
|
getmysql(
|
|
getmysql(
|
|
@@ -4938,7 +4938,7 @@ router.route("/selectAnliScore").all((req, res, next) => {
|
|
var json = queryString(req.url);
|
|
var json = queryString(req.url);
|
|
getmysql(req, res, "selectAnliScore", json["rid"]);
|
|
getmysql(req, res, "selectAnliScore", json["rid"]);
|
|
});
|
|
});
|
|
-//赛事推荐
|
|
|
|
|
|
+//赛事推荐 修1
|
|
router.route("/updateRaceRec").all((req, res, next) => {
|
|
router.route("/updateRaceRec").all((req, res, next) => {
|
|
var json = queryString(req.url);
|
|
var json = queryString(req.url);
|
|
getmysql(req, res, "updateRaceRec", json["id"], json["rec"]);
|
|
getmysql(req, res, "updateRaceRec", json["id"], json["rec"]);
|
|
@@ -5101,7 +5101,7 @@ router.route("/selectRoomByFile").all((req, res, next) => {
|
|
router.route("/updateRoomData").all((req, res, next) => {
|
|
router.route("/updateRoomData").all((req, res, next) => {
|
|
postmysql(req, res, "updateRoomData");
|
|
postmysql(req, res, "updateRoomData");
|
|
});
|
|
});
|
|
-
|
|
|
|
|
|
+// 修1
|
|
router.route("/updateFileData").all((req, res, next) => {
|
|
router.route("/updateFileData").all((req, res, next) => {
|
|
var json = queryString(req.url);
|
|
var json = queryString(req.url);
|
|
var json2 = json["mode"].split(",");
|
|
var json2 = json["mode"].split(",");
|
|
@@ -6527,7 +6527,7 @@ router.route("/selectCourseEvaT").all((req, res, next) => {
|
|
);
|
|
);
|
|
});
|
|
});
|
|
|
|
|
|
-//评价资源重命名
|
|
|
|
|
|
+//评价资源重命名 修1
|
|
router.route("/updateCourseET").all((req, res, next) => {
|
|
router.route("/updateCourseET").all((req, res, next) => {
|
|
var json = queryString(req.url);
|
|
var json = queryString(req.url);
|
|
getmysql(
|
|
getmysql(
|
|
@@ -6550,7 +6550,7 @@ router.route("/deleteCourseET").all((req, res, next) => {
|
|
);
|
|
);
|
|
});
|
|
});
|
|
|
|
|
|
-//添加评价资源分类
|
|
|
|
|
|
+//添加评价资源分类 修1
|
|
router.route("/addCETType").all((req, res, next) => {
|
|
router.route("/addCETType").all((req, res, next) => {
|
|
var json = queryString(req.url);
|
|
var json = queryString(req.url);
|
|
getmysql(
|
|
getmysql(
|
|
@@ -6813,14 +6813,14 @@ router.route("/selectSETable").all((req, res, next) => {
|
|
var json = queryString(req.url);
|
|
var json = queryString(req.url);
|
|
getmysql(req, res, "selectSETable", json["uid"], json["oid"], json["org"], json["cu"]);
|
|
getmysql(req, res, "selectSETable", json["uid"], json["oid"], json["org"], json["cu"]);
|
|
});
|
|
});
|
|
-//根据学期保存幼儿园个人评分
|
|
|
|
|
|
+//根据学期保存幼儿园个人评分 修1
|
|
router.route("/addSRScore").all((req, res, next) => {
|
|
router.route("/addSRScore").all((req, res, next) => {
|
|
var json = queryString(req.url);
|
|
var json = queryString(req.url);
|
|
getmysql(req, res, "addSRScore", json["uid"], json["j"], json["t"]);
|
|
getmysql(req, res, "addSRScore", json["uid"], json["j"], json["t"]);
|
|
});
|
|
});
|
|
|
|
|
|
|
|
|
|
-//评测中心-数据
|
|
|
|
|
|
+//评测中心-数据 修1 这个不确定所以先加上了
|
|
router.route("/testDataBoard").all((req, res, next) => {
|
|
router.route("/testDataBoard").all((req, res, next) => {
|
|
var json = queryString(req.url);
|
|
var json = queryString(req.url);
|
|
getmysql(req, res, "testDataBoard", json["oid"], json["org"]);
|
|
getmysql(req, res, "testDataBoard", json["oid"], json["org"]);
|
|
@@ -6939,7 +6939,7 @@ router.route("/getRaceUser1").all((req, res, next) => {
|
|
router.route("/updateRaceUser1").all((req, res, next) => {
|
|
router.route("/updateRaceUser1").all((req, res, next) => {
|
|
postmysql(req, res, "updateRaceUser1");
|
|
postmysql(req, res, "updateRaceUser1");
|
|
});
|
|
});
|
|
-/* 修改评审员 */
|
|
|
|
|
|
+/* 修改评审员 修1 */
|
|
router.route("/updateReviewer").all((req, res, next) => {
|
|
router.route("/updateReviewer").all((req, res, next) => {
|
|
var json = queryString(req.url);
|
|
var json = queryString(req.url);
|
|
getmysql(
|
|
getmysql(
|
|
@@ -6964,7 +6964,7 @@ router.route("/selectRaceList1").all((req, res, next) => {
|
|
getmysql(req, res, "selectRaceList1", json["uid"], json["t"], json["oid"], json["org"]);
|
|
getmysql(req, res, "selectRaceList1", json["uid"], json["t"], json["oid"], json["org"]);
|
|
});
|
|
});
|
|
|
|
|
|
-//修改赛事状态
|
|
|
|
|
|
+//修改赛事状态 修1
|
|
router.route("/updateRaceStateGM").all((req, res, next) => {
|
|
router.route("/updateRaceStateGM").all((req, res, next) => {
|
|
var json = queryString(req.url);
|
|
var json = queryString(req.url);
|
|
getmysql(req, res, "updateRaceStateGM", json["id"], json["s"]);
|
|
getmysql(req, res, "updateRaceStateGM", json["id"], json["s"]);
|