reloaded 5 years ago
parent
commit
3100b4c431
1 changed files with 2 additions and 2 deletions
  1. 2 2
      app/service/apply.js

+ 2 - 2
app/service/apply.js

@@ -17,8 +17,8 @@ class ApplyService extends CrudService {
   // 查询
   async queryteacher(num) {
     console.log(num);
-    const data = await this.model.find(num);
-    console.log(data);
+    const { termid, subid } = num;
+    const data = await this.model.find({ termid, subid });
     const teachers = [];
     for (const _data of data) {
       const teacherid = _data.teacherid;