reloaded 5 gadi atpakaļ
vecāks
revīzija
9307adda1c
1 mainītis faili ar 1 papildinājumiem un 0 dzēšanām
  1. 1 0
      app/service/trainplan.js

+ 1 - 0
app/service/trainplan.js

@@ -54,6 +54,7 @@ class TrainplanService extends CrudService {
     }
     }
     // 如果培训计划状态改为发布
     // 如果培训计划状态改为发布
     if (status === '1') {
     if (status === '1') {
+      trainplan.status = status;
       // 查询所有入库的教师
       // 查询所有入库的教师
       const teachers = await this.tmodel.find({ status: '4' });
       const teachers = await this.tmodel.find({ status: '4' });
       for (const teacher of teachers) {
       for (const teacher of teachers) {