|
@@ -120,7 +120,7 @@ class TrainplanService extends CrudService {
|
|
|
// 取得当前批次的班级数
|
|
|
const classnum = batchnum.class;
|
|
|
for (let i = 1; i <= classnum; i++) {
|
|
|
- const newdata = { name: i + '班', number: batchnum.number, batchid: batchnum.id, termid: el.id };
|
|
|
+ const newdata = { name: i + '班', number: batchnum.number, batchid: batchnum.id, termid: el.id, planid: res.id };
|
|
|
await this.clamodel.create(newdata);
|
|
|
}
|
|
|
}
|
|
@@ -146,7 +146,7 @@ class TrainplanService extends CrudService {
|
|
|
// 取得当前批次的班级数
|
|
|
const classnum = batchnum.class;
|
|
|
for (let i = 1; i <= classnum; i++) {
|
|
|
- const newdata = { name: i + '班', number: batchnum.number, batchid: batchnum.id, termid: el.id };
|
|
|
+ const newdata = { name: i + '班', number: batchnum.number, batchid: batchnum.id, termid: el.id, planid: res.id };
|
|
|
await this.clamodel.create(newdata);
|
|
|
}
|
|
|
} else {
|
|
@@ -161,7 +161,7 @@ class TrainplanService extends CrudService {
|
|
|
} else {
|
|
|
const classnum = batchnum.class;
|
|
|
for (let i = 1; i <= classnum; i++) {
|
|
|
- const newdata = { name: i + '班', number: batchnum.number, batchid: batchnum.id, termid: el.id };
|
|
|
+ const newdata = { name: i + '班', number: batchnum.number, batchid: batchnum.id, termid: el.id, planid: res.id };
|
|
|
await this.clamodel.create(newdata);
|
|
|
}
|
|
|
}
|
|
@@ -171,7 +171,7 @@ class TrainplanService extends CrudService {
|
|
|
await this.clamodel.deleteMany({ termid: el.id, batchid: batchnum.id });
|
|
|
const classnum = batchnum.class;
|
|
|
for (let i = 1; i <= classnum; i++) {
|
|
|
- const newdata = { name: i + '班', number: batchnum.number, batchid: batchnum.id, termid: el.id };
|
|
|
+ const newdata = { name: i + '班', number: batchnum.number, batchid: batchnum.id, termid: el.id, planid: res.id };
|
|
|
await this.clamodel.create(newdata);
|
|
|
}
|
|
|
}
|