liuyu 4 rokov pred
rodič
commit
036cc95133
2 zmenil súbory, kde vykonal 4 pridanie a 0 odobranie
  1. 3 0
      app/controller/.trainmodel.js
  2. 1 0
      app/model/trainmodel.js

+ 3 - 0
app/controller/.trainmodel.js

@@ -7,6 +7,7 @@ module.exports = {
       "batchnum",
       "classnum",
       "stunum",
+      'planyearid',
       "carpnum",
     ],
   },
@@ -23,6 +24,7 @@ module.exports = {
       "batchnum",
       "classnum",
       "stunum",
+      'planyearid',
       "carpnum",
     ],
   },
@@ -41,6 +43,7 @@ module.exports = {
         batchnum: "batchnum",
         classnum: "classnum",
         stunum: "stunum",
+        planyearid: 'planyearid',
         carpnum: "carpnum",
       },
     },

+ 1 - 0
app/model/trainmodel.js

@@ -7,6 +7,7 @@ const TrainmodelSchema = {
   total: { type: String, required: false, maxLength: 200 }, // 总人数
   day: { type: String, required: false, maxLength: 200 }, // 课程所需天数
   color: { type: [ String ], required: false }, // 默认颜色
+  planyearid: { type: String, required: true, maxLength: 200 }, // 大批次id
   batchnum: { type: String, required: false, maxLength: 200 }, // 默认期下生成的批次数
   classnum: { type: String, required: false, maxLength: 200 }, // 默认批次下生成的班级数
   stunum: { type: String, required: false, maxLength: 200 }, // 默认每班学生数