Browse Source

更改字段名

reloaded 5 years ago
parent
commit
a5683def64
2 changed files with 4 additions and 4 deletions
  1. 3 3
      app/controller/.teaplan.js
  2. 1 1
      app/model/teaplan.js

+ 3 - 3
app/controller/.teaplan.js

@@ -2,7 +2,7 @@ module.exports = {
   create: {
     requestBody: [
       '!trainplanid',
-      'nomonth',
+      'nodate',
       'classid',
       'headteacherid'
     ]
@@ -15,7 +15,7 @@ module.exports = {
     params: ['!id'],
     requestBody: [
       'trainplanid',
-      'nomonth',
+      'nodate',
       'classid',
       'headteacherid'
     ]
@@ -30,7 +30,7 @@ module.exports = {
     parameters: {
       query: {
         trainplanid :'trainplanid',
-        nomonth:'nomonth',
+        nodate:'nodate',
         classid :'classid',
         headteacherid :'headteacherid'
       }

+ 1 - 1
app/model/teaplan.js

@@ -5,7 +5,7 @@ const metaPlugin = require('naf-framework-mongoose/lib/model/meta-plugin');
 // 班主任全年计划表
 const TeaplanSchema = {
   trainplanid: { type: String, required: true, maxLength: 200 }, // 培训计划表id
-  nomonth: { type: [ String ], required: false, maxLength: 200 }, // 不能上课的月份(数组)
+  nodate: { type: [ String ], required: false, maxLength: 200 }, // 不能上课的日期(数组)
   classid: { type: String, required: false, maxLength: 200 }, // 班id
   headteacherid: { type: String, required: false, maxLength: 200 }, // 班主任id
 };