|
@@ -262,6 +262,8 @@ class ClassService extends CrudService {
|
|
|
async autoclass(planid, termid) {
|
|
|
// 删除所有计划下的班级
|
|
|
await this.model.deleteMany({ planid, termid });
|
|
|
+ // 删除该期课表
|
|
|
+ await this.lessmodel.deleteMany({ termid });
|
|
|
// 根据批次id取得当前批次具体信息
|
|
|
const res = await this.tmodel.findById(planid);
|
|
|
if (!res) {
|