ソースを参照

增加大批次id

liuyu 5 年 前
コミット
2809ece709

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

@@ -1,6 +1,7 @@
 module.exports = {
   create: {
     requestBody: [
+      'planyearid',
       'planid',
       'termid',
       'batchid',
@@ -19,6 +20,7 @@ module.exports = {
   update: {
     params: ['!id'],
     requestBody: [
+      'planyearid',
       'planid',
       'termid',
       'batchid',
@@ -39,6 +41,7 @@ module.exports = {
   index: {
     parameters: {
       query: {
+        planyearid:'planyearid',
         termid :'termid',
         batchid:'batchid',
         classid :'classid',

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

@@ -6,6 +6,7 @@ module.exports = {
       'batchid',
       'termid',
       'planid',
+      'planyearid',
       'headteacherid',
       'lyteacherid',
       'yclocationid',
@@ -28,6 +29,7 @@ module.exports = {
       'batchid',
       'termid',
       'planid',
+      'planyearid',
       'headteacherid',
       'lyteacherid',
       'yclocationid',
@@ -52,6 +54,7 @@ module.exports = {
         batchid:'batchid',
         termid: 'termid',
         planid: 'planid',
+        planyearid:'planyearid',
         headteacherid : 'headteacherid',
         lyteacherid : 'lyteacherid',
         yclocationid:'yclocationid',

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

@@ -4,6 +4,7 @@ module.exports = {
       "batchid",
       "termid",
       "planid",
+      'planyearid',
       "!studentid",
       "classid",
       "starttime",
@@ -25,6 +26,7 @@ module.exports = {
       "batchid",
       "termid",
       "planid",
+      'planyearid',
       "classid",
       "studentid",
       "starttime",
@@ -48,6 +50,7 @@ module.exports = {
         batchid: "batchid",
         termid: "termid",
         planid: "planid",
+        planyearid: 'planyearid',
         studentid: "studentid",
         classid: "classid",
         starttime: "starttime",

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

@@ -20,6 +20,7 @@ module.exports = {
       'family_is_hard',
       'have_grant',
       'job',
+      'planyearid',
       'planid',
       'termid',
       'batchid',
@@ -56,6 +57,7 @@ module.exports = {
       'family_is_hard',
       'have_grant',
       'job',
+      'planyearid',
       'planid',
       'termid',
       'batchid',
@@ -94,6 +96,7 @@ module.exports = {
         family_is_hard:'family_is_hard',
         have_grant :'have_grant',
         job:'job',
+        planyearid: 'planyearid',
         planid:'planid',
         termid:'termid',
         batchid:'batchid',

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

@@ -1,6 +1,7 @@
 module.exports = {
   create: {
     requestBody: [
+      'planyearid',
       '!year',
       '!title',
       'status',
@@ -15,6 +16,7 @@ module.exports = {
   update: {
     params: ['!id'],
     requestBody: [
+      'planyearid',
       'year',
       'title',
       'status',
@@ -31,6 +33,7 @@ module.exports = {
   index: {
     parameters: {
       query: {
+        planyearid: 'planyearid',
         year :'year',
         title :'title',
         status :'status',

+ 1 - 0
app/model/attendance.js

@@ -12,6 +12,7 @@ const attendInfo = new Schema({
 
 // 考勤表
 const AttendanceSchema = {
+  planyearid: { type: String, required: false, maxLength: 200 }, // 大批次id
   planid: { type: String, required: false, maxLength: 200 }, // 计划id
   termid: { type: String, required: false, maxLength: 200 }, // 期id
   batchid: { type: String, required: false, maxLength: 200 }, // 批次id

+ 1 - 0
app/model/class.js

@@ -9,6 +9,7 @@ const ClassSchema = {
   batchid: { type: String, required: false, maxLength: 200 }, // 批次
   termid: { type: String, required: false, maxLength: 200 }, // 期
   planid: { type: String, required: false, maxLength: 200 }, // 计划
+  planyearid: { type: String, required: false, maxLength: 200 }, // 大批次id
   headteacherid: { type: String, required: false, maxLength: 200 }, // 班主任id
   lyteacherid: { type: String, required: false, maxLength: 200 }, // 礼仪课老师id
   yclocationid: { type: String, required: false, maxLength: 200 }, // 用餐地点id

+ 1 - 0
app/model/leave.js

@@ -8,6 +8,7 @@ const LeaveSchema = {
   termid: { type: String, required: false, maxLength: 200 }, // 期
   classid: { type: String, required: false, maxLength: 200 }, // 班级id
   planid: { type: String, required: false, maxLength: 200 }, // 计划
+  planyearid: { type: String, required: false, maxLength: 200 }, // 大批次id
   studentid: { type: String, required: true, maxLength: 200 }, // 学生id
   stuname: { type: String, required: true, maxLength: 200 }, // 学生名称
   starttime: { type: String, required: false, maxLength: 200 }, // 开始时间

+ 1 - 0
app/model/student.js

@@ -23,6 +23,7 @@ const StudentSchema = {
   family_is_hard: { type: String, required: false, maxLength: 200 }, // 家庭是否困难,0-否,1-是
   have_grant: { type: String, required: false, maxLength: 200 }, // 是否获得过助学金,0-否,1-是
   job: { type: String, required: false, maxLength: 200, default: '普通学生' }, // 职务
+  planyearid: { type: String, required: false, maxLength: 200 }, // 大批次id
   planid: { type: String, required: false, maxLength: 200 }, // 计划id
   termid: { type: String, required: false, maxLength: 200 }, // 期id
   batchid: { type: String, required: false, maxLength: 200 }, // 批次id