lrf 2 年之前
父节点
当前提交
069a5e09ef
共有 3 个文件被更改,包括 17 次插入0 次删除
  1. 9 0
      app/controller/config/.matchTeamGroup.js
  2. 1 0
      app/z_router/matchTeamGroup.js
  3. 7 0
      test/test.js

+ 9 - 0
app/controller/config/.matchTeamGroup.js

@@ -42,4 +42,13 @@ module.exports = {
   auto: {
     requestBody: ['!match_id', '!group_id', '!project_id', '!team_number'],
   },
+  findGroupPersonSelects: {
+    parameters: {
+      query: {
+        project_id: 'project_id',
+        person_type: 'person_type',
+        team_id: 'team_id',
+      },
+    },
+  },
 };

+ 1 - 0
app/z_router/matchTeamGroup.js

@@ -7,6 +7,7 @@ const rkey = 'matchTeamGroup';
 const ckey = 'matchTeamGroup';
 const keyZh = '小组赛设置';
 const routes = [
+  { method: 'get', path: `${rkey}/fgps`, controller: `${ckey}.findGroupPersonSelects`, name: `${ckey}findGroupPersonSelects`, zh: `${keyZh}查询手动组成小组的小组成员选项` },
   { method: 'post', path: `${rkey}/auto`, controller: `${ckey}.auto`, name: `${ckey}auto`, zh: `${keyZh}自动分组` },
   { method: 'post', path: `${rkey}/saveAll`, controller: `${ckey}.saveAll`, name: `${ckey}saveAll`, zh: `${keyZh}全部保存` },
   { method: 'get', path: `${rkey}`, controller: `${ckey}.index`, name: `${ckey}Query`, zh: `${keyZh}列表查询` },

+ 7 - 0
test/test.js

@@ -0,0 +1,7 @@
+'use strict';
+const _ = require('lodash');
+const a = 1,
+  b = 1;
+const number = _.floor(_.divide(a, b));
+console.log(number);
+if (number <= 0) console.log('in if');