lsc 2 years ago
parent
commit
c55f7f0f85
1 changed files with 13 additions and 2 deletions
  1. 13 2
      pbl.js

+ 13 - 2
pbl.js

@@ -1629,6 +1629,11 @@ router.route('/selectType').all((req, res, next) => {
     var json = queryString(req.url);
     getmysql(req, res, "selectType", );
 });
+//查询分类及子分类
+router.route('/selectStudentType').all((req, res, next) => {
+    var json = queryString(req.url);
+    getmysql(req, res, "selectStudentType", );
+});
 //查询赛事分类及子分类
 router.route('/selectMatType').all((req, res, next) => {
     var json = queryString(req.url);
@@ -1676,10 +1681,16 @@ router.route('/selectTypeByOid').all((req, res, next) => {
     getmysql(req, res, "selectTypeByOid", json["oid"]);
 });
 
+//根据学校id查询子分类
+router.route('/selectTypeByOid').all((req, res, next) => {
+    var json = queryString(req.url);
+    getmysql(req, res, "selectTypeByOid", json["oid"]);
+});
+
 //根据组织id查询子分类
-router.route('/selectTypeByOrg').all((req, res, next) => {
+router.route('/selectStudentType').all((req, res, next) => {
     var json = queryString(req.url);
-    getmysql(req, res, "selectTypeByOrg", json["oid"]);
+    getmysql(req, res, "selectStudentType", json["oid"]);
 });
 
 //更加父id查询分类