|
@@ -27,10 +27,16 @@ class TeacherService extends CrudService {
|
|
|
}
|
|
|
|
|
|
async status(data) {
|
|
|
- const { teachersid, status, remark } = data;
|
|
|
+ const { teachersid, zlscore, msscore, status, remark } = data;
|
|
|
for (const teacherid of teachersid) {
|
|
|
const teacher = await this.model.findById(teacherid);
|
|
|
teacher.status = status;
|
|
|
+ if (zlscore) {
|
|
|
+ teacher.zlscore = zlscore;
|
|
|
+ }
|
|
|
+ if (msscore) {
|
|
|
+ teacher.msscore = msscore;
|
|
|
+ }
|
|
|
await teacher.save();
|
|
|
let detail = '';
|
|
|
if (status === '1') {
|