瀏覽代碼

加入计划id

liuyu 4 年之前
父節點
當前提交
e98613cd14
共有 2 個文件被更改,包括 4 次插入0 次删除
  1. 3 0
      app/controller/.trainmodel.js
  2. 1 0
      app/model/trainmodel.js

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

@@ -8,6 +8,7 @@ module.exports = {
       "classnum",
       "stunum",
       'planyearid',
+      'planid',
       "carpnum",
     ],
   },
@@ -25,6 +26,7 @@ module.exports = {
       "classnum",
       "stunum",
       'planyearid',
+      'planid',
       "carpnum",
     ],
   },
@@ -43,6 +45,7 @@ module.exports = {
         batchnum: "batchnum",
         classnum: "classnum",
         stunum: "stunum",
+        planid: 'planid',
         planyearid: 'planyearid',
         carpnum: "carpnum",
       },

+ 1 - 0
app/model/trainmodel.js

@@ -8,6 +8,7 @@ const TrainmodelSchema = {
   day: { type: String, required: false, maxLength: 200 }, // 课程所需天数
   color: { type: [ String ], required: false }, // 默认颜色
   planyearid: { type: String, required: true, maxLength: 200 }, // 大批次id
+  planid: { 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 }, // 默认每班学生数